Delete approval level
Delete by ID
deleteApprovalLevel
Deletes an approval level by ID.
Method
POST
Path
/graphql
Authentication
Bearer Token
Request Body Schema
Content-type: application/json
Variables
| Name | Type | Required | Description |
|---|---|---|---|
id | ID | Required | The approval level ID to delete |
Example Payload
{
"query": "mutation ($id: ID!) { deleteApprovalLevel(id: $id) { id name } }",
"variables": {
"id": "01JNQX4KZB7WNVR3MPXT6A0002"
}
}
Response
Returns the deleted ApprovalLevel object.
Example Response
{
"data": {
"deleteApprovalLevel": {
"id": "01JNQX4KZB7WNVR3MPXT6A0002",
"name": "Manager"
}
}
}
Errors
Example Response
{
"errors": [
{
"message": "Unauthenticated."
}
]
}
Method
POSTPath
/graphqlAuthentication
Bearer TokenPath Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| id | string | Required | User identifier |