JSON API » tickets » tickets/files/get
Gets a ticket file.
Input parameters
Requires authentication and the administrator or commerce role privileges.
Name | Type | Description | Required | Default value |
---|---|---|---|---|
auth_username | String | Authentication username. | Yes | |
auth_password | String | Authentication password. | Yes | |
ticket | Integer | ID of ticket to get. | Yes | |
id | Integer | ID of file to get. | Yes |
Responses
Code | Description |
---|---|
200 | Success. |
401 | The authentication details provided are invalid. |
402 | Your role does not allow this. |
403 | Your rate plan does not allow this. |
404 | The ticket does not exist or you do not have permission to view it, or the ticket file does not exist. |
500 | The ticket file cannot be read. |
Data returned
Fields of ticket.
Example: With required parameters
http://enswitch.example.com/api/json/tickets/files/get/?auth_username=user;auth_password=password;ticket=123;id=33{ "responses":[ { "code":"200", "key":"", "message":"OK" } ], "data":{ "id":33, "ticket":123, "data":... } }
Change history
Version | Changes |
---|---|
4.2 | Function added. |