BETA: This API is currently in BETA and is subject to change. Endpoints, request/response formats, and functionality may change without notice.
Get File by Path
Playground
GETEndpoint:
/api/files/v1/filesets/{filesetId}/path?path={filePath}
Path Parameters:
filesetId(String, required): The ID of the FileSet.
path(String, required): The path to the File within the FileSet.
Get File by Id
Playground
GETEndpoint:
/api/files/v1/filesets/{filesetId}/files/{fileId}
Path Parameters:
filesetId(String, required): The ID of the FileSet.fileId(String, required): The ID of the file.
Download File by Id
Playground
GETEndpoint:
/api/files/v1/filesets/{filesetId}/files/{fileId}/download
Path Parameters:
filesetId(String, required): The ID of the FileSet.fileId(String, required): The ID of the file.
- Returns the FileSet contents as a download (binary/text stream).
Query Files
Playground
POSTEndpoint:
/api/files/v1/filesets/{filesetId}/query
Description: Queries the Files and directories within a FileSet using a search query.
Path Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
| filesetId | String | Yes | The ID of the FileSet |
| Parameter | Type | Required | Description |
|---|---|---|---|
| query | String | Yes | Text to search for in Files |
| directoryPath | String | No | Limit search to a specific directory |
| topK | Integer | No | Maximum number of results to return |
Upload File
Playground
POSTEndpoint:
/api/files/v1/filesets/{filesetId}/files
Path Parameters:
filesetId(String, required): The ID of the FileSet.
Search Files in FileSet
Playground
POSTEndpoint:
/api/files/v1/filesets/{filesetId}/files/search
Description: Lists Files and directories within a FileSet, optionally filtered by directory path or other criteria.
Path Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
| filesetId | String | Yes | The ID of the FileSet |
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| directoryPath | String | No | null | Filter Files by specific directory path |
| immediateChildren | Boolean | No | false | If true, returns only immediate children of directory |
| limit | Integer | No | 100 | Maximum number of results |
| next | String | No | null | Pagination token for fetching next set of results |
| Parameter | Type | Required | Description |
|---|---|---|---|
| fieldSort | Array | No | Sort options for results. Array of FieldSort Objects. |
| filters | Array | No | Filter criteria for the search. Array of Filter Objects. |
| dateFilters | Array | No | Date-based filter criteria. Array of DateFilter Objects. |
| Property | Type | Description |
|---|---|---|
| field | String | Field name to sort by |
| order | String | Sort direction: ‘ASC’ or ‘DESC’ |
| Property | Type | Description |
|---|---|---|
| field | String | Field name for date filter (e.g., ‘created’) |
| start | String | Start timestamp as ISO string |
| end | String | End timestamp as ISO string |
| not | Boolean | If true, inverts the date filter match |
Note: The Filter, FieldSort, and DateFilter objects have the same structure as in the Search FileSets endpoint.
Delete Files by Path
Playground
DELETEEndpoint:
/api/files/v1/filesets/{filesetId}/path?path={filePath}
Path Parameters:
filesetId(String, required): The ID of the FileSet.
path(String, required): The path to the File within the FileSet.
Delete File by Id
Playground
DELETEEndpoint:
/api/files/v1/filesets/{filesetId}/files/{fileId}
Path Parameters:
filesetId(String, required): The ID of the FileSet.fileId(String, required): The ID of the File.
Search FileSets
Playground
POSTEndpoint:
/api/files/v1/filesets/search
Description: Searches for FileSets in your Domo instance using filters and criteria.
Query Parameters:
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| limit | Integer | No | 100 | Maximum number of results to return |
| offset | Integer | No | 0 | Pagination offset |
| Parameter | Type | Required | Description |
|---|---|---|---|
| fieldSort | Array | No | Sort options for results. Array of FieldSort Objects. |
| filters | Array | No | Filter criteria for the search. Array of Filter Objects. |
| dateFilters | Array | No | Date-based filter criteria. Array of DateFilter Objects. |
| Property | Type | Description |
|---|---|---|
| field | String | Field name to filter on (e.g., ‘name’, ‘description’) |
| value | Array | Values to match against |
| not | Boolean | If true, inverts the filter match |
| operator | String | Operation type: ‘EQUALS’, ‘GREATER_THAN’, ‘LESS_THAN’, ‘LESS_THAN_OR_EQUAL’, ‘GREATER_THAN_OR_EQUAL’, ‘IN’, ‘IS_NULL’, ‘LIKE’ |
| Property | Type | Description |
|---|---|---|
| field | String | Field name to sort by |
| order | String | Sort direction: ‘ASC’ or ‘DESC’ |
| Property | Type | Description |
|---|---|---|
| field | String | Field name for date filter (e.g., ‘created’) |
| start | String | Start timestamp as ISO string |
| end | String | End timestamp as ISO string |
| not | Boolean | If true, inverts the date filter match |
Note: To list all FileSets, send an empty object as the body. To filter, provide filter parameters in the body.
Create FileSet
Playground
POSTEndpoint:
/api/files/v1/filesets
Request Body Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
| name | String | Yes | The name of the FileSet |
| accountId | Integer | No | The account ID to associate (nullable) |
| connectorContext | Object | No | Connector context for the FileSet (nullable). ConnectorContext Object. |
| description | String | No | Description for the FileSet |
| Property | Type | Required | Description |
|---|---|---|---|
| connector | String | Yes | The connector key |
| relativePath | String | No | Relative path for the connector (nullable) |
Get FileSet by Id
Playground
GET
Endpoint: /api/files/v1/filesets/{filesetId}
Path Parameters:
filesetId(String, required): The ID of the FileSet.
Update FileSet by Id
Playground
POSTEndpoint:
/api/files/v1/filesets/{filesetId}
Path Parameters:
filesetId(String, required): The ID of the FileSet.
| Parameter | Type | Required | Description |
|---|---|---|---|
| name | String | No | The new name for the FileSet |
| description | String | No | The new description for FileSet |
Delete FileSet by Id
Playground
DELETEEndpoint:
/api/files/v1/filesets/{filesetId}
Path Parameters:
filesetId(String, required): The ID of the FileSet.