List all contracts count
GET {{baseUrl}}/v1/contracts/count?viewId=<long> &departmentId=<String>
This API lists the number of contracts made with the account.
OAuth Scope
Desk.settings.READ
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
viewId | string | Custom view Id | |
departmentId | string | Mandatory param to fetch the count of the contracts for a given ID of a department. You can also provide department as allDepartment to fetch the count of the contracts from all the departments | |
ownerId | string | Displays the number of contracts of only a particular owner |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Authorization | string |
RESPONSES
status: OK
{"count":"10"}