Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Metadata

Metadata attributes are the fields on a drive, such as Status, Client, or Shoot Date. Each asset holds a value for each attribute.

  1. List the drive's attributes, with their IDs and select options, with GET /workspaces/drives/{drive_id}/metadata.

  2. Set one value with PUT /assets/{asset_id}/metadata/{metadata_attribute_id}/value, or many at once with PUT /assets/metadata/values.

The value format depends on the attribute's value_type: text for str, an option ID for single_select, a list of option IDs for multi_select, an ISO 8601 string for datetime, and so on. The single-value route returns 400 if nothing was updated. The bulk route skips updates it can't apply, so check updated_metadata_attribute_ids in its response. See the Metadata guide for every type.

Get the metadata for an asset

get

Get the metadata for an asset

Authorizations
AuthorizationstringRequired

Your Shade API key, sent as-is with no Bearer prefix. Create one under Settings → Integrate → API keys.

Path parameters
asset_idstring · uuidRequired

The asset to get the metadata for

Example: c2d9e8f1-3b4a-4c5d-8e6f-7a8b9c0d1e2f
Query parameters
drive_idstring · uuidRequired

The id of the drive this asset is in

Example: 7b1e4d2c-5a6f-4e8b-9c3d-2f1a0b9c8d7e
Responses
200

Successful Response

