PATCH
/
unified
/
ticketing
/
tickets
/
{id}
curl --request PATCH \
  --url https://api.stackone.com/unified/ticketing/tickets/{id} \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --header 'x-account-id: <x-account-id>' \
  --data '{
  "unified_custom_fields": {
    "my_project_custom_field_1": "REF-1236",
    "my_project_custom_field_2": "some other value"
  },
  "title": "System outage in production environment",
  "reporters": [
    "user-001",
    "user-002"
  ],
  "assignees": [
    "user-001",
    "user-002"
  ],
  "content": [
    {
      "plain": "This is some content",
      "html": "<p>This is some content</p>"
    }
  ],
  "parent_id": "ticket-002",
  "priority": {
    "id": "001",
    "value": "medium",
    "source_value": "Normal"
  },
  "tags": [
    "tag-001",
    "tag-002"
  ],
  "collection_ids": [
    "collection-001",
    "collection-002"
  ],
  "status": {
    "id": "001",
    "type": {
      "value": "to-do",
      "source_value": "New"
    },
    "name": "Backlog"
  }
}'
{
  "statusCode": 200,
  "message": "Record updated successfully.",
  "timestamp": "2021-01-01T01:01:01.000Z"
}

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Headers

x-account-id
string
required

The account identifier

Path Parameters

id
string
required

Body

application/json

Response

200
application/json

Record updated successfully.

The response is of type object.