POST
/v1/admin/tickets/{ticket}/resolveEnd the ticket the way a support desk wants to end one: the trader got their
answer. The trader reads a line in the thread saying so, in their own
language, with the event resolved, so the conversation does not just stop
on them.
Resolved and closed are both final and neither reopens: a trader with a new question opens a new ticket. Only resolved says the ticket ended well, which is the difference worth counting later. After either, the only change a ticket takes is its tags.
Answers with the ticket, now resolved, with
closed_at and closed_by set.
Needs a firm. Our own staff name one with the Propper-Workspace header.
Request
curl -X POST "https://api.proppertrading.com/v1/admin/tickets/tkt_cbqjrnz84cq45ca7/resolve" \
-H "Authorization: Bearer ptat_9f2c1a44_3b8e7d2f5c9a1b4e6d8f0a2c4e6b8d1f" \
-H "Propper-Workspace: acme" \
-H "Idempotency-Key: 2a4c6e8b-0d2f-4a4c-9e6b-8d0f2a4c6e8a"
Response
The ticket, now resolved.
Errors
| Status | Code | Meaning |
|---|---|---|
| 400 | workspace_required | Asked by our own staff without naming a firm |
| 400 | missing_idempotency_key | A POST without an Idempotency-Key header |
| 401 | invalid_token | Not a token, or the secret does not match |
| 401 | revoked_token | Signed out here or from another device |
| 401 | expired_token | Ninety days without use, or a set expiry passed |
| 403 | admin_access_required | This account no longer helps run the environment |
| 403 | insufficient_scope | This device does not hold admin:write |
| 403 | workspace_not_permitted | The Propper-Workspace header names an environment this account cannot act in |
| 403 | forbidden | Without view_tickets and manage_tickets |
| 404 | resource_not_found | No ticket with that id in this firm |
| 409 | ticket_ended | The ticket was already resolved or closed |