application/json
Other propertiesany of · nullableOptional
booleanOptional
or
integerOptional
or
numberOptional
or
stringOptional
or
or
get/assets/{asset_id}/metadata
GET /assets/{asset_id}/metadata?drive_id=123e4567-e89b-12d3-a456-426614174000 HTTP/1.1
Host: api.shade.inc
Authorization: YOUR_API_KEY
Accept: */*
{
  "ANY_ADDITIONAL_PROPERTY": true
}

Update an asset's metadata value

put
Authorizations
AuthorizationstringRequired

Your Shade API key, sent as-is with no Bearer prefix. Create one under Settings → Integrate → API keys.

Path parameters
asset_idstring · uuidRequired

The id of the asset to be updated

Example: c2d9e8f1-3b4a-4c5d-8e6f-7a8b9c0d1e2f
metadata_attribute_idany ofRequired

The id of the metadata attribute to update

Example: 9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d
stringOptional
or
string · uuidOptional
Body
drive_idstring · uuidRequired

The id of the drive this asset is in

metadata_attribute_valueany of · nullableOptional

The new value for the metadata attribute. Not passing this will remove the value.

booleanOptional
or
integerOptional
or
numberOptional
or
stringOptional
or
or
or
nullOptional
Responses
200

The updated asset

application/json

Full asset DTO with relationship fields that require eager loading.

idstring · uuidRequired
drive_idstring · uuidRequired
pathstringRequired
namestringRequired
extensionstringRequired
updatedstring · date-timeRequired
createdstring · date-timeRequired
typestring · enumRequiredPossible values:
size_bytesintegerRequired
stack_idstring · uuid · nullableOptional
stack_numberinteger · nullableOptional
is_fs_draft_blobbooleanRequired
is_fs_null_blobbooleanRequired
ratingnumber · nullableOptional
ai_indexedbooleanRequired
categorystring · nullableOptional
ocrstring · nullableOptional
transcription_idstring · uuid · nullableOptional
faces_presentboolean · nullableOptional
content_lengthinteger · nullableOptional
comment_countinteger · nullableOptional
preview_job_statestring · enumRequired

The state of a processing job on an asset, such as previews or transcription.

Possible values:
metadata_job_statestring · enumRequired

The state of a processing job on an asset, such as previews or transcription.

Possible values:
custom_metadata_job_statestring · enumRequired

The state of a processing job on an asset, such as previews or transcription.

Possible values:
core_vision_job_statestring · enumRequired

The state of a processing job on an asset, such as previews or transcription.

Possible values:
color_palette_job_statestring · enumRequired

The state of a processing job on an asset, such as previews or transcription.

Possible values:
core_audio_job_statestring · enumRequired

The state of a processing job on an asset, such as previews or transcription.

Possible values:
audio_job_statestring · enumOptional

The state of a processing job on an asset, such as previews or transcription.

Possible values:
facial_recognition_job_statestring · enumRequired

The state of a processing job on an asset, such as previews or transcription.

Possible values:
proxy_job_statestring · enumRequired

The state of a processing job on an asset, such as previews or transcription.

Possible values:
audio_proxy_job_statestring · enumRequired

The state of a processing job on an asset, such as previews or transcription.

Possible values:
transcription_job_statestring · enumRequired

The state of a processing job on an asset, such as previews or transcription.

Possible values:
scrub_sheet_job_statestring · enumRequired

The state of a processing job on an asset, such as previews or transcription.

Possible values:
custom_thumbnailstring · nullableOptional
put/assets/{asset_id}/metadata/{metadata_attribute_id}/value
PUT /assets/{asset_id}/metadata/{metadata_attribute_id}/value HTTP/1.1
Host: api.shade.inc
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 98

{
  "drive_id": "7b1e4d2c-5a6f-4e8b-9c3d-2f1a0b9c8d7e",
  "metadata_attribute_value": "Northwind Outdoor"
}
{
  "id": "c2d9e8f1-3b4a-4c5d-8e6f-7a8b9c0d1e2f",
  "drive_id": "7b1e4d2c-5a6f-4e8b-9c3d-2f1a0b9c8d7e",
  "path": "/7b1e4d2c-5a6f-4e8b-9c3d-2f1a0b9c8d7e/Fall Campaign/Interviews/A001_C003.mov",
  "name": "A001_C003.mov",
  "extension": "mov",
  "updated": "2026-09-14T17:32:08Z",
  "created": "2026-09-14T17:30:51Z",
  "type": "VIDEO",
  "size_bytes": 4831838208,
  "stack_id": null,
  "stack_number": null,
  "is_fs_draft_blob": false,
  "is_fs_null_blob": false,
  "rating": 4,
  "ai_indexed": true,
  "system_metadata": {
    "Width": 3840,
    "Height": 2160,
    "Duration": 312.48,
    "Frame Rate": 23.976,
    "Codec": "ProRes 422 HQ"
  },
  "custom_metadata": {
    "9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d": "2b3c4d5e-6f7a-4b8c-9d0e-1f2a3b4c5d6e",
    "1c2d3e4f-5a6b-4c7d-8e9f-0a1b2c3d4e5f": [
      "d4e5f6a7-b8c9-4d0e-8f1a-2b3c4d5e6f7a",
      "e5f6a7b8-c9d0-4e1f-9a2b-3c4d5e6f7a8b"
    ],
    "6f5e4d3c-2b1a-4f0e-9d8c-7b6a5f4e3d2c": "Northwind Outdoor"
  },
  "category": "Interview",
  "palette": [
    [
      42,
      38,
      35
    ],
    [
      196,
      162,
      120
    ],
    [
      88,
      104,
      117
    ]
  ],
  "ocr": null,
  "transcription_id": "3e4f5a6b-7c8d-4e9f-a0b1-c2d3e4f5a6b7",
  "faces_present": true,
  "comment_count": 2,
  "preview_job_state": "COMPLETED",
  "metadata_job_state": "COMPLETED",
  "custom_metadata_job_state": "COMPLETED",
  "core_vision_job_state": "COMPLETED",
  "color_palette_job_state": "COMPLETED",
  "core_audio_job_state": "COMPLETED",
  "facial_recognition_job_state": "COMPLETED",
  "proxy_job_state": "COMPLETED",
  "audio_proxy_job_state": "NOT_STARTED",
  "transcription_job_state": "COMPLETED",
  "scrub_sheet_job_state": "COMPLETED",
  "preview_images": [
    {
      "id": "f1e2d3c4-b5a6-4978-8a9b-0c1d2e3f4a5b",
      "frame": 0,
      "signed_url": "https://storage.example.com/previews/f1e2d3c4-b5a6-4978-8a9b-0c1d2e3f4a5b.webp?signature=..."
    }
  ],
  "custom_thumbnail": null
}

Bulk update asset metadata attributes

put

Either pass in asset_ids/metadata_attributes OR assets.

Authorizations
AuthorizationstringRequired

Your Shade API key, sent as-is with no Bearer prefix. Create one under Settings → Integrate → API keys.

Body
asset_idsstring · uuid[] · nullableOptional

The id of the assets to be updated

drive_idstring · uuidRequired

The id of the drive this asset is in

Responses
200

Successful Response

application/json
asset_idstring · uuidRequired
updated_metadata_attribute_idsstring[]Required
put/assets/metadata/values
PUT /assets/metadata/values HTTP/1.1
Host: api.shade.inc
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 334

{
  "drive_id": "7b1e4d2c-5a6f-4e8b-9c3d-2f1a0b9c8d7e",
  "asset_ids": [
    "c2d9e8f1-3b4a-4c5d-8e6f-7a8b9c0d1e2f",
    "4a5b6c7d-8e9f-4a0b-9c1d-2e3f4a5b6c7d"
  ],
  "metadata_attributes": [
    {
      "id": "9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d",
      "value": "8e9f0a1b-2c3d-4e5f-a6b7-c8d9e0f1a2b3"
    },
    {
      "id": "6f5e4d3c-2b1a-4f0e-9d8c-7b6a5f4e3d2c",
      "value": "Northwind Outdoor"
    }
  ]
}
[
  {
    "asset_id": "c2d9e8f1-3b4a-4c5d-8e6f-7a8b9c0d1e2f",
    "updated_metadata_attribute_ids": [
      "9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d",
      "6f5e4d3c-2b1a-4f0e-9d8c-7b6a5f4e3d2c"
    ]
  },
  {
    "asset_id": "4a5b6c7d-8e9f-4a0b-9c1d-2e3f4a5b6c7d",
    "updated_metadata_attribute_ids": [
      "9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d",
      "6f5e4d3c-2b1a-4f0e-9d8c-7b6a5f4e3d2c"
    ]
  }
]

Add metadata columns to a drive's asset metadata schema

post
Authorizations
AuthorizationstringRequired

Your Shade API key, sent as-is with no Bearer prefix. Create one under Settings → Integrate → API keys.

Path parameters
drive_idstring · uuidRequired

ID of the drive. List a workspace's drives with GET /workspaces/{workspace_id}/drives.

Example: 7b1e4d2c-5a6f-4e8b-9c3d-2f1a0b9c8d7e
Body
Responses
201

Successful Response

application/json
or
post/workspaces/drives/{drive_id}/metadata/assets/columns
POST /workspaces/drives/{drive_id}/metadata/assets/columns HTTP/1.1
Host: api.shade.inc
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 208

{
  "columns": [
    {
      "column_name": "Status",
      "column_type": "single_select",
      "description": "Where the asset is in review",
      "options": [
        {
          "name": "Needs Review",
          "color": "yellow"
        },
        {
          "name": "Approved",
          "color": "light_green"
        }
      ]
    }
  ]
}
[
  {
    "kind": "real",
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "database_id": "123e4567-e89b-12d3-a456-426614174000",
    "drive_id": "123e4567-e89b-12d3-a456-426614174000",
    "column_human_id": "text",
    "column_name": "text",
    "column_type": "text",
    "description": "text",
    "hidden": true,
    "archive": true,
    "add_new_options": true,
    "automated": true,
    "locked": true,
    "prompt": "text",
    "sort_order": 0,
    "default_value": true,
    "options": [
      {
        "id": "text",
        "name": "text",
        "color": "",
        "user_defined": false,
        "archived": false
      }
    ],
    "relation_target": {
      "kind": "asset"
    },
    "inverse": {
      "enabled": true,
      "name": "text"
    },
    "lookup_config": {
      "path": [
        "123e4567-e89b-12d3-a456-426614174000"
      ],
      "path_inverse_flags": [
        true
      ],
      "target_column_id": "123e4567-e89b-12d3-a456-426614174000",
      "target_value_type": "",
      "aggregation": "all"
    },
    "restrict_to_types": [
      "IMAGE"
    ]
  }
]

Delete an asset metadata column

delete
Authorizations
AuthorizationstringRequired

Your Shade API key, sent as-is with no Bearer prefix. Create one under Settings → Integrate → API keys.

Path parameters
drive_idstring · uuidRequired

ID of the drive. List a workspace's drives with GET /workspaces/{workspace_id}/drives.

Example: 7b1e4d2c-5a6f-4e8b-9c3d-2f1a0b9c8d7e
column_idstring · uuidRequired
Responses
204

Successful Response

No content

delete/workspaces/drives/{drive_id}/metadata/assets/columns/{column_id}
DELETE /workspaces/drives/{drive_id}/metadata/assets/columns/{column_id} HTTP/1.1
Host: api.shade.inc
Authorization: YOUR_API_KEY
Accept: */*

