Resolve a ticket

.md

End a ticket as answered. The trader reads a line in the thread saying so.

Scopesadmin:write
Permissionview_ticketsmanage_tickets
POST/v1/admin/tickets/{ticket}/resolve

End 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

StatusCodeMeaning
400workspace_requiredAsked by our own staff without naming a firm
400missing_idempotency_keyA POST without an Idempotency-Key header
401invalid_tokenNot a token, or the secret does not match
401revoked_tokenSigned out here or from another device
401expired_tokenNinety days without use, or a set expiry passed
403admin_access_requiredThis account no longer helps run the environment
403insufficient_scopeThis device does not hold admin:write
403workspace_not_permittedThe Propper-Workspace header names an environment this account cannot act in
403forbiddenWithout view_tickets and manage_tickets
404resource_not_foundNo ticket with that id in this firm
409ticket_endedThe ticket was already resolved or closed