Update Ticket
PUT {{baseUrl}}/api/v2/tickets/:ticket_id
Request Body
{"ticket"=>{"additional_collaborators"=>[{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, {"value"=>"<Error: Too many levels of nesting to fake this schema>"}], "assignee_email"=>"<email>", "assignee_id"=>"<integer>", "attribute_value_ids"=>["<integer>", "<integer>"], "collaborator_ids"=>"<array>", "comment"=>{"author_id"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "body"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "html_body"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "public"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "uploads"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "via"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}}, "custom_fields"=>"<array>", "custom_status_id"=>"<integer>", "due_at"=>"<dateTime>", "email_ccs"=>[{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, {"value"=>"<Error: Too many levels of nesting to fake this schema>"}], "external_id"=>"<string>", "followers"=>[{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, {"value"=>"<Error: Too many levels of nesting to fake this schema>"}], "group_id"=>"<integer>", "organization_id"=>"<integer>", "priority"=>"<string>", "problem_id"=>"<integer>", "requester_id"=>"<integer>", "safe_update"=>"<boolean>", "sharing_agreement_ids"=>["<integer>", "<integer>"], "status"=>"<string>", "subject"=>"<string>", "tags"=>"<array>", "type"=>"<string>", "updated_stamp"=>"<dateTime>"}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
{"audit":{"events":[{"field_name":"subject","id":206091192546,"type":"Create","value":"My printer is on fire!"},{"body":"The smoke is very colorful.","id":206091192547,"type":"Comment"},{"field_name":"status","id":206091192548,"type":"Create","value":"open"},{"field_name":"custom_status_id","id":206091192549,"type":"Create","value":123}]},"ticket":{"custom_status_id":123,"id":35436,"requester_id":123453,"status":"open","subject":"My printer is on fire!"}}