You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

REST API Upload Attachment

Received Response
78
Views
7
Comments
edited Aug 3, 2017 9:09PM in Integrations and APIs 7 comments

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
Tagged:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!