Skip to content
campaiDeveloper
campai.com

Misc · Todo · Projects

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

Update todo project

Updates a todo project using the organization ID, project ID, name, color, and description. It also synchronizes the project name and color on linked todos. It returns no value.

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 and the todoProject.edit permission.

Request

Path parameters

  • organizationIdidrequired
  • projectIdidrequired

Body

Content-Type: application/json

  • namestringrequired

    1–64 characters

  • colorstringrequired
    22 values
    slate gray zinc neutral stone red orange amber yellow lime green emerald teal cyan sky blue indigo violet purple fuchsia pink rose
  • descriptionstringrequired

    at most 400 characters

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' \
  --header 'X-API-Key: YOUR_API_KEY'

No request that worked has been recorded yet, so the body is not shown.

Response

200 Successful response

No response body is specified.

What else happens

  • Updates the matching todoProjects record with the supplied project data.
  • Updates project.name and project.color on todoItems linked to the project in the organization.

Errors

Other errors

StatusErrorWhen
404The todo project was not foundIf the project is not 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.