Skip to main content
DELETE
/
v1
/
access-management
Delete Access Role
const options = {
  method: 'DELETE',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: JSON.stringify({roleId: 'c44a66ea-d0ba-4423-9f85-25c68f7aa37b'})
};

fetch('https://api.trackpilots.com/v1/access-management', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
{
  "success": true,
  "statusCode": 200,
  "statusMessage": "Role deleted successfully.",
  "error": null,
  "data": {
    "roleId": "c0296718-3538-461b-9045-e12d11a80605"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
roleId
string<uuid>
required
Example:

"c44a66ea-d0ba-4423-9f85-25c68f7aa37b"

Response

Role deleted successfully

success
boolean
Example:

true

statusCode
integer
Example:

200

statusMessage
string
Example:

"Role deleted successfully."

error
object
Example:

null

data
object