Drives
A drive is a top-level storage space inside a workspace, with its own files, metadata fields, collections, and permissions. Almost every other route takes a drive_id.
List a workspace's drives, with your role and allowed actions on each, with
GET /workspaces/{workspace_id}/drives.Get one drive with
GET /workspaces/drives/{drive_id}.
Successful Response
Not found
GET /public/drive-templates HTTP/1.1
Host: api.shade.inc
Accept: */*
[
{
"id": "text",
"name": "text",
"description": "text",
"dynamic_views": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"filters": [
{
"id": null,
"options": [
{
"client_val": "text",
"server_val": "text",
"icon": "text"
}
],
"clause": "is",
"ignore_options": true
}
],
"columns": [
"text"
],
"user_id": "123e4567-e89b-12d3-a456-426614174000",
"is_locked": true,
"is_private": true,
"display_settings": {
"card_size": 1,
"thumbnail_view": "text",
"thumbnail_size": "text",
"view": "text",
"metadata_attribute_ids": [
"text"
],
"flatten_directories": true,
"tile_rounded": true
},
"icon": "text",
"icon_type": "color",
"sort": "text"
}
],
"metadata_attributes": [
{
"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"
}
}
]
}
]Gets a drive from the drive_id
Your Shade API key, sent as-is with no Bearer prefix. Create one under
Settings → Integrate → API keys.
ID of the drive. List a workspace's drives with GET /workspaces/{workspace_id}/drives.
7b1e4d2c-5a6f-4e8b-9c3d-2f1a0b9c8d7eSuccessful Response
A user's role on a drive, folder, or file. Higher values grant more access.
A user's role on a drive, folder, or file. Higher values grant more access.
falseNot found
Validation Error
GET /workspaces/drives/{drive_id} HTTP/1.1
Host: api.shade.inc
Authorization: YOUR_API_KEY
Accept: */*
{
"id": "7b1e4d2c-5a6f-4e8b-9c3d-2f1a0b9c8d7e",
"name": "Marketing",
"description": "Campaign footage, photos, and deliverables",
"icon": "#4F7DF3",
"settings": {
"max_storage_bytes": 10995116277760
},
"type": "magic",
"identifier": "marketing",
"icon_type": "color",
"member_inherited_role": 30,
"invite_id": "0a9b8c7d-6e5f-4a3b-9c2d-1e0f9a8b7c6e",
"workspace_id": "3f6c2a1e-8d4b-4c2f-9a7e-1b5d6e7f8a90",
"byos": null,
"default_storage_backend": null,
"actions": [
"read",
"read_metadata",
"read_asset_details",
"download",
"comment",
"edit",
"edit_metadata",
"share"
],
"role": 30,
"is_workspace_member": true
}Your Shade API key, sent as-is with no Bearer prefix. Create one under
Settings → Integrate → API keys.
ID of the drive. List a workspace's drives with GET /workspaces/{workspace_id}/drives.
7b1e4d2c-5a6f-4e8b-9c3d-2f1a0b9c8d7eA user's role on a drive, folder, or file. Higher values grant more access.
Successful Response
A user's role on a drive, folder, or file. Higher values grant more access.
A user's role on a drive, folder, or file. Higher values grant more access.
falseNot found
Validation Error
PUT /workspaces/drives/{drive_id} HTTP/1.1
Host: api.shade.inc
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 97
{
"name": "text",
"description": "text",
"icon": "text",
"icon_type": "color",
"member_inherited_role": 50
}{
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"description": "text",
"icon": "text",
"settings": {
"max_storage_bytes": 1,
"mount_path_macos": "text",
"mount_path_linux": "text",
"mount_path_windows": "text"
},
"type": "catalog",
"identifier": "text",
"icon_type": "color",
"member_inherited_role": 50,
"invite_id": "123e4567-e89b-12d3-a456-426614174000",
"workspace_id": "123e4567-e89b-12d3-a456-426614174000",
"byos": {
"bucket": "text",
"endpoint": "text"
},
"default_storage_backend": {
"provider": "text",
"bucket": "text"
},
"actions": [
"manage"
],
"role": 50,
"is_workspace_member": false
}Your Shade API key, sent as-is with no Bearer prefix. Create one under
Settings → Integrate → API keys.
ID of the drive. List a workspace's drives with GET /workspaces/{workspace_id}/drives.
7b1e4d2c-5a6f-4e8b-9c3d-2f1a0b9c8d7eSuccessful Response
Not found
Validation Error
DELETE /workspaces/drives/{drive_id} HTTP/1.1
Host: api.shade.inc
Authorization: YOUR_API_KEY
Accept: */*
trueYour Shade API key, sent as-is with no Bearer prefix. Create one under
Settings → Integrate → API keys.
ID of the drive. List a workspace's drives with GET /workspaces/{workspace_id}/drives.
7b1e4d2c-5a6f-4e8b-9c3d-2f1a0b9c8d7eSuccessful Response
Not found
Validation Error
PUT /workspaces/drives/{drive_id}/settings HTTP/1.1
Host: api.shade.inc
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 103
{
"max_storage_bytes": 1,
"mount_path_macos": "text",
"mount_path_linux": "text",
"mount_path_windows": "text"
}No content
Your Shade API key, sent as-is with no Bearer prefix. Create one under
Settings → Integrate → API keys.
ID of the workspace. List yours with GET /workspaces.
3f6c2a1e-8d4b-4c2f-9a7e-1b5d6e7f8a90Successful Response
A user's role on a drive, folder, or file. Higher values grant more access.
A user's role on a drive, folder, or file. Higher values grant more access.
falseNot found
Validation Error
GET /workspaces/{workspace_id}/drives HTTP/1.1
Host: api.shade.inc
Authorization: YOUR_API_KEY
Accept: */*
[
{
"id": "7b1e4d2c-5a6f-4e8b-9c3d-2f1a0b9c8d7e",
"name": "Marketing",
"description": "Campaign footage, photos, and deliverables",
"icon": "#4F7DF3",
"settings": {
"max_storage_bytes": 10995116277760
},
"type": "magic",
"identifier": "marketing",
"icon_type": "color",
"member_inherited_role": 30,
"invite_id": "0a9b8c7d-6e5f-4a3b-9c2d-1e0f9a8b7c6e",
"workspace_id": "3f6c2a1e-8d4b-4c2f-9a7e-1b5d6e7f8a90",
"byos": null,
"default_storage_backend": null,
"actions": [
"read",
"read_metadata",
"read_asset_details",
"download",
"comment",
"edit",
"edit_metadata",
"share"
],
"role": 30,
"is_workspace_member": true
}
]Create a Drive
Your Shade API key, sent as-is with no Bearer prefix. Create one under
Settings → Integrate → API keys.
ID of the workspace. List yours with GET /workspaces.
3f6c2a1e-8d4b-4c2f-9a7e-1b5d6e7f8a90Successful Response
A user's role on a drive, folder, or file. Higher values grant more access.
A user's role on a drive, folder, or file. Higher values grant more access.
falseNot found
Validation Error
POST /workspaces/{workspace_id}/drives HTTP/1.1
Host: api.shade.inc
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 298
{
"name": "text",
"description": "text",
"type": "catalog",
"icon": "text",
"icon_type": "color",
"byos": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"default_storage_backend": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"template_drive_id": "123e4567-e89b-12d3-a456-426614174000",
"public_template_key": "video_production"
}{
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"description": "text",
"icon": "text",
"settings": {
"max_storage_bytes": 1,
"mount_path_macos": "text",
"mount_path_linux": "text",
"mount_path_windows": "text"
},
"type": "catalog",
"identifier": "text",
"icon_type": "color",
"member_inherited_role": 50,
"invite_id": "123e4567-e89b-12d3-a456-426614174000",
"workspace_id": "123e4567-e89b-12d3-a456-426614174000",
"byos": {
"bucket": "text",
"endpoint": "text"
},
"default_storage_backend": {
"provider": "text",
"bucket": "text"
},
"actions": [
"manage"
],
"role": 50,
"is_workspace_member": false
}This route is used to get all the drives for a user. The frontend uses this to determine which shadefs drives should be kept/removed
Your Shade API key, sent as-is with no Bearer prefix. Create one under
Settings → Integrate → API keys.
Successful Response
Not found
Validation Error
GET /workspaces/drive-ids HTTP/1.1
Host: api.shade.inc
Authorization: YOUR_API_KEY
Accept: */*
[
"123e4567-e89b-12d3-a456-426614174000"
]This is used for the /admin routes
Your Shade API key, sent as-is with no Bearer prefix. Create one under
Settings → Integrate → API keys.
ID of the workspace. List yours with GET /workspaces.
3f6c2a1e-8d4b-4c2f-9a7e-1b5d6e7f8a90Successful Response
Not found
Validation Error
GET /workspaces/{workspace_id}/drives/permissions HTTP/1.1
Host: api.shade.inc
Authorization: YOUR_API_KEY
Accept: */*
{
"drives_you_can_manage": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"description": "text",
"icon": "text",
"settings": {
"max_storage_bytes": 1,
"mount_path_macos": "text",
"mount_path_linux": "text",
"mount_path_windows": "text"
},
"type": "catalog",
"identifier": "text",
"icon_type": "color",
"member_inherited_role": 50,
"invite_id": "123e4567-e89b-12d3-a456-426614174000",
"workspace_id": "123e4567-e89b-12d3-a456-426614174000",
"byos": {
"bucket": "text",
"endpoint": "text"
},
"default_storage_backend": {
"provider": "text",
"bucket": "text"
}
}
],
"drives_you_can_read": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"description": "text",
"icon": "text",
"settings": {
"max_storage_bytes": 1,
"mount_path_macos": "text",
"mount_path_linux": "text",
"mount_path_windows": "text"
},
"type": "catalog",
"identifier": "text",
"icon_type": "color",
"member_inherited_role": 50,
"invite_id": "123e4567-e89b-12d3-a456-426614174000",
"workspace_id": "123e4567-e89b-12d3-a456-426614174000",
"byos": {
"bucket": "text",
"endpoint": "text"
},
"default_storage_backend": {
"provider": "text",
"bucket": "text"
}
}
]
}Your Shade API key, sent as-is with no Bearer prefix. Create one under
Settings → Integrate → API keys.
Successful Response
Not found
Validation Error
GET /workspaces/{workspace_domain}/drives/{drive_identifier}/identifier HTTP/1.1
Host: api.shade.inc
Authorization: YOUR_API_KEY
Accept: */*
123e4567-e89b-12d3-a456-426614174000Last updated
Was this helpful?

