Skip to content
dimmiDocs

Help center

Limit a collection to an audience

PATCH/api/v1/collections/{collection}/audience

Authorization

Authorizationstringrequired

An API token, sent as Bearer <token>.

Needs the articles:write ability

Path parameters

collectionstringrequired

Id of the help center collection, starting with col_, such as col_01jx2m8k4t. Find it with GET /help-centers/{help_center}/collections.

Body

application/json
audience_idstring | nullrequired

Id of the saved audience (audn_...) that may read it; null or empty opens it to everyone.

Maximum length: 64

Response 200

OK
dataobjectrequired
Show child attributes
audience_idstring | nullrequired

Id of the audience allowed to see this collection, starting with audn_. Null when it is not limited to an audience.

created_atstringrequired

When it was created, as an RFC 3339 time, such as 2026-01-31T09:00:00Z.

Format: date-time

descriptionstring | nullrequired

Text describing what the collection holds. Null when none was written.

help_center_idstringrequired

Id of the help center the collection belongs to, starting with hc_. Send it wherever a help center is asked for.

iconstring | nullrequired

The icon shown beside the collection. Null when none is set.

idstringrequired

The id of this record. Send it wherever an endpoint asks for this record; never use its name or title in its place.

namestringrequired

The collection's name as readers see it.

objectstringrequired

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

parent_idstring | nullrequired

Id of the collection this one sits inside, starting with col_. Null for a top-level collection.

positionintegerrequired

The collection's place among its siblings; lower comes first.

Format: int32

slugstringrequired

The collection's URL name within the help center, such as getting-started.

updated_atstringrequired

When it last changed, as an RFC 3339 time, such as 2026-01-31T09:00:00Z.

Format: date-time

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.