Headers

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

Examples

// Successful request
DELETE /api/v2/collections/Cg-3pdHh80ghToVECsg4/user_groups/5
200
{
  "ok": "User group 5 was removed succesfully"
}
// User does not belong to entity
DELETE /api/v2/collections/dTyMzjwQ6ZX3Tq_xvi3z/user_groups/6
400
{
  "error": "User group with id 6 is not part of this Collection"
}
// If :collection_id is not found
DELETE /api/v2/collections/not-found-id/user_groups/7
404
{
  "error": "collection not found"
}
// If :user_group_id is not found
DELETE /api/v2/collections/HckPQfa5hm7f3bgjqn9g/user_groups/not-found-id
404
{
  "error": "Couldn't find UserGroup with 'id'=not-found-id"
}

Errors

Code Description
401 Unauthorized
404 Not found
500 Internal Server Error
422 Missing parameters