ticket
ticketMessage
ticket
Update a ticket
ticket
Update a ticket
PUT
/
tickets
/
{id}
curl --request PUT \
--url https://core.api.ravennahq.com/api/tickets/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"data": {
"originalQueueId": "<string>",
"publishedAt": "<string>",
"assignedAt": "<string>",
"startAt": "<string>",
"assigneeId": "<string>",
"authorId": "<string>",
"code": "<string>",
"description": "<string>",
"dueAt": "<string>",
"closedAt": "<string>",
"followers": [
{
"id": "<string>"
}
],
"approvers": [
{
"id": "<string>"
}
],
"approvedAt": "<string>",
"declinedAt": "<string>",
"id": "<string>",
"number": 123,
"priority": "URGENT",
"published": true,
"queueId": "<string>",
"requesterId": "<string>",
"resolvedAt": "<string>",
"slackChannelId": "<string>",
"source": "WEB",
"statusId": "<string>",
"tags": [
{
"id": "<string>"
}
],
"title": "<string>",
"requestTypeId": "<string>",
"disableAIResponse": true,
"parentId": "<string>",
"snoozeUntil": "<string>",
"customFields": "<any>"
}
}'
{
"id": "<string>",
"publishedAt": "<string>",
"assignedAt": "<string>",
"closedAt": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>",
"requestType": {
"id": "<string>",
"name": "<string>"
},
"assigneeId": "<string>",
"shortId": "<string>",
"authorId": "<string>",
"code": "<string>",
"private": true,
"description": "<string>",
"dueAt": "<string>",
"followers": [
{
"id": "<string>"
}
],
"approvers": [
{
"id": "<string>"
}
],
"approvedAt": "<string>",
"declinedAt": "<string>",
"number": 123,
"priority": "URGENT",
"shares": [
{
"id": "<string>",
"queueId": "<string>",
"queue": {
"workspaceId": "<string>",
"name": "<string>",
"emoji": "<string>"
},
"ticketId": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>"
}
],
"published": true,
"queueId": "<string>",
"requesterId": "<string>",
"resolvedAt": "<string>",
"startAt": "<string>",
"snoozeUntil": "<string>",
"respondedAt": "<string>",
"slackChannelId": "<string>",
"archivedAt": "<string>",
"slackChannel": {
"appId": "<string>",
"channelId": "<string>",
"channelName": "<string>"
},
"slackThreads": [
{
"id": "<string>",
"type": "DM",
"userId": "<string>",
"appId": "<string>",
"channelId": "<string>",
"messageTs": "<string>",
"mirrorTs": "<string>",
"ticketId": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>"
}
],
"source": "WEB",
"statusId": "<string>",
"status": {
"id": "<string>",
"label": "<string>",
"order": 123,
"system": true,
"statusGroupId": "<string>",
"statusGroup": {
"id": "<string>",
"label": "<string>"
},
"requestTypes": [
{
"id": "<string>",
"requestTypeId": "<string>",
"ticketStatusId": "<string>"
}
],
"_count": {
"tickets": 123
},
"createdAt": "<string>",
"updatedAt": "<string>"
},
"tags": [
{
"id": "<string>",
"name": "<string>",
"color": "tomato",
"workspaceId": "<string>",
"description": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>"
}
],
"stars": [
{
"userId": "<string>"
}
],
"queue": {
"id": "<string>",
"emoji": "<string>",
"name": "<string>",
"prefix": "<string>",
"workspaceId": "<string>",
"workspace": {
"id": "<string>",
"name": "<string>",
"slug": "<string>",
"organizationId": "<string>"
}
},
"originalQueueId": "<string>",
"title": "<string>",
"requestTypeId": "<string>",
"csat": [
{
"id": "<string>",
"score": 3,
"feedback": "<string>",
"userId": "<string>",
"ticketId": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>"
}
],
"disableAIResponse": true,
"customFields": "<any>",
"parentId": "<string>",
"parent": {
"id": "<string>",
"number": 123,
"queue": {
"id": "<string>",
"prefix": "<string>"
}
},
"children": [
{
"id": "<string>",
"title": "<string>",
"description": "<string>",
"number": 123,
"statusId": "<string>",
"legacyStatus": "OPEN",
"priority": "URGENT",
"queueId": "<string>",
"assigneeId": "<string>"
}
],
"viewerInfo": {
"viewedAt": "<string>",
"isViewed": true
},
"attachments": [
{
"id": "<string>",
"filename": "<string>",
"location": "<string>",
"status": "processing",
"ticketId": "<string>",
"ticketMessageId": "<string>",
"mimeType": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>",
"metadata": "<any>"
}
]
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
Body
application/json
Available options:
URGENT
, HIGH
, MEDIUM
, LOW
Available options:
WEB
, EMAIL
, FORM
, SLACK
, SLA
Response
200
application/json
Successful response
Available options:
URGENT
, HIGH
, MEDIUM
, LOW
Available options:
DM
, REQUEST
, TRIAGE
, GROUP
, ASSISTANT
Available options:
WEB
, EMAIL
, FORM
, SLACK
, SLA
Available options:
tomato
, red
, ruby
, crimson
, pink
, plum
, purple
, violet
, iris
, indigo
, blue
, cyan
, teal
, jade
, green
, grass
, brown
, orange
, sky
, mint
, lime
, yellow
, amber
, gold
, bronze
, gray
Available options:
OPEN
, PENDING
, ON_HOLD
, RESOLVED
, CLOSED
Available options:
URGENT
, HIGH
, MEDIUM
, LOW
Available options:
processing
, completed
, failed
, pending
curl --request PUT \
--url https://core.api.ravennahq.com/api/tickets/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"data": {
"originalQueueId": "<string>",
"publishedAt": "<string>",
"assignedAt": "<string>",
"startAt": "<string>",
"assigneeId": "<string>",
"authorId": "<string>",
"code": "<string>",
"description": "<string>",
"dueAt": "<string>",
"closedAt": "<string>",
"followers": [
{
"id": "<string>"
}
],
"approvers": [
{
"id": "<string>"
}
],
"approvedAt": "<string>",
"declinedAt": "<string>",
"id": "<string>",
"number": 123,
"priority": "URGENT",
"published": true,
"queueId": "<string>",
"requesterId": "<string>",
"resolvedAt": "<string>",
"slackChannelId": "<string>",
"source": "WEB",
"statusId": "<string>",
"tags": [
{
"id": "<string>"
}
],
"title": "<string>",
"requestTypeId": "<string>",
"disableAIResponse": true,
"parentId": "<string>",
"snoozeUntil": "<string>",
"customFields": "<any>"
}
}'
{
"id": "<string>",
"publishedAt": "<string>",
"assignedAt": "<string>",
"closedAt": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>",
"requestType": {
"id": "<string>",
"name": "<string>"
},
"assigneeId": "<string>",
"shortId": "<string>",
"authorId": "<string>",
"code": "<string>",
"private": true,
"description": "<string>",
"dueAt": "<string>",
"followers": [
{
"id": "<string>"
}
],
"approvers": [
{
"id": "<string>"
}
],
"approvedAt": "<string>",
"declinedAt": "<string>",
"number": 123,
"priority": "URGENT",
"shares": [
{
"id": "<string>",
"queueId": "<string>",
"queue": {
"workspaceId": "<string>",
"name": "<string>",
"emoji": "<string>"
},
"ticketId": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>"
}
],
"published": true,
"queueId": "<string>",
"requesterId": "<string>",
"resolvedAt": "<string>",
"startAt": "<string>",
"snoozeUntil": "<string>",
"respondedAt": "<string>",
"slackChannelId": "<string>",
"archivedAt": "<string>",
"slackChannel": {
"appId": "<string>",
"channelId": "<string>",
"channelName": "<string>"
},
"slackThreads": [
{
"id": "<string>",
"type": "DM",
"userId": "<string>",
"appId": "<string>",
"channelId": "<string>",
"messageTs": "<string>",
"mirrorTs": "<string>",
"ticketId": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>"
}
],
"source": "WEB",
"statusId": "<string>",
"status": {
"id": "<string>",
"label": "<string>",
"order": 123,
"system": true,
"statusGroupId": "<string>",
"statusGroup": {
"id": "<string>",
"label": "<string>"
},
"requestTypes": [
{
"id": "<string>",
"requestTypeId": "<string>",
"ticketStatusId": "<string>"
}
],
"_count": {
"tickets": 123
},
"createdAt": "<string>",
"updatedAt": "<string>"
},
"tags": [
{
"id": "<string>",
"name": "<string>",
"color": "tomato",
"workspaceId": "<string>",
"description": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>"
}
],
"stars": [
{
"userId": "<string>"
}
],
"queue": {
"id": "<string>",
"emoji": "<string>",
"name": "<string>",
"prefix": "<string>",
"workspaceId": "<string>",
"workspace": {
"id": "<string>",
"name": "<string>",
"slug": "<string>",
"organizationId": "<string>"
}
},
"originalQueueId": "<string>",
"title": "<string>",
"requestTypeId": "<string>",
"csat": [
{
"id": "<string>",
"score": 3,
"feedback": "<string>",
"userId": "<string>",
"ticketId": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>"
}
],
"disableAIResponse": true,
"customFields": "<any>",
"parentId": "<string>",
"parent": {
"id": "<string>",
"number": 123,
"queue": {
"id": "<string>",
"prefix": "<string>"
}
},
"children": [
{
"id": "<string>",
"title": "<string>",
"description": "<string>",
"number": 123,
"statusId": "<string>",
"legacyStatus": "OPEN",
"priority": "URGENT",
"queueId": "<string>",
"assigneeId": "<string>"
}
],
"viewerInfo": {
"viewedAt": "<string>",
"isViewed": true
},
"attachments": [
{
"id": "<string>",
"filename": "<string>",
"location": "<string>",
"status": "processing",
"ticketId": "<string>",
"ticketMessageId": "<string>",
"mimeType": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>",
"metadata": "<any>"
}
]
}