Request headers

Only registered user can perform this action
  Authentication - string - required
    Example of Authentication header : "Bearer TOKEN_FETCHED_FROM_SERVER_DURING_REGISTRATION"

Request body example

{
  "workspace_role_id": 3
}

Success response body

{
  "success": true
}

Error response body

{
  "user": [
    "not found"
  ],
  "message": "user not found"
}

Params

Param name Description
id
required

ID of user

Validations:

  • Must be a Integer

workspace_role_id
optional

ID of New Workspace Role

Validations:

  • Must be a Integer