You can use the following URL and upload the attachment using byte array for required modules:
URL: http://**************/REST/Summit_RESTWCF.svc/RestService/Summit_UploadAttachment
Note:
Cluster storage configuration should be at API level.
The extension should be enabled in the Summit Application Settings (Valid Attachment Extensions).
Service Name | HTTP Method |
Summit_UploadAttachment | POST |
Sample Request
Below are the sample requests for different modules.
{
"_ProxyDetails": {
"ProxyID": 0,
"ReturnType": "JSON",
"AuthType": "****",
"APIKey": "******",
"OrgID": 1,
"TokenID": ""
},
"eModule": "PM",
"TicketNo": 46096,
"FileByte": [
101,
114,
116,
101,
114,
116,
101,
114,
116,
114,
101,
116,
114,
101,
116,
101,
114,
116,
114,
101,
116,
101,
114,
116,
114,
101,
116,
114,
101,
116,
114,
101,
116,
114,
101,
116,
114,
101
],
"AttachmentFileName": "Problem attachment.txt"
} Request Parameters
Parameter Name | Type | Description | Mandatory |
|---|---|---|---|
TicketNo | STRING | Ticket number of Problem Record. | TRUE |
AttachmentFileName | STRING | File name of attachment. | TRUE |
eModule | STRING | Module name. Example: For Problem Management it is "PM" | TRUE |
FileByte | BYTE ARRAY | File format must be byte array. | TRUE |
Sample Response
"{\"Errors\":\"\",\"Input\":null,\"Message\":\"Uploaded Successfully\",\"OrgID\":0,\"Output\":null,\"OutputID\":0,\"OutputObject\":null,\"TokenID\":\"5D43E03E1473C9E0EFDF21533C009F84603B2B9C11F8FF2475554A99C4867D5CBEBBC9E6123FE8A17F5BE18016009B5176ED32F3C93FB8B4A2A430F95F63E95755641499C6AFC904328B3BD49031544EF324095518A6BB7958CBE1551E607AC273FF180E48E537792EE3CA10156B7790\",\"Priority\":null,\"ResolutionDeadLine\":null,\"Resolution_DeadLine\":null,\"SLA\":null,\"TicketID_Encrypted\":null,\"TicketID_Internal\":0,\"TicketNo\":0}"{
"_ProxyDetails": {
"ProxyID": 0,
"ReturnType": "JSON",
"AuthType": "****",
"APIKey": "******",
"OrgID": 1,
"TokenID": ""
},
"eModule": "CM",
"TicketNo": 46096,
"FileByte": [
101,
114,
116,
101,
114,
116,
101,
114,
116,
114,
101,
116,
114,
101,
116,
101,
114,
116,
114,
101,
116,
101,
114,
116,
114,
101,
116,
114,
101,
116,
114,
101,
116,
114,
101,
116,
114,
101
],
"AttachmentFileName": "Change attachment.txt"
}Request Parameters
Parameter Name | Type | Description | Mandatory |
|---|---|---|---|
TicketNo | STRING | Ticket number of Change Record. | TRUE |
AttachmentFileName | STRING | File name of attachment. | TRUE |
eModule | STRING | Module name. Example: For Change Management it is "CM" | TRUE |
FileByte | BYTE ARRAY | File format must be byte array. | TRUE |
Sample Response
"{\"Errors\":\"\",\"Input\":null,\"Message\":\"Uploaded Successfully\",\"OrgID\":0,\"Output\":null,\"OutputID\":0,\"OutputObject\":null,\"TokenID\":\"5D43E03E1473C9E0EFDF21533C009F84603B2B9C11F8FF2475554A99C4867D5CBEBBC9E6123FE8A17F5BE18016009B5176ED32F3C93FB8B4A2A430F95F63E95755641499C6AFC904328B3BD49031544EF324095518A6BB7958CBE1551E607AC273FF180E48E537792EE3CA10156B7790\",\"Priority\":null,\"ResolutionDeadLine\":null,\"Resolution_DeadLine\":null,\"SLA\":null,\"TicketID_Encrypted\":null,\"TicketID_Internal\":0,\"TicketNo\":0}" {
"_ProxyDetails": {
"ProxyID": 0,
"ReturnType": "JSON",
"AuthType": "****",
"APIKey": "******",
"OrgID": 1,
"TokenID": ""
},
"eModule": "ServiceRequest",
"TicketNo": 46096,
"FileByte": [
101,
114,
116,
101,
114,
116,
101,
114,
116,
114,
101,
116,
114,
101,
116,
101,
114,
116,
114,
101,
116,
101,
114,
116,
114,
101,
116,
114,
101,
116,
114,
101,
116,
114,
101,
116,
114,
101
],
"AttachmentFileName": "Service Request attachment.txt"
}Request Parameters
Parameter Name | Type | Description | Mandatory |
|---|---|---|---|
TicketNo | STRING | Ticket number of Service Request. | TRUE |
AttachmentFileName | STRING | File name of attachment. | TRUE |
eModule | STRING | Module name. Example: For Service Request it is "SR" | TRUE |
FileByte | BYTE ARRAY | File format must be byte array. | TRUE |
Sample Response
"{\"Errors\":\"\",\"Input\":null,\"Message\":\"Uploaded Successfully\",\"OrgID\":0,\"Output\":null,\"OutputID\":0,\"OutputObject\":null,\"TokenID\":\"5D43E03E1473C9E0EFDF21533C009F84603B2B9C11F8FF2475554A99C4867D5CBEBBC9E6123FE8A17F5BE18016009B5176ED32F3C93FB8B4A2A430F95F63E95755641499C6AFC904328B3BD49031544EF324095518A6BB7958CBE1551E607AC273FF180E48E537792EE3CA10156B7790\",\"Priority\":null,\"ResolutionDeadLine\":null,\"Resolution_DeadLine\":null,\"SLA\":null,\"TicketID_Encrypted\":null,\"TicketID_Internal\":0,\"TicketNo\":0}"{
"_ProxyDetails": {
"ProxyID": 0,
"ReturnType": "JSON",
"AuthType": "****",
"APIKey": "******",
"OrgID": 1,
"TokenID": ""
},
"eModule": "IM",
"TicketNo": 46096,
"FileByte": [
101,
114,
116,
101,
114,
116,
101,
114,
116,
114,
101,
116,
114,
101,
116,
101,
114,
116,
114,
101,
116,
101,
114,
116,
114,
101,
116,
114,
101,
116,
114,
101,
116,
114,
101,
116,
114,
101
],
"AttachmentFileName": "incident attachment.txt"
}
Request Parameters
Parameter Name | Type | Description | Mandatory |
|---|---|---|---|
TicketNo | STRING | Ticket number of Incident. | TRUE |
AttachmentFileName | STRING | File name of attachment. | TRUE |
eModule | STRING | Module name. Example: For Incident Management it is "IM" | TRUE |
FileByte | BYTE ARRAY | File format must be byte array. | TRUE |
Sample Response
"{\"Errors\":\"\",\"Input\":null,\"Message\":\"Uploaded Successfully\",\"OrgID\":0,\"Output\":null,\"OutputID\":0,\"OutputObject\":null,\"TokenID\":\"5D43E03E1473C9E0EFDF21533C009F84603B2B9C11F8FF2475554A99C4867D5CBEBBC9E6123FE8A17F5BE18016009B5176ED32F3C93FB8B4A2A430F95F63E95755641499C6AFC904328B3BD49031544EF324095518A6BB7958CBE1551E607AC273FF180E48E537792EE3CA10156B7790\",\"Priority\":null,\"ResolutionDeadLine\":null,\"Resolution_DeadLine\":null,\"SLA\":null,\"TicketID_Encrypted\":null,\"TicketID_Internal\":0,\"TicketNo\":0}"