Rename a ticket or change its priority

.md

A new subject or priority for a ticket.

Scopesadmin:write
Permissionview_ticketsmanage_tickets
PUT/v1/admin/tickets/{ticket}

A new subject, a new priority, or both. Only what you send changes, so renaming a ticket never puts back a priority a colleague changed meanwhile.

The trader sees a new subject too, in their own list of tickets. Write it for them.

Answers with the ticket as it is now.

Needs a firm. Our own staff name one with the Propper-Workspace header.

Request

FieldDescription
subjectUp to 150 characters. Not empty when sent
prioritylow, normal, high or urgent
curl -X PUT "https://api.proppertrading.com/v1/admin/tickets/tkt_cbqjrnz84cq45ca7" \
  -H "Authorization: Bearer ptat_9f2c1a44_3b8e7d2f5c9a1b4e6d8f0a2c4e6b8d1f" \
  -H "Propper-Workspace: acme" \
  -H "Content-Type: application/json" \
  -d '{"subject": "Moving to a 100K account", "priority": "normal"}'

Response

The ticket, with its new subject and priority.

Errors

StatusCodeMeaning
400workspace_requiredAsked by our own staff without naming a firm
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 resolved or closed
422validation_failedAn empty subject or one longer than 150 characters, or an unknown priority