To retrieve the asset from an entity, send a GET request with the
Accept header set to the content type of the asset. The content type can be retrieved from the
file-metadata.content-type property of the entity the asset is attached to.
curl -X GET -H 'Accept: <content_type>' 'https://<baas_host_name>/<org>/<app>/<collection>/<entity>
|content_type||The content type of the attached asset. For example, text/plain, image/jpeg.|
|org||Organization UUID or organization name|
|app||Application UUID or application name|
|collection||Name or UUID of the collection of the entity the asset is attached to.|
|entity||Name or UUID of the entity the asset is attached to.|
The following request will retrieve the data for a jpeg file attached to an entity named 'cloud' in the 'pictures' collection:
curl -X GET -H 'Accept: image/jpeg' 'https://<baas_host_name>/your-org/your-app/pictures/cloud
To retrieve the entity that an asset is attached to, perform a
GET request as you normally would to retrieve an entity. For more information, see Retrieving Data Entities.
Help or comments?
- If something's not working: Ask the Apigee Community or see Apigee Support.
- If something's wrong with the docs: Send Docs Feedback
(Incorrect? Unclear? Broken link? Typo?)