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.
/topics/{topicId}/archiveAuthorizationBearer token · headerrequiredOrganization API key (modem_…).
topicIdstring<uuid>requiredID of the topic to archive or restore.
Idempotency-KeystringReplays a successful mutating request for 24 hours. Reuse with a different payload returns 409.
application/jsonarchivedbooleanrequiredTrue to archive; false to restore.
archivedReasonstringReason for archiving. Agent archive calls require a nonblank reason. Omit when restoring.
OK
archivedbooleanrequiredarchivedAtstring<date-time> | nullrequiredShow propertiesHide properties
string<date-time>nullarchivedByUserIdstring | nullrequiredShow propertiesHide properties
stringstringnullarchivedReasonstring | nullrequiredShow propertiesHide properties
stringnulltopicIdstring<uuid>requiredInvalid request (validation failed).
codestringrequiredMachine-readable error code, e.g. NOT_FOUND.
dataanyOptional structured error details.
definedbooleanrequiredTrue if the error was declared in the procedure contract.
messagestringrequiredHuman-readable error message.
statusintegerrequiredHTTP status code.
Missing or invalid API key.
codestringrequiredMachine-readable error code, e.g. NOT_FOUND.
dataanyOptional structured error details.
definedbooleanrequiredTrue if the error was declared in the procedure contract.
messagestringrequiredHuman-readable error message.
statusintegerrequiredHTTP status code.
The API key does not have access to this resource.
codestringrequiredMachine-readable error code, e.g. NOT_FOUND.
dataanyOptional structured error details.
definedbooleanrequiredTrue if the error was declared in the procedure contract.
messagestringrequiredHuman-readable error message.
statusintegerrequiredHTTP status code.
The requested resource was not found.
codestringrequiredMachine-readable error code, e.g. NOT_FOUND.
dataanyOptional structured error details.
definedbooleanrequiredTrue if the error was declared in the procedure contract.
messagestringrequiredHuman-readable error message.
statusintegerrequiredHTTP status code.
The request conflicts with an existing resource or idempotency operation.
codestringrequiredMachine-readable error code, e.g. NOT_FOUND.
dataanyOptional structured error details.
definedbooleanrequiredTrue if the error was declared in the procedure contract.
messagestringrequiredHuman-readable error message.
statusintegerrequiredHTTP status code.
Rate limit exceeded.
codestringrequiredMachine-readable error code, e.g. NOT_FOUND.
dataanyOptional structured error details.
definedbooleanrequiredTrue if the error was declared in the procedure contract.
messagestringrequiredHuman-readable error message.
statusintegerrequiredHTTP status code.
Internal server error.
codestringrequiredMachine-readable error code, e.g. NOT_FOUND.
dataanyOptional structured error details.
definedbooleanrequiredTrue if the error was declared in the procedure contract.
messagestringrequiredHuman-readable error message.
statusintegerrequiredHTTP status code.