No content

Update an asset metadata column

patch
Authorizations
AuthorizationstringRequired

Your Shade API key, sent as-is with no Bearer prefix. Create one under Settings → Integrate → API keys.

Path parameters
drive_idstring · uuidRequired

ID of the drive. List a workspace's drives with GET /workspaces/{workspace_id}/drives.

Example: 7b1e4d2c-5a6f-4e8b-9c3d-2f1a0b9c8d7e
column_idstring · uuidRequired
Body

Patch shape. Inspect model_fields_set to distinguish 'untouched' from 'explicitly set to null' — service impls only apply fields that were actually included in the request body, and return an invalid-input failure when the body explicitly sets a field that service does not support (e.g. relation_config on asset columns).

column_namestring · nullableOptional
descriptionstring · nullableOptional
add_new_optionsboolean · nullableOptional
hiddenboolean · nullableOptional
archiveboolean · nullableOptional
lockedboolean · nullableOptional
automatedboolean · nullableOptional
promptstring · nullableOptional
default_valueany of · nullableOptional
booleanOptional
or
integerOptional
or
numberOptional
or
stringOptional
or
or
or
nullOptional
rerun_automatedbooleanOptionalDefault: false
Responses
200

Successful Response

application/json
or
patch/workspaces/drives/{drive_id}/metadata/assets/columns/{column_id}
PATCH /workspaces/drives/{drive_id}/metadata/assets/columns/{column_id} HTTP/1.1
Host: api.shade.inc
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 363

