ticket
Get a deterministic labor-hours breakdown for a set of tickets
/v1/tickets/time-breakdownReads the labor hours logged against up to 100 tickets in the caller's tenant, given as one comma-separated string of ticket ids, grouped by work type, with entry and ticket counts per group and a grand total. A ticket whose client is hidden or that the PSA no longer backs contributes nothing, the same visibility rule ticket.get and ticket.search apply. noData is true when none of the given tickets have a single time entry -- distinct from a real zero, which a caller must not confuse with missing data.
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| ticketIds | query | Yes | string | — |
Request body
No request body.
Responses and errors
200
Get a deterministic labor-hours breakdown for a set of tickets
- breakdown (required): array
- count (required): integer
- grandTotalHours (required): object
- noData (required): boolean
400
Error envelope. `error.code` carries the typed outcome and `error.type` resolves to its description.
- ValidationFailedError:
- allOf: ErrorEnvelope
401
Error envelope. `error.code` carries the typed outcome and `error.type` resolves to its description.
- UnauthorizedError:
- allOf: ErrorEnvelope
403
Error envelope. `error.code` carries the typed outcome and `error.type` resolves to its description.
- ForbiddenError:
- allOf: ErrorEnvelope
429
Error envelope. `error.code` carries the typed outcome and `error.type` resolves to its description.
- RateLimitedError:
- allOf: ErrorEnvelope
503
Error envelope. `error.code` carries the typed outcome and `error.type` resolves to its description.
- UnavailableError:
- allOf: ErrorEnvelope
Example
curl --request GET \
--url 'https://api.scopable.io/v1/tickets/time-breakdown' \
--header 'Authorization: Bearer $SCOPABLE_API_KEY'Replace $SCOPABLE_API_KEY with a key created in Settings, API.
Need help with the API? …