Files

Upload file or folder

Upload file or folder to create a dataset

post/workspaces/{workspace_id}/projects/{project_id}/files

Request

  • Base URL: https://app.mammoth.io/api/v2
  • URL: https://app.mammoth.io/api/v2/workspaces/{workspace_id}/projects/{project_id}/files
  • Auth: one of:
    • HTTP bearer
    • API key in header X-API-KEY and API key in header X-API-SECRET and API key in header X-WORKSPACE-ID

Path parameters

workspace_idinteger required

Workspace refers to a collection of projects. Workspace ID is unique identifier for workspace.

Example:4
project_idinteger required

Project ID of the workspace

Example:4

Query parameters

folder_resource_idstring nullable

Resource ID of the folder where the dataset is to be created

Example:label_123
source_type'file' | 'clipboard' | 'generated' | 'ai_generated'

Origin of the file content. e.g. the data could have been copied from clipboard

Example:file
append_to_ds_idinteger nullable

Dataset ID to which the file is being appended

Example:4
override_target_schemaboolean nullable

When appending to an existing dataset and this flag is set, the schema of the target dataset will be overridden by schema of the incoming data

Headers

Idempotency-Keystring nullable

Response

Document created, URL follows

unknown required

Changes

No recorded changes to this operation across all 3 revisions of this API.