Operations API
Ticketing
Assign Ticket
this api endpoint (post) (post) assigns a ticket to a teammate if the request succeeds, it returns a ticket object docid 4ihmvxpnn0cykalz1bi9g query parameters id the id of the ticket body parameters teammate id string the id of the teammate to assign the ticket to if omitted then any teammates currently assigned to the ticket will be removed require "uri" require "json" require "net/http" url = uri("https //api tamio com/v2/merchant ticketing/assign/8dc1869d 0a0b 4c78 b40c 5b25bfa337eb") https = net http new(url host, url port) https use ssl = true request = net http post new(url) request\["accept"] = "application/json" request\["authorization"] = "bearer your token here" response = https request(request) puts response read bodycurl location request post 'https //api tamio com/v2/merchant ticketing/assign/8dc1869d 0a0b 4c78 b40c 5b25bfa337eb' \\ \ header 'accept application/json' \\ \ header 'authorization bearer your token here'var myheaders = new headers(); myheaders append("accept", "application/json"); myheaders append("authorization", "bearer your token here"); var requestoptions = { method 'post', headers myheaders, body body }; fetch("https //api tamio com/v2/merchant ticketing/assign/8dc1869d 0a0b 4c78 b40c 5b25bfa337eb", requestoptions) then(response => response text()) then(result => console log(result)) catch(error => console log('error', error));{ "status" 200, "ticket" { "id" "8dc1869d 0a0b 4c78 b40c 5b25bfa337eb", "title" "help with account", "is open" false, "object" "ticket", "created at" 1671462259, "updated at" 1671462259, "client" { "id" "3463a4ee 5eba 45cd 9ef9 3f3a0f64329e", "name" "james doe", "email" "client doe\@plugnpaid com" }, "teammate id" null, "replies" \[ { "id" "e6618a50 c0b6 49e9 8565 7b42e2027392", "text" "the client is having issues with the billing settings ", "is client reply" false, "created at" 1671462260, "assets" null }, { "id" "7dbc6406 3f5d 4c1e b3d6 88cbc464c8d7", "text" "thanks for contacting our support an agent will be with you shortly ", "is client reply" false, "created at" 1671462260, "assets" null } ], "category" "general support", "subcategory" null, "language" "en" } }