Get my pending approvals
GET {{baseUrl}}/api/v1/myPendingApprovals?department=<String>
This API lists the pending approvals for a given user
OAuth Scope
Desk.settings.READ
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
from | string | Index number, starting from which the pending approvals for a give user must be fetched. | |
department | string | ID of the department from which pending approvals must be fetched. You can pass a specific department ID or allDepartment in the API request. | |
limit | string | Number of pending approvals to list | |
sortBy | string | Sort by a specific attribute: createdTime . The default sorting order is ascending. A - prefix denotes descending order of sorting. |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Authorization | string |
RESPONSES
status: OK
{"myPendingApprovals":[{"departmentName":"Sales","requester":{"firstName":"","lastName":"Smith","photoURL":"https://desk.zoho.com/api/v1/agent/5000000012902/photo","id":"5000000012902","email":null},"ticketNumber":"102","subject":"Sample subject","departmentId":"4000000019077","createdTime":"2019-06-21T13:16:14.000Z","description":"Sample description","id":"4000002350527","ticketId":"4000002350527"},{"departmentName":"Marketing","requester":{"firstName":"","lastName":"John","photoURL":"https://desk.zoho.com/api/v1/agent/5000000012932/photo","id":"5000000012932","email":null},"ticketNumber":"102","subject":"Sample subject","departmentId":"4000000019067","createdTime":"2019-06-21T13:16:14.000Z","description":"","id":"4000002350527","ticketId":"4000000014335"}],"assignee":{"firstName":"John","lastName":"Carol","photoURL":"https://desk.zoho.com/api/v1/agents/1892000000056007/photo","id":"1892000000056007","email":"carol@zylker.com"}}