Skip to content
dimmiDocs

Contacts and companies

Tag everyone in an audience

POST/api/v1/audiences/{audience}/freezes

Authorization

Authorizationstringrequired

An API token, sent as Bearer <token>.

Needs the contacts:write ability

Path parameters

audiencestringrequired

Id of the audience, starting with audn_, such as audn_01jx2m8k4t. Find it with GET /audiences.

Body

application/json
tagstringrequired

Name of the tag to put on them, 50 characters at most.

Maximum length: 50

Response 200

OK
dataobjectrequired
Show child attributes
matchedintegerrequired

How many values of the list named a customer, or how many customers the audience matched.

Format: int64

objectstringrequired

The kind of record this is, the same for every record of its kind, such as article.

rowsinteger

How many values the uploaded list held. Left out when an audience was tagged instead of a list.

Format: int64

tag_idstringrequired

Id of the tag that was applied, such as tag_.... Send it wherever a tag is asked for.

tag_namestringrequired

Name of the tag that was applied.

taggedintegerrequired

How many customers were newly tagged; those who already had the tag are not counted.

Format: int64

unmatchedintegerrequired

How many values of the list named nobody; 0 when an audience was tagged.

Format: int64

unmatched_samplestring[] | nullrequired

Some of the values that named nobody, to help fix the list; empty when all matched.

Response error

Error
codestringrequired

Stable code for programs to tell errors apart, such as validation_failed or internal_error.

errorsobject

Each rejected field mapped to its messages. Only present when the input was invalid.

messagestringrequired

What went wrong, in words safe to show a person.