Skip to main content

Edit Contact

warning

Before using the audience recipient manipulation operations it is necessary to first create an audience for your Organization through the Arpoone platform. This option is available on the menu: Audience > Create Audience

A edição de um contacto contacto da audiência de uma organização pode ser feita através de dois endpoints:

  • recipient matching by recipientId field in the request URL
  • recipient matching by audience key fields collection audienceKeyFields in the request body

The request body must contain a recipient object where the tags and subscriptions fields are optional, and the fields in the fields array must comply with the audience schema.

The editing of fields is performed with the following strategy:

  • For the fields field, existing audience fields in the recipient will be updated, while non-existent fields will be created (provided they are compatible with the audience schema). The name field of each object in fields identifies the audience field to be updated;
  • The values in tags will be set in the recipient's tags field or added to an existing tags array;
  • The values in subscriptions will be set in the recipient's subscriptions field, overwriting previous subscriptions.

It is not possible to update the key field values of the audience – doing so will result in an error with HTTP Status Code 400 – Bad Request.

Access the API Reference