{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/coactive/main/json-schema/coactive-delete-assets-request-schema.json",
  "title": "DeleteAssetsRequest",
  "x-generated": "2026-10-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/coactive-ingestion-api-openapi.yml#/components/schemas/DeleteAssetsRequest",
  "type": "object",
  "properties": {
    "dataset_id": {
      "type": "string",
      "format": "uuid"
    },
    "assets": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/DeleteJobAsset"
      }
    }
  },
  "required": [
    "dataset_id",
    "assets"
  ],
  "$defs": {
    "AssetType": {
      "type": "string",
      "enum": [
        "image",
        "video"
      ],
      "description": "An enumeration.",
      "title": "AssetType"
    },
    "DeleteJobAsset": {
      "type": "object",
      "properties": {
        "asset_type": {
          "$ref": "#/$defs/AssetType"
        },
        "identifier": {
          "$ref": "#/$defs/DeleteJobAssetIdentifier",
          "description": "Either the Coactive Video/Image ID of the asset or a path string"
        }
      },
      "required": [
        "asset_type",
        "identifier"
      ],
      "title": "DeleteJobAsset"
    },
    "DeleteJobAssetIdentifier": {
      "oneOf": [
        {
          "type": "string",
          "format": "uuid"
        },
        {
          "type": "string"
        }
      ],
      "description": "Either the Coactive Video/Image ID of the asset or a path string",
      "title": "DeleteJobAssetIdentifier"
    }
  }
}