POST v1/company/{companyId}/tickets
To save a new Ticket
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| companyId |
Company id |
decimal number |
Required |
Body Parameters
Ticket detail object
AppTicketModelRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| Subject |
ticket subject |
string |
None. |
| Message |
ticket description |
string |
None. |
| Module |
Ticket module number |
integer |
None. |
| TicketAttachment |
Ticket attachments |
AppAttachmentmodel |
None. |
| UserId |
User Id |
integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"Subject": "sample string 1",
"Message": "sample string 2",
"Module": 3,
"TicketAttachment": {
"FileName": "sample string 1",
"ContentType": "sample string 2",
"FileContents": "sample string 3"
},
"UserId": 4
}
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
ApiResponseOfAppTicketMasterModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Result | AppTicketMasterModel |
None. |
|
| Status | boolean |
None. |
|
| Message | string |
None. |
|
| Errors |
Errors occures while processing request |
Collection of ApiError |
None. |
Response Formats
application/json, text/json
Sample:
{
"Result": {
"TicketData": {
"Id": 1,
"TicketId": 2,
"Subject": "sample string 3",
"Message": "sample string 4",
"Attachment": "sample string 5",
"IsAttachment": true,
"Status": "sample string 6",
"DateOfCreation": "sample string 7",
"LastUpdatedOn": "sample string 8",
"SenderName": "sample string 9"
},
"TicketLog": [
{
"Id": 1,
"F_TicketsMaster": 2,
"Message": "sample string 3",
"DateOfCreation": "sample string 4",
"UserName": "sample string 5",
"Attachment": "sample string 6",
"isReplyByYou": true
},
{
"Id": 1,
"F_TicketsMaster": 2,
"Message": "sample string 3",
"DateOfCreation": "sample string 4",
"UserName": "sample string 5",
"Attachment": "sample string 6",
"isReplyByYou": true
}
]
},
"Status": true,
"Message": "sample string 2",
"Errors": [
{
"Number": 1,
"Message": "sample string 2",
"Exception": {
"ClassName": "System.Exception",
"Message": null,
"Data": null,
"InnerException": null,
"HelpURL": "sample string 1",
"StackTraceString": null,
"RemoteStackTraceString": null,
"RemoteStackIndex": 0,
"ExceptionMethod": null,
"HResult": 3,
"Source": "sample string 2",
"WatsonBuckets": null
}
},
{
"Number": 1,
"Message": "sample string 2",
"Exception": {
"ClassName": "System.Exception",
"Message": null,
"Data": null,
"InnerException": null,
"HelpURL": "sample string 1",
"StackTraceString": null,
"RemoteStackTraceString": null,
"RemoteStackIndex": 0,
"ExceptionMethod": null,
"HResult": 3,
"Source": "sample string 2",
"WatsonBuckets": null
}
}
]
}