Replace Contact
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
This endpoint allows for the replacement of a contact in an organization's audience.
This endpoint differs from Edit Contact in that it performs a complete replacement of the recipient, except for its key fields. In this case, the identification of the recipient to be replaced is not made via the recipientId parameter in the route, but by the key fields, which must be provided in the fields field.
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.
In this endpoint, all subscriptions and tags of the recipient are replaced by those provided in the request body – if tags and/or subscriptions are omitted, the recipient will be updated with these fields left empty.
Similarly, all non-key fields of the recipient will also be replaced with the values provided in the request body. For example: if a recipient has a first_name field and the endpoint is invoked without specifying that field, then its value will be deleted.