Assets
Get information which assets already exist
Changed onGet information which of the given file names already exist in the folder <strong>{parentId}</strong>. <br> Send the names in the <strong>fileNames</strong> body property; at most 100 per request.
post/pimcore-studio/api/assets/exists/{parentId}
Request
- Base URL: / (relative, and the document was published on a file host, not at the API’s origin)
- URL: /pimcore-studio/api/assets/exists/{parentId}
- Auth: none declared
Path parameters
parentIdinteger required
Example:83
ParentId of the asset
Request body
Response
Returns one entry per requested file name, in the order they were sent, each with the existing asset ID if a file with that name already exists in the same path. <br> Names that exist but are not viewable by the current user are reported as not existing with <strong>accessDenied</strong> set, so a single denied file does not fail the whole batch
Example response
{
"items": [
{
"fileName": "file.jpg",
"exists": true,
"assetId": 83
}
]
}Changes
- info
endpoint added
- info