Asset Grid

Get asset data for grid

Retrieve assets data for grid. <br> You can use different query parameters to filter the asset data: <br>

<ul> <li><strong>folderId</strong>: ID of parent folder</li> <li><strong>columns</strong>: To see the full description of request fields see the schema <strong>Grid Column Request</strong></li> <li><strong>filters</strong>: To see the full description of request fields see the schema <strong>Grid Filter</strong></li> </ul>
post/pimcore-studio/api/assets/grid

Request

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

Request body

folderIdinteger required

Example request

{
  "folderId": 1,
  "columns": [
    {
      "key": "id",
      "locale": "en",
      "type": "system.id",
      "group": [
        "system"
      ],
      "config": [
        {
          "advancedColumns": [
            {
              "key": "simpleField",
              "config": {
                "field": "name"
              }
            }
          ],
          "transformers": [
            {
              "key": "uppercase"
            }
          ]
        }
      ],
      "width": 200
    }
  ],
  "filters": {
    "page": 1,
    "pageSize": 50
  }
}

Response

Asset grid data

totalItemsinteger required

Example response

{
  "totalItems": 666,
  "items": [
    {
      "columns": [
        {
          "key": "id",
          "locale": "en",
          "value": 73,
          "fieldType": "input",
          "inheritance": {
            "objectId": 42,
            "inInherited": true
          }
        }
      ],
      "permissions": {
        "list": true,
        "view": true,
        "publish": true,
        "delete": true,
        "rename": true,
        "create": true,
        "settings": true,
        "versions": true,
        "properties": true
      }
    }
  ]
}

Changes