Topics

Archive topic

Archive a topic or restore an archived topic by ID. Archive only the requested topic. Agent archive calls require a nonblank archivedReason; omit archivedReason when restoring. Superseded topics cannot be changed. Repeated calls preserve the original archive decision and history.

post/topics/{topicId}/archive

Request

  • Base URL: https://api.modem.dev/v1
  • URL: https://api.modem.dev/v1/topics/{topicId}/archive
  • Auth: HTTP bearer

Path parameters

topicIdstring uuid required

ID of the topic to archive or restore.

Headers

Idempotency-Keystring

Replays a successful mutating request for 24 hours. Reuse with a different payload returns 409.

Request body

archivedboolean required

True to archive; false to restore.

archivedReasonstring

Reason for archiving. Agent archive calls require a nonblank reason. Omit when restoring.

Response

OK

archivedboolean required
archivedAtstring date-time nullable required
archivedReasonstring nullable required
topicIdstring uuid required

Changes

No recorded changes to this operation across all 1 revision of this API.