Update an individual
const url = 'https://api.ebitex.io/audience/management/v1/individuals/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0';const options = { method: 'PUT', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"name":"example","attributes":{},"rowVersion":1,"displayName":"example","locale":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://api.ebitex.io/audience/management/v1/individuals/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "name": "example", "attributes": {}, "rowVersion": 1, "displayName": "example", "locale": "example" }'Replaces a person’s name and attributes. Send the rowVersion you read: if the person changed since, the call answers 409 concurrency_conflict and nothing is written.
Key: an Audience management key with audience.management.write (write also needs read; erase needs both).
Authorizations
Section titled “Authorizations”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters”Request Bodyrequired
Section titled “Request Bodyrequired”Responses
Section titled “ Responses ”{ "id", "name", "displayName", "source": { "kind", "key", "label" }, "identities": [ … ], "channelPermissions": [ … ], "visitorLinks": [ … ], "attributes": { … }, "mergedInto", "interactionCount", "createdAtUtc", "updatedAtUtc", "rowVersion" }. name is the display name, else the primary email, else the primary phone, else the first external key, else “Unnamed”.
validation_failed: a field is invalid; a custom field is keyed attributes.<key>.
missing_api_key or invalid_api_key: no key was sent, or it is unknown, revoked or expired, or it was not created from the Audience settings page.
payment_required: the organization’s subscription needs attention.
scope_denied: the key lacks this route’s scope. ip_denied: the caller’s address is outside the key’s allowed ranges. app_not_available: Audience is not enabled for the organization.
individual_not_found: no such person in this organization.
not_found: no such route.
concurrency_conflict: the person changed since rowVersion was read.
rate_limited: the key spent its requests-per-minute budget; Retry-After says how long to wait. too_many_failed_authentications: too many bad keys from this address.