Drive
Browse and organize your firm's folders and files.
Host: api_domain · Path prefix: /docktix/api/v1/ · Method: POST (parameter-less reads are GET) · every POST body also carries Firm_Id and Email · see Authentication for headers and errors.
| Route | Scope | Purpose |
|---|---|---|
drive/resources/list | DocktixDrive.resources.READ | List the whole resource tree |
drive/resources/details | DocktixDrive.resources.READ | Get one folder or file |
drive/resources/create | DocktixDrive.resources.CREATE | Create a folder |
drive/resources/update | DocktixDrive.resources.UPDATE | Rename |
drive/resources/move | DocktixDrive.resources.UPDATE | Move into another folder |
drive/resources/delete | DocktixDrive.resources.DELETE | Delete |
Every Resource_Id, Parent_Id and Destination_Id must belong to your firm (404 Resource not found. otherwise). Uploading and downloading files is not available through these routes.
List resources
GET
{api_domain}/docktix/api/v1/drive/resources/listNo body. Details is your complete resource tree. There is no paging or filtering.
Get a resource
POST
{api_domain}/docktix/api/v1/drive/resources/detailsParameters
| Parameter | Type | Required | Description |
|---|---|---|---|
Firm_Id | string | Required | Your firm id; must match the token |
Email | string | Required | The user the token acts as; must match the token |
Resource_Id | string | Required | The folder or file |
Create a folder
POST
{api_domain}/docktix/api/v1/drive/resources/createParameters
| Parameter | Type | Required | Description |
|---|---|---|---|
Firm_Id | string | Required | Your firm id; must match the token |
Email | string | Required | The user the token acts as; must match the token |
Resource_Label | string | Required | Folder name |
Resource_Api_Name | string | Optional | Defaults to the label with spaces replaced by _ |
Parent_Id | string | Optional | Parent folder in your firm; omitted = default location |
Rename
POST
{api_domain}/docktix/api/v1/drive/resources/updateParameters
| Parameter | Type | Required | Description |
|---|---|---|---|
Firm_Id | string | Required | Your firm id; must match the token |
Email | string | Required | The user the token acts as; must match the token |
Resource_Id | string | Required | The resource |
Resource_Name | string | Required | The full new name (include the extension for files) |
Move
POST
{api_domain}/docktix/api/v1/drive/resources/moveParameters
| Parameter | Type | Required | Description |
|---|---|---|---|
Firm_Id | string | Required | Your firm id; must match the token |
Email | string | Required | The user the token acts as; must match the token |
Resource_Id | string | Required | The resource to move |
Destination_Id | string | Required | The destination folder |
One resource per call. Moving a resource into itself answers 400.
Delete
POST
{api_domain}/docktix/api/v1/drive/resources/deleteDestructive. One resource per call.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
Firm_Id | string | Required | Your firm id; must match the token |
Email | string | Required | The user the token acts as; must match the token |
Resource_Id | string | Required | The resource |
Confirm | boolean | Required | Must be true; otherwise 400 and nothing is changed |