Skip to main content
PATCH
/
unified
/
ticketing
/
tickets
/
{id}
Update Ticket
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"
  ],
  "project_id": "project-001",
  "component_ids": [
    "component-001",
    "component-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
unified_custom_fields
object | null

Custom Unified Fields configured in your StackOne project

Example:
{
"my_project_custom_field_1": "REF-1236",
"my_project_custom_field_2": "some other value"
}
title
string | null

The title or subject of the ticket

Example:

"System outage in production environment"

reporters
string[] | null

Users who reported the ticket

Example:
["user-001", "user-002"]
assignees
string[] | null

Agents assigned to the ticket

Example:
["user-001", "user-002"]
content
object[] | null

Array of content associated with the ticket

parent_id
string | null

ID of the parent ticket if this is a sub-ticket

Example:

"ticket-002"

priority
object

Priority of the ticket

tags
string[] | null

The tags of the ticket

Example:
["tag-001", "tag-002"]
project_id
string | null

Project the ticket belongs to

Example:

"project-001"

component_ids
string | null

Components to associate with the ticket

Example:
["component-001", "component-002"]
status
object

Current status of the ticket

Response

Record updated successfully.

statusCode
number
required
Example:

200

message
string
required
Example:

"Record updated successfully."

timestamp
string<date-time>
required
Example:

"2021-01-01T01:01:01.000Z"