Skip to content
campaiDeveloper
campai.com

Misc · Todo · Projects

POST/{organizationId}/misc/todo/projects/{projectId}/restore

Restore todo project

Restores an archived todo project so it can be used for new todos again. Provide the organization ID and project ID. The endpoint 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 organization access.
  • The caller needs the todoProject.edit permission.

Request

Path parameters

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

Response

200 Successful response

No response body is specified.

What else happens

  • The endpoint updates the matching todoProjects record, clearing archivedAt and archivedBy.

Errors

Other errors

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

Errors nearly every request can meet are listed under Errors.