To view file names and paths for uploaded images for a product or collection, issue a GET request to the /ccadmin/v1/products/{id}
or /ccadmin/v1/collections/{id}
endpoint, providing the ID of the product or collection you want to view, and including the access token that was returned by /ccadmin/v1/login
. For example:
GET /ccadmin/v1/products/prod10007 HTTP/1.1
Authorization: Bearer <access_token>
The following portion of the sample response shows the URLs of the product’s large image:
"primaryLargeImageURL": "/ccstore/v1/images/?source=/file/v7875483805069966233/products/ APP_WeekendTrouser_large.jpg&height=940&width=940",
The path returned here is the full path to the location of the image file. (See Manage Media for Your Store in the Using Oracle Commerce Cloud Service guide for more information about the locations of uploaded images.)