Assets

asset_update_by_id_summary

asset_update_by_id_description

put/pimcore-studio/api/assets/{id}

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}
  • Auth: none declared

Path parameters

idinteger required
Example:83

Id of the asset

Request body

Example request

{
  "data": {
    "metadata": [
      {
        "name": "custom_metadata",
        "language": "en",
        "type": "input",
        "data": "data"
      }
    ],
    "customSettings": [
      {
        "key": "my_custom_setting_key",
        "value": "data"
      }
    ],
    "properties": [
      {
        "key": "Mister Proper",
        "data": "123",
        "type": "document"
      }
    ],
    "image": {
      "focalPoint": {
        "x": 50,
        "y": 50
      }
    }
  }
}

Response

One of asset types

OR
OR
OR
OR
OR
OR
OR

Example response

{
  "id": 83,
  "parentId": 1,
  "path": "/path/to/element",
  "icon": {
    "type": "path",
    "value": "/path/to/icon"
  },
  "userOwner": 1,
  "userModification": 1,
  "locked": "locked",
  "creationDate": 221846400,
  "modificationDate": 327417600,
  "elementType": "asset",
  "customAttributes": {
    "icon": {
      "type": "path",
      "value": "/path/to/icon"
    },
    "tooltip": "<b>My Tooltip</b>",
    "additionalIcons": [
      "some_other_icon"
    ],
    "key": "my_custom_key",
    "additionalCssClasses": [
      "my_custom_class"
    ]
  },
  "type": "image",
  "filename": "cool.jpg",
  "mimeType": "image/jpeg",
  "fullPath": "/path/to/asset.jpg",
  "permissions": {
    "list": true,
    "view": true,
    "publish": true,
    "delete": true,
    "rename": true,
    "create": true,
    "settings": true,
    "versions": true,
    "properties": true
  },
  "format": "muhFormat",
  "width": 666,
  "height": 333,
  "imageThumbnailPath": "/path/to/element/hulk-smash.jpg"
}

Changes

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