MediaCockpit DAM icon

MediaCockpit DAM

Interact with MediaCockpit DAM REST API

Get Entity

AI-generated

Summary

Retrieve any entity from MediaCockpit by specifying its class name and ID, optionally customizing the output format with a JSON build configuration.

Inputs

  • Entity Class Name (required) — The class name of the entity to retrieve, e.g., asset, node, product.
  • Entity ID (required) — The unique identifier of the entity to fetch.
  • Build JSON — Optional JSON configuration to customize the output format. Defaults to '{}' for the standard output.

Output shape

a single record containing the requested entity's data in JSON format

Returns an object with the entity data matching the specified class name and ID. If a custom build JSON is provided, the output format is controlled accordingly. The operation requires authentication with a valid session and handles errors if entity class name or ID are missing or if JSON is malformed.

Examples

Example 1: Get a product entity by ID with default output

Set Entity Class Name to 'product', Entity ID to the desired product ID, and leave Build JSON empty or '{}'. The node fetches and outputs the product data.

Links

Discussion