{
  "column_name": "text",
  "description": "text",
  "add_new_options": true,
  "hidden": true,
  "archive": true,
  "locked": true,
  "automated": true,
  "prompt": "text",
  "default_value": true,
  "options": [
    {
      "id": "text",
      "name": "text",
      "color": "",
      "user_defined": false,
      "archived": false
    }
  ],
  "relation_config": {
    "target": {
      "kind": "asset"
    },
    "inverse": {
      "enabled": true,
      "name": "text"
    }
  },
  "rerun_automated": false
}
{
  "kind": "real",
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "database_id": "123e4567-e89b-12d3-a456-426614174000",
  "drive_id": "123e4567-e89b-12d3-a456-426614174000",
  "column_human_id": "text",
  "column_name": "text",
  "column_type": "text",
  "description": "text",
  "hidden": true,
  "archive": true,
  "add_new_options": true,
  "automated": true,
  "locked": true,
  "prompt": "text",
  "sort_order": 0,
  "default_value": true,
  "options": [
    {
      "id": "text",
      "name": "text",
      "color": "",
      "user_defined": false,
      "archived": false
    }
  ],
  "relation_target": {
    "kind": "asset"
  },
  "inverse": {
    "enabled": true,
    "name": "text"
  },
  "lookup_config": {
    "path": [
      "123e4567-e89b-12d3-a456-426614174000"
    ],
    "path_inverse_flags": [
      true
    ],
    "target_column_id": "123e4567-e89b-12d3-a456-426614174000",
    "target_value_type": "",
    "aggregation": "all"
  },
  "restrict_to_types": [
    "IMAGE"
  ]
}

Get the metadata attributes for a drive including system attributes

get

Get the metadata attributes for a drive including system attributes

Authorizations
AuthorizationstringRequired

Your Shade API key, sent as-is with no Bearer prefix. Create one under Settings → Integrate → API keys.

Path parameters
drive_idstring · uuidRequired

ID of the drive. List a workspace's drives with GET /workspaces/{workspace_id}/drives.

Example: 7b1e4d2c-5a6f-4e8b-9c3d-2f1a0b9c8d7e
Responses
200

Successful Response

application/json
idstringRequired
namestringRequired
keysstring[]Required
value_typestring · enumRequired

The type of value a metadata attribute holds.

