Revoke Roles

post/v1/roles/revoke

Request

  • Base URL
    https://testapi.payarc.net
  • URL
    https://testapi.payarc.net/v1/roles/revoke
  • Auth
    API key in header Authorization

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"
    ]
  }
}

Changes

No recorded changes to this operation across all 2 revisions of this API.