Tickets
Create Ticket
Ticketing
Common Guides
API Reference
- Tickets
- GETList Tickets
- POSTCreate Ticket
- GETGet Ticket
- Comments
- Attachments
- Ticket Statuses
- GET
- Users
- Ticket Types
- Collections
Tickets
Create Ticket
POST
/
unified
/
ticketing
/
tickets
curl --request POST \
--url https://api.stackone.com/unified/ticketing/tickets \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--header 'x-account-id: <x-account-id>' \
--data '{
"title": "System outage in production environment",
"creator_id": "user-001",
"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"
],
"collections": [
"collection-001",
"collection-002"
],
"type": "ticket-type-001",
"organization_id": "organization-001"
}'
{
"statusCode": 201,
"message": "Record created successfully.",
"timestamp": "2021-01-01T01:01:01.000Z",
"data": {
"id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3",
"remote_id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3"
}
}
Authorizations
Basic authentication header of the form Basic <encoded-value>
, where <encoded-value>
is the base64-encoded string username:password
.
Headers
The account identifier
Body
application/json
Response
201
application/json
Record created successfully.
The response is of type object
.
Was this page helpful?
curl --request POST \
--url https://api.stackone.com/unified/ticketing/tickets \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--header 'x-account-id: <x-account-id>' \
--data '{
"title": "System outage in production environment",
"creator_id": "user-001",
"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"
],
"collections": [
"collection-001",
"collection-002"
],
"type": "ticket-type-001",
"organization_id": "organization-001"
}'
{
"statusCode": 201,
"message": "Record created successfully.",
"timestamp": "2021-01-01T01:01:01.000Z",
"data": {
"id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3",
"remote_id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3"
}
}