Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...


MethodURL endpointRequest parametersErrorsExample
Get asset type by IDGET/assettype/get/{token}/{assetTypeId}

400 - When "assetTypeId" is missing

404 - When asset type cannot be found by given ID

Code Block
{
    "key": "ABC",
    "created": 1576498471883,
    "name": "My ABC asset",
    "id": "3b3d80c4-3980-4e5a-9f50-3db69103b193",
    "fields": [
      {
        "name": "mytestfield",
        "index": 1,
        "description": "Some description here",
        "label": "My test field",
        "type": "text",
        "required": false,
        "fieldId": "field10j"true
      },
      {
        "name": "selectField",
        "options": {
          "1": "one",
          "2": "two",
          "3": "three"
        },
        "index": 2,
        "description": "",
        "label": "My super dropdown",
        "type": "select",
        "required": false,
        "fieldId": "field4oj"
      }
    ]
  }
List asset typesGET/assettype/list/{token}

Code Block
[
{
    "key": "ABC",
    "created": 1576498471883,
    "name": "My ABC asset",
    "id": "3b3d80c4-3980-4e5a-9f50-3db69103b193",
    "fields": [
      {
        "name": "mytestfield",
        "index": 1,
        "description": "Some description here",
        "label": "My test field",
        "type": "text",
        "required": false,
        "fieldId": "field10j"true
      },
      {
        "name": "selectField",
        "options": {
          "1": "one",
          "2": "two",
          "3": "three"
        },
        "index": 2,
        "description": "",
        "label": "My super dropdown",
        "type": "select",
        "required": false,
        "fieldId": "field4oj"
      }
    ]
  },
]






Search assetsGET

/asset/search/{token}/{assetTypeId}

  • query
  • sort
  • startAt
  • limit


Create or update assetPOST/asset/save/{token}/{assetTypeId}


Get asset by IDGET/asset/get/{token}/{assetTypeId}/{entryId}


Delete asset by IDDELETE/asset/delete/{token}/{assetTypeId}/{entryId}








...