Skip to content

Change a pass's facts

PUT
/audience/management/v1/individuals/{id}/stages/{stage}/rows/{rowId}
curl --request PUT \
--url https://api.ebitex.io/audience/management/v1/individuals/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/stages/example/rows/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "rowVersion": 1, "facts": {} }'

Replaces the facts of an open pass. Send the rowVersion you read; a pass someone else changed since answers 409 concurrency_conflict. Moving a pass between states is a separate call, so a facts edit can never skip a rule.

Key: an Audience management key with audience.management.write (write also needs read; erase needs both).

id
required
string format: uuid
stage
required
string
rowId
required
string format: uuid
Media typeapplication/json
object
rowVersion
required
integer | string format: uint32
/^-?(?:0|[1-9]\d*)$/
facts
One of:
null
Examplegenerated
{
"rowVersion": 1,
"facts": {}
}

{ "id", "stage", "state": { "id", "name", "kind", "isTerminal" }, "outcome", "openedAtUtc", "stateEnteredAtUtc", "closedAtUtc", "facts": { … }, "source": { "kind", "key", "label" }, "availableTransitions": [ { "id", "name", "toStateId" } ], "rowVersion", "campaignId", "campaign": { "id", "name", "kind" } }. On an awareness pass, campaignId and campaign are read-only: the campaign the pass’s campaign fact resolves to (an alias the organization already holds, or an external campaign registered the first time the text is seen). Both are absent on any other stage and when the text resolves to nothing.

validation_failed or unknown_fact.

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.

stage_row_not_found: no such pass for this person.

not_found: no such route.

stage_row_closed: a closed pass is a record and is not edited. concurrency_conflict: the pass changed since you read it.

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.