Quantcast
Channel: Discussion Forum > Connect Data Services
Viewing all articles
Browse latest Browse all 2504

REST API Upload Attachment

$
0
0

Topic by Sanjay Mehta

Content

Hi,

I am trying to upload an attachment on an existing incident using the sample code given on REST API http://docs.oracle.com/cloud/latest/servicecs_gs/CXSVC/c_Managing_file_attachments_aa1166814.html#aa1167719

Method: Post

URL: https://XXXXXXX.custhelp.com/services/rest/connect/v1.3/incidents/52371868/fileAttachments

Body: {
"fileName":" SampleFileAttachment.txt ",
"data":" c2FtcGxlIGNvbnRlbnQgZm9yIGZpbGUgYXR0YWNobWVudA=="
}

Status: Error

"detail": "Error attempting to create resource: File specified could not be found: /tmp/ c2FtcGxlIGNvbnRlbnQgZm9yIGZpbGUgYXR0YWNobWVudA==",

Can anyone please suggest?

Version

May 2016

Viewing all articles
Browse latest Browse all 2504

Trending Articles