Assets

asset_get_by_id_summary

asset_get_by_id_description

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

Response

asset_get_by_id_success_response

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.