Comment on the ticket¶
Parameters¶
HTTP method |
Access rights |
URL | Parameters |
Note |
---|---|---|---|---|
POST | manage_tickets | https://api.admitad.com/tickets/{id}/create/ |
Parameter request list |
|
* Returns the result in the JSON format.
Parameter request list¶
Name |
Type |
Required |
Settings restrictions |
Allowed values |
---|---|---|---|---|
text | string | ✔ | Text |
Example of use¶
Example of a request with utility ``curl``:
curl -L -H 'Authorization: Bearer access_token' -X POST https://api.admitad.com/tickets/51/create/ -d 'text=Comment text'
Example of the response from the API server in the JSON format:
{
"status": 1,
"category": {
"name": "Category name",
"id": 1
},
"date_modified": "2014-09-12T22:34:45",
"text": "<p>Some text</p>",
"plain_text": "Some text",
"messages": [
{
"files": [],
"text": "Comment",
"plain_text": "Comment",
"id": 41,
"created_by": {
"id": 123,
"first_name": "Jon",
"last_name": "Snow"
},
"date_created": "2014-09-12T22:39:52"
}
],
"priority": 1,
"date_created": "2014-09-12T22:34:45",
"id": 51,
"subject": "Hdis"
}