Errors

Code Description
401 Unauthorized
500 Internal Server Error
422 Missing parameters

Examples

POST /api/v2/projects/not-found-id/members
404
{
  "error": "project not found"
}
POST /api/v2/projects/M42wT3wBW4fR4Me24H3F/members
{
  "user_id": 0
}
200
{
  "error": "User not found with id 0"
}
POST /api/v2/projects/NI2wT3wBW4fR4Me25X0L/members
{
  "user_id": 311
}
200
{
  "error": "User is already member of this project"
}
POST /api/v2/projects/NY2wT3wBW4fR4Me26X0k/members
{
  "user_id": 313
}
200
{
  "ok": "User 313 has been added to project NY2wT3wBW4fR4Me26X0k"
}

Params

Param name Description
project_id
required

Project ID

Validations:

  • Must be a String

user_id
required

User ID

Validations:

  • Must be a Integer

Headers

Header name Description
Content-Type
required
application/json
X-API-KEY
required
YOUR_API_KEY