Assets

Replace existing asset binary

Replace the existing asset binary based on the given <strong>{id}</strong> with the provided {file} binary. <br> The new asset binary mime type must be the same as the existing asset binary mime type.

post/pimcore-studio/api/assets/{id}/replace

Request

  • Base URL: / (relative, and the document was published on a file host, not at the API’s origin)
  • URL: /pimcore-studio/api/assets/{id}/replace
  • Auth: none declared

Path parameters

idinteger required
Example:83

Id of the asset

Response

File name of the successfully replaced asset

datastring required

new file name of the asset

Example response

{
  "data": "image.jpg"
}

Changes

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