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
fieldsfield, existing audience fields in the recipient will be updated, while non-existent fields will be created (provided they are compatible with the audience schema). Thenamefield of each object infieldsidentifies the audience field to be updated; - The values in
tagswill be set in the recipient'stagsfield or added to an existingtagsarray; - The values in
subscriptionswill be set in the recipient'ssubscriptionsfield, 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.