We'd love to hear from you! Provide  feedback  to earn a badge today. Take our quick survey
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 Jun 8, 2022 11:57AM in General Technical Discussions 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

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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