GET /asset-types

Returns the list of asset types available to your perimeter.

Asset types are used to caracterize assets (pictures, documents, videos) in the PIM and are identified by a unique key.

Asset types are idependant of the concept of Segment.

Responses

  • 200 application/json

    Successfully returned available asset types

    Hide response attributes Show response attributes object
    • status string
    • result object
      Hide result attribute Show result attribute object
      • asset_types array[object]
        Hide asset_types attributes Show asset_types attributes object
        • key string
        • type string

          The type of content it applies to

          Value is document video picture.

        • trads object
        • allow_multiple boolean

          Wether of not this asset type can receive multiple instances for a given language

GET /asset-types
curl \
 --request GET 'https://api.ppe-analytics.com/api/v1/asset-types' \
 --header "PPEApiKey: $API_KEY"
Response examples (200)
{
  "status": "OK",
  "result": {
    "asset_types": [
      {
        "key": "technical-sheet",
        "type": "document",
        "trads": {
          "en": "Technical sheet",
          "fr": "Fiche technique"
        }
      },
      {
        "key": "product-video",
        "type": "video",
        "trads": {
          "en": "Product video",
          "fr": "Video produit"
        }
      },
      {
        "key": "picture-in-context",
        "type": "picture",
        "trads": {
          "en": "Picture in context",
          "fr": "Product en situation"
        }
      }
    ]
  }
}