Skip to content
campaiDeveloper
campai.com

Misc · Todo · Projects

POST/{organizationId}/misc/todo/projects

Create todo project

Creates a project for global todos in an organization. It takes organizationId, name, color, and description, and returns the project's _id.

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

Request

Path parameters

  • organizationIdidrequired

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' \
  --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

Content-Type: application/json

  • _idid
Response200
{
  "_id": "000000000000000000000001"
}

What else happens

  • Creates a record in todoProjects.

Errors

No errors of its own are known for this endpoint.

Errors nearly every request can meet are listed under Errors.