Documentation

Delete Approver

Table of Contents

Remove an approver assignment. Match the approver and target fields used to create it. Use a site moderator’s API key for resource assignments or a site user manager’s key for user assignments.

POST /sites/{site_id}/approvers/delete

Path Parameters

Parameter Type Required Description
site_id string Yes QReserve site ID.

Request Body

For an individual approver, supply approver_user_id and the target. If the assignment applies to a specific user and resource combination, include both target fields.

Parameter Type Required Description
approver_user_id string Yes QReserve user ID of the approver.
reservable_id string Conditional QReserve resource ID to which the assignment applies.
user_id string Conditional QReserve user ID of the site user to whom the assignment applies.

Example

curl -X POST 'https://api.qreserve.com/sites/SITE_ID/approvers/delete' \
  -H 'Authorization: YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{"approver_user_id":"APPROVER_USER_ID","reservable_id":"RESOURCE_ID"}'

Response

When an existing assignment is removed, the response can include action: "deleted". Verify the result with the relevant retrieval endpoint.

{
  "status": "success",
  "action": "deleted",
  "data": [],
  "numitems": 0
}

See the Approvers API overview for related endpoints.