Assign a ticket

.md

Give a ticket to an agent, a team, both, or nobody.

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

Who on the team holds the ticket: an agent, a team, both, or nobody. Only the fields you send change, so the agent and the team can be set apart. Send one as null to clear it. A ticket given to a team counts as "mine" for everybody on it.

Giving a ticket that waits for the team to somebody new tells them with the bell. The trader never hears who holds their ticket.

The agents and teams to pick from are the options.

Answers with the ticket, with assignee and team as they are now.

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

Request

FieldDescription
admin_idThe id of one of the firm's agents, or null for no agent. Left out, the agent stays
team_idThe id of one of the firm's teams, or null for no team. Left out, the team stays
curl -X PUT "https://api.proppertrading.com/v1/admin/tickets/tkt_cbqjrnz84cq45ca7/assign" \
  -H "Authorization: Bearer ptat_9f2c1a44_3b8e7d2f5c9a1b4e6d8f0a2c4e6b8d1f" \
  -H "Propper-Workspace: acme" \
  -H "Content-Type: application/json" \
  -d '{"admin_id": "usr_afekquw8p97wv6tb", "team_id": "team_cmhg8847tuqg3mq6"}'

Response

The ticket, held now by Sam Carter on the Payouts desk.

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_failedadmin_id is not one of the firm's agents, a trader for instance, or team_id is not one of its teams. Nothing changes