Skip to main content
PATCH
/
preview
/
marketing-solutions
/
audiences
/
{audience-id}
/
contactlist-attributes
/preview/marketing-solutions/audiences/{audience-id}/contactlist-attributes
curl --request PATCH \
  --url https://api.criteo.com/preview/marketing-solutions/audiences/{audience-id}/contactlist-attributes \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "data": {
    "type": "ContactlistWithUserAttributesAmendment",
    "attributes": {
      "operation": "add",
      "identifierType": "email",
      "identifiers": [
        {
          "identifier": "example1@gmail.com",
          "attributes": [
            {
              "key": "age",
              "value": "12"
            },
            {
              "key": "country",
              "value": "FR"
            },
            {
              "key": "size",
              "value": "S"
            }
          ]
        },
        {
          "identifier": "example2@gmail.com",
          "attributes": [
            {
              "key": "age",
              "value": "43"
            },
            {
              "key": "preferredColor",
              "value": "yellow"
            }
          ]
        }
      ]
    }
  }
}
'
{
  "data": {
    "type": "ContactlistAmendment",
    "attributes": {
      "contactListId": 12,
      "operation": "add",
      "requestDate": "2018-12-10T10:00:50.0000000+00:00",
      "identifierType": "madid",
      "nbValidIdentifiers": 7343,
      "nbInvalidIdentifiers": 13,
      "sampleInvalidIdentifiers": [
        "InvalidIdentifier"
      ]
    }
  },
  "errors": [],
  "warnings": []
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Path Parameters

audience-id
string<int32>
required

The id of the contact list audience-segment to amend

Body

application/json

Request for a contactlist amendment with user attributes

data
object
required

Parameters for a contactlist amendment with user attributes

Response

200 - application/json

Summary of created request

Parameters to modify an audience

data
object
required

Response definition of a contactlist operation

errors
object[]
required
warnings
object[]
required