For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to page URLs.
Skip to content

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}.

Get all public drive templates

get
Responses
200

Successful Response

application/json
idstringRequired
namestringRequired
descriptionstringRequired
get/public/drive-templates
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

get

Gets a drive from the drive_id

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
idstring · uuidRequired
namestringRequired
descriptionstringRequired
iconstringRequired
typestring · enumRequiredPossible values:
identifierstringRequired
icon_typestring · enumRequiredPossible values:
member_inherited_roleinteger · enumRequired

A user's role on a drive, folder, or file. Higher values grant more access.

Possible values:
invite_idstring · uuidRequired
workspace_idstring · uuidRequired
roleinteger · enumRequired

A user's role on a drive, folder, or file. Higher values grant more access.

Possible values:
is_workspace_memberbooleanOptionalDefault: false
get/workspaces/drives/{drive_id}
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
}

Updates 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
Body
namestringRequired
descriptionstringRequired
iconstringRequired
icon_typestring · enumRequiredPossible values:
member_inherited_roleinteger · enumRequired

A user's role on a drive, folder, or file. Higher values grant more access.

Possible values:
Responses
200

Successful Response

application/json
idstring · uuidRequired
namestringRequired
descriptionstringRequired
iconstringRequired
typestring · enumRequiredPossible values:
identifierstringRequired
icon_typestring · enumRequiredPossible values:
member_inherited_roleinteger · enumRequired

A user's role on a drive, folder, or file. Higher values grant more access.

Possible values:
invite_idstring · uuidRequired
workspace_idstring · uuidRequired
roleinteger · enumRequired

A user's role on a drive, folder, or file. Higher values grant more access.

Possible values:
is_workspace_memberbooleanOptionalDefault: false
put/workspaces/drives/{drive_id}
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
}

Delete a drive by drive_id

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
Responses
200

Successful Response

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

Update drive settings

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
Body
max_storage_bytesinteger · nullableOptional
mount_path_macosstring · nullableOptional
mount_path_linuxstring · nullableOptional
mount_path_windowsstring · nullableOptional
Responses
200

Successful Response

application/json
nullOptional
put/workspaces/drives/{drive_id}/settings
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

Lists all the drives for a specific workspace

get
Authorizations
AuthorizationstringRequired

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

Path parameters
workspace_idstring · uuidRequired

ID of the workspace. List yours with GET /workspaces.

Example: 3f6c2a1e-8d4b-4c2f-9a7e-1b5d6e7f8a90
Responses
200

Successful Response

application/json
idstring · uuidRequired
namestringRequired
descriptionstringRequired
iconstringRequired
typestring · enumRequiredPossible values:
identifierstringRequired
icon_typestring · enumRequiredPossible values:
member_inherited_roleinteger · enumRequired

A user's role on a drive, folder, or file. Higher values grant more access.

Possible values:
invite_idstring · uuidRequired
workspace_idstring · uuidRequired
roleinteger · enumRequired

A user's role on a drive, folder, or file. Higher values grant more access.

Possible values:
is_workspace_memberbooleanOptionalDefault: false
get/workspaces/{workspace_id}/drives
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
  }
]

Creates a drive in a workspace

post

Create a Drive

Authorizations
AuthorizationstringRequired

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

Path parameters
workspace_idstring · uuidRequired

ID of the workspace. List yours with GET /workspaces.

Example: 3f6c2a1e-8d4b-4c2f-9a7e-1b5d6e7f8a90
Body
namestringRequired
descriptionstringRequired
typestring · enumRequiredPossible values:
iconstring · nullableOptional
icon_typestring · enum · nullableRequiredPossible values:
template_drive_idstring · uuid · nullableOptional
public_template_keystring · enum · nullableOptionalPossible values:
Responses
200

Successful Response

application/json
idstring · uuidRequired
namestringRequired
descriptionstringRequired
iconstringRequired
typestring · enumRequiredPossible values:
identifierstringRequired
icon_typestring · enumRequiredPossible values:
member_inherited_roleinteger · enumRequired

A user's role on a drive, folder, or file. Higher values grant more access.

Possible values:
invite_idstring · uuidRequired
workspace_idstring · uuidRequired
roleinteger · enumRequired

A user's role on a drive, folder, or file. Higher values grant more access.

Possible values:
is_workspace_memberbooleanOptionalDefault: false
post/workspaces/{workspace_id}/drives
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
}

Lists all user drives (including demo workspace drives)

get

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

Authorizations
AuthorizationstringRequired

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

Responses
200

Successful Response

application/json
string · uuid[]Optional
get/workspaces/drive-ids
GET /workspaces/drive-ids HTTP/1.1
Host: api.shade.inc
Authorization: YOUR_API_KEY
Accept: */*
[
  "123e4567-e89b-12d3-a456-426614174000"
]

Lists all the drives and your permission level for them

get

This is used for the /admin routes

Authorizations
AuthorizationstringRequired

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

Path parameters
workspace_idstring · uuidRequired

ID of the workspace. List yours with GET /workspaces.

Example: 3f6c2a1e-8d4b-4c2f-9a7e-1b5d6e7f8a90
Responses
200

Successful Response

application/json
get/workspaces/{workspace_id}/drives/permissions
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"
      }
    }
  ]
}

Gets a drive_id from an identifier

get
Authorizations
AuthorizationstringRequired

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

Path parameters
drive_identifierstringRequired
workspace_domainstringRequired
Responses
200

Successful Response

application/json
string · uuidOptional
get/workspaces/{workspace_domain}/drives/{drive_identifier}/identifier
GET /workspaces/{workspace_domain}/drives/{drive_identifier}/identifier HTTP/1.1
Host: api.shade.inc
Authorization: YOUR_API_KEY
Accept: */*
123e4567-e89b-12d3-a456-426614174000

Last updated

Was this helpful?