Possible values:
descriptionstringRequired
locationstring · enumRequiredPossible values:
defaultany · nullableOptional
groupstring · nullableOptional
add_new_optionsboolean · nullableOptionalDefault: true
automatedboolean · nullableOptionalDefault: false
promptstring · nullableOptional
archivedboolean · nullableOptionalDefault: false
lockedboolean · nullableOptionalDefault: false
deletedboolean · nullableOptionalDefault: false
get/workspaces/drives/{drive_id}/metadata
GET /workspaces/drives/{drive_id}/metadata HTTP/1.1
Host: api.shade.inc
Authorization: YOUR_API_KEY
Accept: */*
[
  {
    "id": "9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d",
    "name": "Status",
    "keys": [],
    "value_type": "single_select",
    "description": "Where the asset is in review",
    "location": "custom",
    "default": null,
    "group": null,
    "options": [
      {
        "id": "2b3c4d5e-6f7a-4b8c-9d0e-1f2a3b4c5d6e",
        "name": "Needs Review",
        "color": "yellow",
        "user": true
      },
      {
        "id": "8e9f0a1b-2c3d-4e5f-a6b7-c8d9e0f1a2b3",
        "name": "Approved",
        "color": "light_green",
        "user": true
      }
    ],
    "add_new_options": false,
    "automated": false,
    "prompt": null,
    "archived": false,
    "locked": false
  },
  {
    "id": "6f5e4d3c-2b1a-4f0e-9d8c-7b6a5f4e3d2c",
    "name": "Client",
    "keys": [],
    "value_type": "str",
    "description": "The client this asset was made for",
    "location": "custom",
    "options": null,
    "automated": false,
    "archived": false
  }
]

Add metadata attributes to a drive

post
Authorizations
AuthorizationstringRequired

Your Shade API key, sent as-is with no Bearer prefix. Create one under Settings → Integrate → API keys.

Path parameters
drive_idstring · uuidRequired

ID of the drive. List a workspace's drives with GET /workspaces/{workspace_id}/drives.

Example: 7b1e4d2c-5a6f-4e8b-9c3d-2f1a0b9c8d7e
Body
Responses
200

Successful Response

application/json
idstringRequired
namestringRequired
keysstring[]Required
value_typestring · enumRequired

The type of value a metadata attribute holds.

Possible values:
descriptionstringRequired
locationstring · enumRequiredPossible values:
defaultany · nullableOptional
groupstring · nullableOptional
add_new_optionsboolean · nullableOptionalDefault: true
automatedboolean · nullableOptionalDefault: false
promptstring · nullableOptional
archivedboolean · nullableOptionalDefault: false
lockedboolean · nullableOptionalDefault: false
deletedboolean · nullableOptionalDefault: false
post/workspaces/drives/{drive_id}/metadata
POST /workspaces/drives/{drive_id}/metadata HTTP/1.1
Host: api.shade.inc
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 779

{
  "metadata": {
    "id": "text",
    "name": "text",
    "keys": [
      "text"
    ],
    "value_type": "str",
    "description": "text",
    "location": "system",
    "default": null,
    "group": "text",
    "options": [
      {
        "id": "text",
        "name": "text",
        "color": "pink",
        "user": true,
        "archived": false
      }
    ],
    "add_new_options": true,
    "restrict_to_types": [
      "IMAGE"
    ],
    "automated": false,
    "prompt": "text",
    "archived": false,
    "locked": false,
    "deleted": false,
    "relation_config": {
      "target": {
        "kind": "asset"
      },
      "paired_to": {
        "target": {
          "kind": "asset"
        },
        "column_id": "123e4567-e89b-12d3-a456-426614174000",
        "type_name": "text",
        "column_name": "text"
      },
      "inverse": {
        "enabled": false,
        "name": "text"
      }
    },
    "lookup_config": {
      "path": [
        "123e4567-e89b-12d3-a456-426614174000"
      ],
      "path_inverse_flags": [
        true
      ],
      "target_column_id": "123e4567-e89b-12d3-a456-426614174000",
      "target_value_type": "",
      "aggregation": "all"
    }
  }
}
{
  "id": "text",
  "name": "text",
  "keys": [
    "text"
  ],
  "value_type": "str",
  "description": "text",
  "location": "system",
  "default": null,
  "group": "text",
  "options": [
    {
      "id": "text",
      "name": "text",
      "color": "pink",
      "user": true,
      "archived": false
    }
  ],
  "add_new_options": true,
  "restrict_to_types": [
    "IMAGE"
  ],
  "automated": false,
  "prompt": "text",
  "archived": false,
  "locked": false,
  "deleted": false,
  "relation_config": {
    "target": {
      "kind": "asset"
    },
    "paired_to": {
      "target": {
        "kind": "asset"
      },
      "column_id": "123e4567-e89b-12d3-a456-426614174000",
      "type_name": "text",
      "column_name": "text"
    },
    "inverse": {
      "enabled": false,
      "name": "text"
    }
  },
  "lookup_config": {
    "path": [
      "123e4567-e89b-12d3-a456-426614174000"
    ],
    "path_inverse_flags": [
      true
    ],
    "target_column_id": "123e4567-e89b-12d3-a456-426614174000",
    "target_value_type": "",
    "aggregation": "all"
  }
}

Archive metadata attribute on a drive

post
Authorizations
AuthorizationstringRequired

Your Shade API key, sent as-is with no Bearer prefix. Create one under Settings → Integrate → API keys.

Path parameters
drive_idstring · uuidRequired

ID of the drive. List a workspace's drives with GET /workspaces/{workspace_id}/drives.

Example: 7b1e4d2c-5a6f-4e8b-9c3d-2f1a0b9c8d7e
metadata_idstringRequired

ID of the metadata attribute. List a drive's attributes with GET /workspaces/drives/{drive_id}/metadata.

Example: 9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d
Body
archivebooleanRequired

Archive metadata attribute or not

Responses
200

Successful Response

application/json
nullOptional
post/workspaces/drives/{drive_id}/metadata/{metadata_id}
POST /workspaces/drives/{drive_id}/metadata/{metadata_id} HTTP/1.1
Host: api.shade.inc
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 16

{
  "archive": true
}

No content

Update a metadata attribute on a drive

put
Authorizations
AuthorizationstringRequired

Your Shade API key, sent as-is with no Bearer prefix. Create one under Settings → Integrate → API keys.

Path parameters
drive_idstring · uuidRequired

ID of the drive. List a workspace's drives with GET /workspaces/{workspace_id}/drives.

Example: 7b1e4d2c-5a6f-4e8b-9c3d-2f1a0b9c8d7e
metadata_idstringRequired

ID of the metadata attribute. List a drive's attributes with GET /workspaces/drives/{drive_id}/metadata.

Example: 9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d
Body

Legacy update shape. Top-level fields match the original embed=True Body() params so the wire format is unchanged. model_fields_set lets the patch builder distinguish "field absent" from "explicit null".

namestring · nullableOptional
descriptionstring · nullableOptional
automatedboolean · nullableOptional
promptstring · nullableOptional
defaultany of · nullableOptional
booleanOptional
or
integerOptional
or
numberOptional
or
stringOptional
or
or
or
nullOptional
add_new_optionsboolean · nullableOptional
rerunboolean · nullableOptionalDefault: false
lockedboolean · nullableOptional
Responses
200

Successful Response

application/json
idstringRequired
namestringRequired
keysstring[]Required
value_typestring · enumRequired

The type of value a metadata attribute holds.

Possible values:
descriptionstringRequired
locationstring · enumRequiredPossible values:
defaultany · nullableOptional
groupstring · nullableOptional
add_new_optionsboolean · nullableOptionalDefault: true
automatedboolean · nullableOptionalDefault: false
promptstring · nullableOptional
archivedboolean · nullableOptionalDefault: false
lockedboolean · nullableOptionalDefault: false
deletedboolean · nullableOptionalDefault: false
put/workspaces/drives/{drive_id}/metadata/{metadata_id}
PUT /workspaces/drives/{drive_id}/metadata/{metadata_id} HTTP/1.1
Host: api.shade.inc
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 219

{
  "name": "text",
  "description": "text",
  "automated": true,
  "prompt": "text",
  "default": true,
  "add_new_options": true,
  "options": [
    {
      "id": "text",
      "name": "text",
      "color": "pink",
      "user": true,
      "archived": false
    }
  ],
  "rerun": false,
  "locked": true
}
{
  "id": "text",
  "name": "text",
  "keys": [
    "text"
  ],
  "value_type": "str",
  "description": "text",
  "location": "system",
  "default": null,
  "group": "text",
  "options": [
    {
      "id": "text",
      "name": "text",
      "color": "pink",
      "user": true,
      "archived": false
    }
  ],
  "add_new_options": true,
  "restrict_to_types": [
    "IMAGE"
  ],
  "automated": false,
  "prompt": "text",
  "archived": false,
  "locked": false,
  "deleted": false,
  "relation_config": {
    "target": {
      "kind": "asset"
    },
    "paired_to": {
      "target": {
        "kind": "asset"
      },
      "column_id": "123e4567-e89b-12d3-a456-426614174000",
      "type_name": "text",
      "column_name": "text"
    },
    "inverse": {
      "enabled": false,
      "name": "text"
    }
  },
  "lookup_config": {
    "path": [
      "123e4567-e89b-12d3-a456-426614174000"
    ],
    "path_inverse_flags": [
      true
    ],
    "target_column_id": "123e4567-e89b-12d3-a456-426614174000",
    "target_value_type": "",
    "aggregation": "all"
  }
}

Delete a metadata attribute on a drive

delete
Authorizations
AuthorizationstringRequired

Your Shade API key, sent as-is with no Bearer prefix. Create one under Settings → Integrate → API keys.

Path parameters
drive_idstring · uuidRequired

ID of the drive. List a workspace's drives with GET /workspaces/{workspace_id}/drives.

Example: 7b1e4d2c-5a6f-4e8b-9c3d-2f1a0b9c8d7e
metadata_idstringRequired

ID of the metadata attribute. List a drive's attributes with GET /workspaces/drives/{drive_id}/metadata.

Example: 9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d
Responses
200

Successful Response

application/json
nullOptional
delete/workspaces/drives/{drive_id}/metadata/{metadata_id}
DELETE /workspaces/drives/{drive_id}/metadata/{metadata_id} HTTP/1.1
Host: api.shade.inc
Authorization: YOUR_API_KEY
Accept: */*

