Back to Home

Documentation

Everything you need to know to get the most out of DiscountFlow. Find guides, tutorials, and API references.

Quick Start
API References
FAQs

API References

API References
/
API Endpoints
/
Delete approval level

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

NameTypeRequiredDescription
idIDRequiredThe 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."
    }
  ]
}