Posts can be listed either for a specific ticket using the nested route or across all tickets using the standalone route.
Nested: GET /v1/ats/tickets/:ticket_id/posts — returns only posts belonging to the specified ticket. Returns 403 if the ticket does not exist.
Standalone: GET /v1/ats/posts — returns all posts across all tickets visible to the API user.
Example request (nested):
GET /api/index.php/v1/ats/tickets/42/postsAuthorization: Bearer <token>Accept: application/vnd.api+json
HTTP codes:
Returns a JSON:API collection of post resources.
The API user is not an ATS manager, or (for the nested route) the ticket does not exist.