Skip Navigation
Expand
Download attachments for custom objects
Answer ID 11264   |   Last Review Date 11/25/2019

How do I download attachments associated to custom objects using the Rest API available with Oracle B2C Service?

Environment:

Oracle B2C Service - all releases

Connect Rest API - all supported versions

Resolution:

In order to retrieve the attachments for a custom object, the same type of request needs to be performed, with a slight change in syntax, as opposed to when downloading attachments for standard objects.

The syntax is as follows:

https://your_site_interface/services/rest/connect/version/resource/resource_id
/FileAttachments/FileAttachment_id?download

Note the capital "F" in "FileAttachments", as opposed to "f" when downloading attachments for standard objects:

https://your_site_interface/services/rest/connect/version/resource(/resource_id
/fileAttachments/FileAttachment_id?download ---> standard objects request

For more information on how to use Connect Rest API with Oracle B2C Service, check our documentation available at Rest API for Oracle B2C Service.

Available Languages for this Answer:

Notify Me
The page will refresh upon submission. Any pending input will be lost.