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

Views

Views are saved searches: a set of filters, a sort order, and display settings that stay up to date as files change.

Get the dynamic views for a drive

get

Get the dynamic views for a drive

Authorizations
AuthorizationstringRequired

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

Query 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
columnsstring[] · nullableOptional
user_idstring · uuid · nullableOptional
is_lockedboolean · nullableOptional
is_privateboolean · nullableOptional
iconstring · nullableOptional
icon_typestring · enum · nullableOptionalPossible values:
sortstring · nullableOptional
get/dynamic-views
GET /dynamic-views?drive_id=123e4567-e89b-12d3-a456-426614174000 HTTP/1.1
Host: api.shade.inc
Authorization: YOUR_API_KEY
Accept: */*
[
  {
    "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"
  }
]

Add a dynamic view for a drive

post
Authorizations
AuthorizationstringRequired

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

Query 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

The dynamic view name to update

iconstring · nullableOptional

The dynamic view icon to update

icon_typestring · enum · nullableOptional

The dynamic view icon type to update

Possible values:
is_lockedboolean · nullableOptional

If locked, other users cannot modify the dynamic view.

Default: false
is_privateboolean · nullableOptional

If private, only the owner can see this dynamic view.

Default: false
sortstring · nullableOptional

The dynamic view sort to update (include '-' at beginning for descending)

Responses
200

Successful Response

application/json
anyOptional
post/dynamic-views
POST /dynamic-views?drive_id=123e4567-e89b-12d3-a456-426614174000 HTTP/1.1
Host: api.shade.inc
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 406

{
  "name": "text",
  "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",
  "is_locked": false,
  "is_private": false,
  "filters": [
    {
      "id": null,
      "options": [
        {
          "client_val": "text",
          "server_val": "text",
          "icon": "text"
        }
      ],
      "clause": "is",
      "ignore_options": true
    }
  ],
  "sort": "text"
}

No content

Update a dynamic view for a drive

put

Modify a dynamic view for a drive

Authorizations
AuthorizationstringRequired

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

Path parameters
dynamic_view_idstring · uuidRequired
Query 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

The dynamic view name to update

columnsstring[] · nullableOptional

The dynamic view columns to update

iconstring · nullableOptional

The dynamic view icon to update

icon_typestring · enum · nullableOptional

The dynamic view icon type to update

Possible values:
sortstring · nullableOptional

The dynamic view sort to update (include '-' at beginning for descending)

is_lockedboolean · nullableOptional

If locked, other users cannot modify the dynamic view.

Default: false
is_privateboolean · nullableOptional

If private, only the owner can see this dynamic view.

Default: false
Responses
200

Successful Response

application/json
nullOptional
put/dynamic-views/{dynamic_view_id}
PUT /dynamic-views/{dynamic_view_id}?drive_id=123e4567-e89b-12d3-a456-426614174000 HTTP/1.1
Host: api.shade.inc
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 425

{
  "name": "text",
  "filters": [
    {
      "id": null,
      "options": [
        {
          "client_val": "text",
          "server_val": "text",
          "icon": "text"
        }
      ],
      "clause": "is",
      "ignore_options": true
    }
  ],
  "columns": [
    "text"
  ],
  "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",
  "is_locked": false,
  "is_private": false
}

No content

Delete Dynamic View Route

delete
Authorizations
AuthorizationstringRequired

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

Path parameters
dynamic_view_idstring · uuidRequired
Query 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
nullOptional
delete/dynamic-views/{dynamic_view_id}
DELETE /dynamic-views/{dynamic_view_id}?drive_id=123e4567-e89b-12d3-a456-426614174000 HTTP/1.1
Host: api.shade.inc
Authorization: YOUR_API_KEY
Accept: */*

No content

Export dynamic view data

get
Authorizations
AuthorizationstringRequired

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

Path parameters
dynamic_view_idstring · uuidRequired
export_formatstring · enumRequiredPossible values:
Query 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
osstring · enum · nullableOptional

Operating System Enum from the result of platform.system()

Possible values:
timezonestring · nullableOptional
Responses
200

Successful Response

application/octet-stream
stringOptional
get/dynamic-views/{dynamic_view_id}/exports/{export_format}
GET /dynamic-views/{dynamic_view_id}/exports/{export_format}?drive_id=123e4567-e89b-12d3-a456-426614174000 HTTP/1.1
Host: api.shade.inc
Authorization: YOUR_API_KEY
Accept: */*
text

Last updated

Was this helpful?