CognitiveX Docs
API

PATCH /api/dm/threads/{thread_id}/archive

Archive Thread

PATCH /api/dm/threads/{thread_id}/archive

Archive Thread

Authentication: Authorization: Bearer <key> or X-API-Key: <key>. Create keys at developers.cognitivx.io/keys.

Parameters

NameInTypeRequiredDescription
thread_idpathstringYes-
X-Org-IDheaderstring | nullNo-

Request body

A JSON request body is required.

FieldTypeRequiredDescription
archivedbooleanYes-

Example request

curl -X PATCH https://api.cognitivx.io/api/dm/threads/{thread_id}/archive \
  -H "Authorization: Bearer icog_..." \
  -H "Content-Type: application/json" \
  -d '{
    "archived": false
  }'

Responses

StatusDescription
204Success with no response body.
422Request validation failed. detail lists each offending field.