Create a ticket

Parameters

HTTP method

Access rights

URL

Parameters

Note

POST manage_tickets https://api.admitad.com/tickets/create/ Request parameters list.
  • * Returns the result in the JSON format.

Request parameters list.

Name

Type

Required

Allowed values

Description

subject string  

Subject

text string  

Text

advcampaign integer List of affiliate programs  
category integer  

Category ID

priority integer
  • 1 (Low)

  • 2 (Normal)

  • 3 (Urgent)

 

Example of use

Example of a request with utility ``curl``:

curl -L -H 'Authorization: Bearer access_token' -X POST https://api.admitad.com/tickets/create/ -d 'subject=Hdis&campaign=6&text=Some text&category=1&priority=1'

Example of the response from the API server in the JSON format:

{
    "status": 1,
    "category": {
        "name": "FAQ",
        "id": 1
    },
    "date_modified": "2014-09-12T22:34:45.809",
    "text": "Some text",
    "plain_text": "Some text",
    "comments": [],
    "priority": 1,
    "date_created": "2014-09-12T22:34:45.795",
    "id": 51,
    "subject": "Hdis"
}