JSON API » tickets » tickets/files/get

Gets a ticket file.

Input parameters

Requires authentication and the administrator or commerce role privileges.

NameTypeDescriptionRequiredDefault value
auth_usernameStringAuthentication username.Yes
auth_passwordStringAuthentication password.Yes
ticketIntegerID of ticket to get.Yes
idIntegerID of file to get.Yes

Responses

CodeDescription
200Success.
401The authentication details provided are invalid.
402Your role does not allow this.
403Your rate plan does not allow this.
404The ticket does not exist or you do not have permission to view it, or the ticket file does not exist.
500The 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

VersionChanges
4.2Function added.