No content

Create a metadata attribute option on a drive

post
Authorizations
AuthorizationstringRequired

Your Shade API key, sent as-is with no Bearer prefix. Create one under Settings → Integrate → API keys.

Path parameters
drive_idstring · uuidRequired

ID of the drive. List a workspace's drives with GET /workspaces/{workspace_id}/drives.

Example: 7b1e4d2c-5a6f-4e8b-9c3d-2f1a0b9c8d7e
metadata_idstringRequired

ID of the metadata attribute. List a drive's attributes with GET /workspaces/drives/{drive_id}/metadata.

Example: 9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d
Body
option_namestringRequired

The option name to add to the metadata attribute

option_colorstring · enumRequired

The option color to add to the metadata attribute

Possible values:
Responses
200

Successful Response

application/json
idstringRequired
namestringRequired
colorstring · enumRequiredPossible values:
userbooleanRequired
archivedbooleanOptionalDefault: false
post/workspaces/drives/{drive_id}/metadata/{metadata_id}/option
POST /workspaces/drives/{drive_id}/metadata/{metadata_id}/option HTTP/1.1
Host: api.shade.inc
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 56

{
  "option_name": "Final Delivery",
  "option_color": "purple"
}
{
  "id": "text",
  "name": "text",
  "color": "pink",
  "user": true,
  "archived": false
}

Search for objects to relate to

get
Authorizations
AuthorizationstringRequired

Your Shade API key, sent as-is with no Bearer prefix. Create one under Settings → Integrate → API keys.

Path parameters
drive_idstring · uuidRequired

ID of the drive. List a workspace's drives with GET /workspaces/{workspace_id}/drives.

Example: 7b1e4d2c-5a6f-4e8b-9c3d-2f1a0b9c8d7e
Query parameters
object_typestring · enumRequiredPossible values:
querystringOptionalDefault: ""
target_database_idstring · uuid · nullableOptional
limitinteger · min: 1 · max: 100OptionalDefault: 20
Responses
200

Successful Response

application/json
or
or
or
get/workspaces/drives/{drive_id}/relation-targets
GET /workspaces/drives/{drive_id}/relation-targets?object_type=asset HTTP/1.1
Host: api.shade.inc
Authorization: YOUR_API_KEY
Accept: */*
[
  {
    "entity_type": "asset",
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "name": "text",
    "asset_type": "text",
    "thumbnail_url": "text"
  }
]

Last updated

Was this helpful?