ENDPOINT | POST
Create a project
Adds a project. The token's owner needs a role that can create projects.
POSThttps://api.cloverr.co.uk/v1/projects
Scope: writeSuccess: 201120 requests a minute per token
Body (JSON)
namestringrequiredUp to 120 characters.descriptionstringUp to 2,000 characters.Example request & response
Send your token in the Authorization header. A successful response wraps the result in data.
curl -X POST https://api.cloverr.co.uk/v1/projects \
-H "Authorization: Bearer $CLOVERR_TOKEN" \
-H "Content-Type: application/json" \
-d '{"name":"Website relaunch"}'201 · JSON
{
"data": {
"id": "9b2e4f61-7c3d-4a5b-8e9f-0a1b2c3d4e5f",
"name": "Website relaunch"
}
}Errors
| Status | Code | When |
|---|---|---|
| 400 | invalid | No name. |
| 403 | forbidden | Their role can't create projects. |
| 401 | unauthorized | No token, or it's invalid, expired, revoked, or its owner left the organisation. |
| 403 | ip_not_allowed | The token only works from listed addresses, and this request came from another. |
| 403 | two_factor_required | The organisation requires login verification and the token's owner hasn't set it up. |
| 429 | rate_limited | More than 120 requests in a minute with this token. Wait for Retry-After. |
| 500 | server_error | Something went wrong on our side. Safe to retry. |
Errors look like { "error": { "code", "message" } }. All error codes.