Documentation

Get User Approval Assignments

Table of Contents

Find the users and resources that a particular user is assigned to approve. The response includes assignments in sites the caller can access as a member.

GET /users/{user_id}/approves

Path Parameters

Parameter Type Required Description
user_id string Yes QReserve user ID of the approver.

Query Parameters

Parameter Type Required Description
site_id string No Limit the results to one site.

Example

curl -H 'Authorization: YOUR_API_KEY' 'https://api.qreserve.com/users/APPROVER_USER_ID/approves?site_id=SITE_ID'

Response

data.users contains the assignments for site users. data.reservables contains the assignments for resources. The arrays contain assignment objects. Fields are abbreviated.

{
  "status": "success",
  "data": {
    "users": [
      {
        "site_id": "SITE_ID",
        "user_id": "USER_ID",
        "approver_id": "APPROVER_USER_ID"
      }
    ],
    "reservables": [
      {
        "site_id": "SITE_ID",
        "reservable_id": "RESOURCE_ID",
        "approver_id": "APPROVER_USER_ID"
      }
    ]
  }
}

To find who approves a given site user, use Get User Approvers.

See the Approvers API overview for related endpoints.