Returns the list of the visible tickets for the user
GET '/api/v2/tickets':
[
{
"id": 1,
"title": "first ticket",
"tags": ["tag1","tag2"],
"small_summary": "text",
"content": "text",
"status": "Planned",
"user_id": 22,
"created_at": "2014-05-20T14:41:41+02:00",
"updated_at": "2014-05-20T14:41:41+02:00"
},
{
"id": 2,
"title": "second ticket",
"tags": ["tag1","tag2"],
"small_summary": "text",
"content": "text",
"status": "In Progress",
"user_id": 24,
"created_at": "2014-05-20T14:41:41+02:00",
"updated_at": "2014-05-20T14:41:41+02:00"
}
]
Returns detailed information about a ticket.
GET '/api/v2/tickets/2':
{
"id": 2,
"title": "second ticket",
"tags": ["tag1","tag2"],
"small_summary": "text",
"content": "text",
"status": "In Progress",
"user_id": 24,
"created_at": "2014-05-20T14:41:41+02:00",
"updated_at": "2014-05-20T14:41:41+02:00"
}
POST '/api/v2/tickets' -d {
"ticket": {
"title": "second ticket",
"tags": ["tag1","tag2"],
"small_summary": "text",
"content": "text",
"status": "In Progress"
},
"restricted_accounts": ["account_name_1", "account_name_2"]
}
| Param name | Description |
|---|---|
|
title
required |
The title of the ticket Validations:
|
|
tags
required |
The tags for the ticket Validations:
|
|
small_summary
required |
The summary of the ticket Validations:
|
|
content
required |
The content of the ticket Validations:
|
|
status
optional |
The status of the ticket: should be opened or pending Validations:
|
|
restricted_accounts
optional |
The names of the accounts when the ticket has restricted accounts Validations:
|
Update the ticket’s informations
PUT '/api/v2/tickets/2':
{
"ticket": {
"title": "second ticket",
"tags": ["tag1","tag2"],
"small_summary": "text",
"content": "text",
"status": "In Progress"
}
}
| Param name | Description |
|---|---|
|
title
required |
The title of the ticket Validations:
|
|
tags
required |
The tags for the ticket Validations:
|
|
small_summary
required |
The summary of the ticket Validations:
|
|
content
required |
The content of the ticket Validations:
|
|
status
required |
The status of the ticket: should be opened or pending Validations:
|
|
user_id
optional |
The id of the ticket’s owner Validations:
|
Close the ticket and return the informations
PUT '/api/v2/tickets/:id/close' : {
"id": 2,
"title": "second ticket",
"tags": ["tag1","tag2"],
"small_summary": "text",
"content": "text",
"status": "Closed",
"user_id": 24,
"created_at": "2014-05-20T14:41:41+02:00",
"updated_at": "2014-05-20T14:41:41+02:00"
}
GET '/api/v2/tickets/:id/acks_status' : {
"ack_status" : "acked" or "not_acked"
}
| Param name | Description |
|---|---|
|
ack_status
optional |
The ack status to filter users Validations:
|