Remove Tag from Asset

OpenAPI spec

Remove tag from asset

DELETE/api/v2/assets/{assetID}/relationships/asset_tags
Path parameters
assetID*string (uuid)

Asset ID.

Body
data*array of AssetTagIdentifier (object)
Response

OK

Request
const response = await fetch('/api/v2/assets/{assetID}/relationships/asset_tags', {
    method: 'DELETE',
    headers: {
      "Content-Type": "application/vnd.api+json"
    },
    body: JSON.stringify({
      "data": [
        {
          "type": "asset_tags",
          "id": "123e4567-e89b-12d3-a456-426614174000"
        }
      ]
    }),
});
const data = await response.json();

Example

curl -i --request DELETE \
  --url https://environment.monterosa.cloud/api/v2/assets/00b76e4e-8818-4ae6-91fc-a484c1a6840f/relationships/asset_tags \
  --header 'Authorization: Bearer rJURvA6XuuHxG5RHauqR1yy64JQcTfGu' \
  --header 'Content-Type: application/vnd.api+json' \
  --data '{
    "data": [
      {
        "type": "asset_tags",
        "id": "5b3ed36e-d727-40de-b49b-b47cb1175861"
      }
    ]
  }'