Assets

Get information if asset already exists

Get information if asset already exists based on the given <strong>{parentId}</strong> and <strong>{fileName}</strong> query parameter.

get/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

Query parameters

fileNamestring required
Example:file.jpg

Name of the file to upload

Response

Returns true and existing asset ID, if asset with the same name and in the same path already exists, false otherwise

existsboolean required

True if asset exists

assetIdinteger nullable required

Id of existing asset

Example response

{
  "exists": true,
  "assetId": 83
}

Changes

No recorded changes to this operation across all 2 revisions of this API.