Users

POST /users/{user_id}/roles

Changed on

Request

  • Base URL
    /api (relative, and the document was published on a file host, not at the API’s origin)
  • Auth
    HTTP bearer

Path parameters

user_idinteger required

User ID

Request body

role_typestring required
user_idinteger nullable

Deprecated: the target is the path's user_id. Still accepted for older clients, but only when it equals the path id (otherwise 400).

Example request

{
  "role_type": "admin"
}

Response

Role assigned; the user and all of its roles

Changes

    • breaking

      the roles/items/created_at response's property type changed from integer to string, and format from int64 to date-time for status

    • breaking

      the roles/items/updated_at response's property type changed from integer to string, and format from int64 to date-time for status

    • breaking

      the user/created_at response's property type changed from integer to string, and format from int64 to date-time for status

    2 more changes in this revision