v1

latestOpenAPI 3.1.02026-07-24170121.2 MB

Revoke Roles

post/v1/roles/revoke

Headers

Acceptstring required

Indicates which content types, expressed as MIME types, the client is able to understand.

Content-Typestring required

Indicates the media type of the resource sent in the HTTP message body. <br /><br /><b>Possible Values:</b><br /> application/json<br />application/x-www-form-urlencoded

Request body

user_idstring required

IDs of the user.

roles_idsstring[] required

IDs of roles that should be revoked from the User.

Response

200

Example response

{
  "data": {
    "object": "User",
    "id": "v68VRv6Zn62RZ2J4",
    "real_id": 26807,
    "name": "Notification",
    "email": "notification@payarc.com",
    "created_at": 1704976789,
    "updated_at": 1704976789,
    "readable_created_at": "9 months ago",
    "readable_updated_at": "9 months ago",
    "response_content": true,
    "username": "Notification"
  },
  "meta": {
    "include": [
      "roles"
    ]
  }
}