Assets

Add a new asset

Add a new asset based on the binary <strong>{file}</strong> to the given <strong>{parentId}</strong>. <br> The <strong>{parentId}</strong> must be an ID of existing folder.

post/pimcore-studio/api/assets/add/{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/add/{parentId}
  • Auth: none declared

Path parameters

parentIdinteger required
Example:83

ParentId of the asset

Response

ID of successfully uploaded new asset

idinteger required

ID of created asset

Example response

{
  "id": 66
}

Changes

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