Skip to content

Patch Ticket

Request

Updates the Ticket object matching {ticketId} in the token-linked Integration.

Operation ID: ticketing_patch_ticket

Security
BearerAuth
Path
ticketIdstring(Id)required
Query
metaArray of strings

Add metadata to the response by invoking meta functions. Documentation for meta functions is available. Not all meta functions are available at every endpoint.

Bodyapplication/jsonrequired
Array [
opstring(PatchOp)required

The operation to perform. Supported values are add, copy, move, replace, remove, and test.

Enum:"add""copy""move""remove""replace""test"
pathstringrequired

The path to the field to update. The path is a JSON Pointer.

fromstring or null

The path to the field to copy from. This is required for copy and move operations.

valueany or null

The value to set the field to. This is required for add, replace and test operations.

]
curl
curl -i -X PATCH \
  'https://api.synqly.com/v1/ticketing/tickets/{ticketId}' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json' \
  -d '[
    {
      "op": "add",
      "path": "string"
    }
  ]'

Responses

Bodyapplication/json
resultobject(Ticket)required

A ticket. name holds the ticket title, key or record number. The value of name is provider dependent. For more detail, see provider specific documentation in the capabilities API.

messagesobject or null(MessagesResponse)

Additional messages from the service response that may be helpful to the client.

metaobject or null(MetaResponse)

Various metadata about the results organized by group, then type, then field.

Response
{ "result": { "id": "string", "summary": "string", "creator": "string", "assignee": "string", "contact": "string", "description": "string", "priority": "URGENT", "due_date": "2019-08-24T14:15:22Z", "completion_date": "2019-08-24T14:15:22Z", "status": "string", "project": "string", "issue_type": "string", "parent": "string", "tags": [ … ], "attachments": [ … ], "custom_fields": {}, "unmapped": {}, "name": "string", "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z" }, "messages": { "problems": [ … ] }, "meta": { "stats": { … }, "api": { … }, "mapping": { … } } }