Get asset by id

GET /V1/adobestock/asset/{id}

Get asset by id

Path parameters

  • id integer Required

Responses

  • 200

    200 Success.

    Hide response attributes Show response attributes object
    • id integer

      ID

    • category_id integer

      Category

    • category object

      Adobe Stock asset Category data class

      Hide category attributes Show category attributes object
      • id integer

        The id

      • name string Required

        The category name

      • extension_attributes object Required

        ExtensionInterface class for @see \Magento\AdobeStockAssetApi\Api\Data\CategoryInterface

    • creator_id integer

      The creator

    • creator object

      Adobe Stock creator data class

      Hide creator attributes Show creator attributes object
      • id integer

        The id

      • name string

        The creator name

      • extension_attributes object Required

        ExtensionInterface class for @see \Magento\AdobeStockAssetApi\Api\Data\CreatorInterface

    • is_licensed integer Required

      Licensed

    • creation_date string Required

      Creation date

    • extension_attributes object

      ExtensionInterface class for @see \Magento\AdobeStockAssetApi\Api\Data\AssetInterface

  • 401

    401 Unauthorized

    Hide response attributes Show response attributes object
    • message string Required

      Error message

    • errors array[object]

      Error details

      Error details

      Hide errors attributes Show errors attributes object
      • message string

        Error message

      • parameters array[object]

        Error parameters item

        Error parameters item

        Hide parameters attributes Show parameters attributes object
        • resources string

          ACL resource

        • fieldName string

          Missing or invalid field name

        • fieldValue string

          Incorrect field value

    • code integer

      Error code

    • parameters array[object]

      Error parameters item

      Error parameters item

      Hide parameters attributes Show parameters attributes object
      • resources string

        ACL resource

      • fieldName string

        Missing or invalid field name

      • fieldValue string

        Incorrect field value

    • trace string

      Stack trace

  • 400

    400 Bad Request

    Hide response attributes Show response attributes object
    • message string Required

      Error message

    • errors array[object]

      Error details

      Error details

      Hide errors attributes Show errors attributes object
      • message string

        Error message

      • parameters array[object]

        Error parameters item

        Error parameters item

        Hide parameters attributes Show parameters attributes object
        • resources string

          ACL resource

        • fieldName string

          Missing or invalid field name

        • fieldValue string

          Incorrect field value

    • code integer

      Error code

    • parameters array[object]

      Error parameters item

      Error parameters item

      Hide parameters attributes Show parameters attributes object
      • resources string

        ACL resource

      • fieldName string

        Missing or invalid field name

      • fieldValue string

        Incorrect field value

    • trace string

      Stack trace

  • default

    Unexpected error

    Hide response attributes Show response attributes object
    • message string Required

      Error message

    • errors array[object]

      Error details

      Error details

      Hide errors attributes Show errors attributes object
      • message string

        Error message

      • parameters array[object]

        Error parameters item

        Error parameters item

        Hide parameters attributes Show parameters attributes object
        • resources string

          ACL resource

        • fieldName string

          Missing or invalid field name

        • fieldValue string

          Incorrect field value

    • code integer

      Error code

    • parameters array[object]

      Error parameters item

      Error parameters item

      Hide parameters attributes Show parameters attributes object
      • resources string

        ACL resource

      • fieldName string

        Missing or invalid field name

      • fieldValue string

        Incorrect field value

    • trace string

      Stack trace

GET /V1/adobestock/asset/{id}
curl \
 --request GET 'https://magento2.winkelstraat.mac/rest/all/V1/adobestock/asset/{id}'
Response examples (200)
{
  "id": 42,
  "media_gallery_id": 42,
  "category_id": 42,
  "category": {
    "id": 42,
    "name": "string",
    "extension_attributes": {}
  },
  "creator_id": 42,
  "creator": {
    "id": 42,
    "name": "string",
    "extension_attributes": {}
  },
  "is_licensed": 42,
  "creation_date": "string",
  "extension_attributes": {}
}
Response examples (401)
{
  "message": "string",
  "errors": [
    {
      "message": "string",
      "parameters": [
        {
          "resources": "string",
          "fieldName": "string",
          "fieldValue": "string"
        }
      ]
    }
  ],
  "code": 42,
  "parameters": [
    {
      "resources": "string",
      "fieldName": "string",
      "fieldValue": "string"
    }
  ],
  "trace": "string"
}
Response examples (400)
{
  "message": "string",
  "errors": [
    {
      "message": "string",
      "parameters": [
        {
          "resources": "string",
          "fieldName": "string",
          "fieldValue": "string"
        }
      ]
    }
  ],
  "code": 42,
  "parameters": [
    {
      "resources": "string",
      "fieldName": "string",
      "fieldValue": "string"
    }
  ],
  "trace": "string"
}
Response examples (default)
{
  "message": "string",
  "errors": [
    {
      "message": "string",
      "parameters": [
        {
          "resources": "string",
          "fieldName": "string",
          "fieldValue": "string"
        }
      ]
    }
  ],
  "code": 42,
  "parameters": [
    {
      "resources": "string",
      "fieldName": "string",
      "fieldValue": "string"
    }
  ],
  "trace": "string"
}