Skip to content
campaiDeveloper
campai.com

Misc · Todo · Projects

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

Archive todo project

Archives a todo project in an organization while preserving existing todo references. It takes an organization ID and project ID 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 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/archive' \
  --header 'X-API-Key: YOUR_API_KEY'

Response

200 Successful response

No response body is specified.

What else happens

  • The endpoint updates todoProjects, setting archivedAt to the current time and archivedBy to the actor.

Errors

Other errors

StatusErrorWhen
404The todo project was not foundIf no unarchived project with the given ID is found in the organization, the endpoint returns HTTP 404 with key routes.misc.todo.projects.notFound.

Errors nearly every request can meet are listed under Errors.