Skip to content
campaiDeveloper
campai.com

Misc · Todo · Topics

POST/{organizationId}/misc/todo/topics/{topicId}/restore

Restore todo topic

Restores an archived todo topic so it can be used for new todos. It takes an organization ID and topic ID, clears the topic's archived status, and returns no content.

Permissions

Send an API key of the organization in the path, using the X-API-Key header.

Who may call it

  • The caller must have access to the organization.
  • The caller needs the todoTopic.edit permission.

Request

Path parameters

  • organizationIdidrequired
  • topicIdidrequired
Request
curl --fail-with-body --silent --show-error --max-time 30 --globoff \
  --request POST 'https://cloud.campai.com/api/YOUR_ORGANIZATION_ID/misc/todo/topics/YOUR_TOPIC_ID/restore' \
  --header 'X-API-Key: YOUR_API_KEY'

Response

200 Successful response

No response body is specified.

What else happens

  • The endpoint attempts to update todoTopics to restore the matching topic.

Errors

Other errors

StatusErrorWhen
404The todo topic was not foundIf no archived topic matches the topic ID and organization, the endpoint returns HTTP 404 NOT_FOUND with key routes.misc.todo.topics.notFound.

Errors nearly every request can meet are listed under Errors.