Tickets API (v1.1.0)
Managing tickets, comments, and ticket topics in the Control panel
Create ticket
Authorizations:
X-Token
Request Body schema: application/json
files | Array of strings <uuid> (File) [ 1 .. 10 ] items [ items <uuid > ] |
client_aliased_name | string non-empty |
client_emails | Array of strings <email> non-empty [ items <email > ] |
comment_body required | string [ 1 .. 50000 ] characters |
summary required | string [ 1 .. 255 ] characters |
topic_key | string non-empty |
Responses
Request samples
- Payload
Content type
application/json
{- "comment_body": "my first comment",
- "summary": "new test ticket"
}
Response samples
- 200
- 400
- 404
- 429
- default
Content type
application/json
{- "client_aliased_name": "string",
- "client_emails": [
- "user@example.com"
], - "closed_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "is_client_author": true,
- "is_client_read": true,
- "is_closed": true,
- "is_resolved": true,
- "number": 0,
- "splitted_from_ticket_number": 0,
- "status": {
- "en": "Open",
- "ru": "Открыт"
}, - "summary": "string",
- "type": null,
- "updated_at": "2019-08-24T14:15:22Z",
- "vote": {
- "comment": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "score": 0
}
}
Returns all tickets
Authorizations:
X-Token
query Parameters
only_opened | boolean |
page | integer <int32> >= 1 Default: 1 |
only_closed | boolean |
q | string non-empty search query |
items_per_page | integer <int32> [ 1 .. 1000 ] Default: 10 |
Responses
Response samples
- 200
- 400
- default
Content type
application/json
{- "item_count": 0,
- "items": [
- {
- "client_aliased_name": "string",
- "client_emails": [
- "user@example.com"
], - "closed_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "is_client_author": true,
- "is_client_read": true,
- "is_closed": true,
- "is_resolved": true,
- "number": 0,
- "status": {
- "en": "Open",
- "ru": "Открыт"
}, - "summary": "string",
- "type": null,
- "updated_at": "2019-08-24T14:15:22Z"
}
], - "items_per_page": 0,
- "page": 0,
- "page_count": 0
}
Response samples
- 200
- default
Content type
application/json
{- "client_aliased_name": "string",
- "client_emails": [
- "user@example.com"
], - "closed_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "is_client_author": true,
- "is_client_read": true,
- "is_closed": true,
- "is_resolved": true,
- "number": 0,
- "splitted_from_ticket_number": 0,
- "status": {
- "en": "Open",
- "ru": "Открыт"
}, - "summary": "string",
- "type": null,
- "updated_at": "2019-08-24T14:15:22Z",
- "vote": {
- "comment": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "score": 0
}
}
Modify ticket properties
Authorizations:
X-Token
path Parameters
ticket_number required | integer |
Request Body schema: application/json
client_aliased_name | string or null non-empty |
client_emails | Array of strings <email> [ items <email > ] |
Responses
Request samples
- Payload
Content type
application/json
{- "client_emails": [
- "my@email.com"
]
}
Response samples
- 200
- 400
- default
Content type
application/json
{- "client_aliased_name": "string",
- "client_emails": [
- "user@example.com"
], - "closed_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "is_client_author": true,
- "is_client_read": true,
- "is_closed": true,
- "is_resolved": true,
- "number": 0,
- "splitted_from_ticket_number": 0,
- "status": {
- "en": "Open",
- "ru": "Открыт"
}, - "summary": "string",
- "type": null,
- "updated_at": "2019-08-24T14:15:22Z",
- "vote": {
- "comment": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "score": 0
}
}
Close ticket
Authorizations:
X-Token
path Parameters
ticket_number required | integer |
Request Body schema: application/json
comment | string non-empty |
score | integer <int32> [ 1 .. 10 ] |
Responses
Request samples
- Payload
Content type
application/json
{- "comment": "string",
- "score": 1
}
Response samples
- 200
- 400
- default
Content type
application/json
{- "client_aliased_name": "string",
- "client_emails": [
- "user@example.com"
], - "closed_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "is_client_author": true,
- "is_client_read": true,
- "is_closed": true,
- "is_resolved": true,
- "number": 0,
- "splitted_from_ticket_number": 0,
- "status": {
- "en": "Open",
- "ru": "Открыт"
}, - "summary": "string",
- "type": null,
- "updated_at": "2019-08-24T14:15:22Z",
- "vote": {
- "comment": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "score": 0
}
}
Reopen ticket
Authorizations:
X-Token
path Parameters
ticket_number required | integer |
Request Body schema: application/json
files | Array of strings <uuid> (File) [ 1 .. 10 ] items [ items <uuid > ] |
body required | string [ 1 .. 50000 ] characters |
Responses
Request samples
- Payload
Content type
application/json
{- "files": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "body": "string"
}
Response samples
- 200
- 400
- default
Content type
application/json
{- "client_aliased_name": "string",
- "client_emails": [
- "user@example.com"
], - "closed_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "is_client_author": true,
- "is_client_read": true,
- "is_closed": true,
- "is_resolved": true,
- "number": 0,
- "splitted_from_ticket_number": 0,
- "status": {
- "en": "Open",
- "ru": "Открыт"
}, - "summary": "string",
- "type": null,
- "updated_at": "2019-08-24T14:15:22Z",
- "vote": {
- "comment": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "score": 0
}
}
Evaluating of ticket
Authorizations:
X-Token
path Parameters
ticket_number required | integer |
Request Body schema: application/json
comment | string non-empty |
score required | integer <int32> [ 1 .. 10 ] |
Responses
Request samples
- Payload
Content type
application/json
{- "comment": "string",
- "score": 1
}
Response samples
- 200
- 400
- default
Content type
application/json
{- "comment": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "score": 0
}
Create comment to ticket
Authorizations:
X-Token
path Parameters
ticket_number required | integer |
Request Body schema: application/json
files | Array of strings <uuid> (File) [ 1 .. 10 ] items [ items <uuid > ] |
body required | string [ 1 .. 50000 ] characters |
Responses
Request samples
- Payload
Content type
application/json
{- "body": "my second comment"
}
Response samples
- 200
- 400
- 429
- default
Content type
application/json
{- "files": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "body": "string",
- "id": 0,
- "is_client_author": true,
- "is_client_read": true,
- "sent_at": "2019-08-24T14:15:22Z",
- "splitted_at": "2019-08-24T14:15:22Z",
- "splitted_to_ticket_number": 0,
- "vote": null
}
Response samples
- 200
- default
Content type
application/json
{- "items": [
- {
- "files": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "body": "string",
- "id": 0,
- "is_client_author": true,
- "is_client_read": true,
- "sent_at": "2019-08-24T14:15:22Z",
- "splitted_at": "2019-08-24T14:15:22Z",
- "splitted_to_ticket_number": 0,
- "vote": null
}
]
}
Response samples
- 200
- default
Content type
application/json
{- "files": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "body": "string",
- "id": 0,
- "is_client_author": true,
- "is_client_read": true,
- "sent_at": "2019-08-24T14:15:22Z",
- "splitted_at": "2019-08-24T14:15:22Z",
- "splitted_to_ticket_number": 0,
- "vote": null
}
Evaluating of comment
Authorizations:
X-Token
path Parameters
comment_id required | integer |
Request Body schema: application/json
comment | string non-empty |
score required | integer <int32> Enum: 1 -1 |
Responses
Request samples
- Payload
Content type
application/json
{- "comment": "string",
- "score": 1
}
Response samples
- 200
- 400
- default
Content type
application/json
{- "comment": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "score": 0
}
Response samples
- 200
- default
Content type
application/json
{- "items": [
- {
- "key": "order_consultation",
- "names": {
- "en": "Pre-Order consultation",
- "ru": "Консультация перед заказом"
}, - "subtopics": {
- "key": "servers",
- "names": {
- "en": "Servers",
- "ru": "Серверы"
}
}
}
]
}