Spatio.Api.Files (spatio_sdk v0.0.2)
API calls for all endpoints tagged Files.
Summary
Functions
Delete multiple files in one call.
Move multiple files to a target folder.
Finalize a chunked-upload session and create the file row.
Create a folder.
Delete a file.
Extract text content from a PDF (or other supported file).
Fetch the block manifest for a chunked-uploaded file.
Only meaningful for files uploaded via upload/chunked/*. Files uploaded via upload or upload/base64 return 404.
Fetch one file's metadata.
Mint a fresh signed download URL. Returns a JSON envelope with a pre-signed URL pointing at the backing storage. Clients follow the URL — the platform does not stream bytes through itself.
Begin a content-addressed chunked upload session.
Client computes per-block hashes ahead of time and submits the list. The server replies with which blocks need uploading vs. already-on-server (deduplicated). Subsequent calls upload the missing blocks via uploadChunkedBlock, then commit.
List folders across connected file providers.
List files across connected file providers.
Fan-out list. Returns files from every connected file provider unless filtered by ?accountId= or ?provider=. Folder contents are scoped via ?folderId=; omit for account root.
Aggregate list of files + folders for renderer file-browser views.
Calls listFiles and listFileFolders in parallel and merges the results. Saves a round-trip when the UI shows both side-by-side.
Move a single file to a target folder.
Substring-match search across the caller's files.
In-memory search — the platform lists up to ~500 files and filters locally on name (case-insensitive substring). Not suitable for global search across very large file libraries.
Update a file's metadata (name, folder, custom fields).
Upload one block for an open chunked-upload session.
Upload a file via multipart form.
Multipart upload. Form field file carries the binary; auxiliary form fields scope the upload (folderId, workspaceId, organizationId, accountId). Max body size is currently 100 MB.
Upload a file via JSON with base64-encoded content.
Equivalent to uploadFile for clients that can't post multipart bodies (e.g. browser fetch with strict CSP).
Workspace-scoped chunked-upload commit (RBAC-protected).
Workspace-scoped create-folder (RBAC-protected).
Workspace-scoped delete-file.
Workspace-scoped get-file.
Workspace-scoped signed-download URL.
Workspace-scoped chunked-file manifest.
Workspace-scoped chunked-upload init (RBAC-protected).
Workspace-scoped list-folders (RBAC-protected).
Workspace-scoped list-files (RBAC-protected).
Workspace-scoped move-file.
Workspace-scoped update-file.
Workspace-scoped chunked-upload block (RBAC-protected).
Workspace-scoped multipart upload (RBAC-protected).
Workspace-scoped base64 upload (RBAC-protected).
Functions
@spec bulk_delete_files( Tesla.Env.client(), Spatio.Model.BulkDeleteFilesRequest.t(), keyword() ) :: {:ok, Spatio.Model.BulkFilesResponse.t()} | {:ok, Spatio.Model.ApiError.t()} | {:error, Tesla.Env.t()}
Delete multiple files in one call.
Parameters
connection(Spatio.Connection): Connection to serverbulk_delete_files_request(BulkDeleteFilesRequest):opts(keyword): Optional parameters
Returns
{:ok, Spatio.Model.BulkFilesResponse.t}on success{:error, Tesla.Env.t}on failure
@spec bulk_move_files( Tesla.Env.client(), Spatio.Model.BulkMoveFilesRequest.t(), keyword() ) :: {:ok, Spatio.Model.BulkFilesResponse.t()} | {:ok, Spatio.Model.ApiError.t()} | {:error, Tesla.Env.t()}
Move multiple files to a target folder.
Parameters
connection(Spatio.Connection): Connection to serverbulk_move_files_request(BulkMoveFilesRequest):opts(keyword): Optional parameters
Returns
{:ok, Spatio.Model.BulkFilesResponse.t}on success{:error, Tesla.Env.t}on failure
@spec commit_chunked_upload( Tesla.Env.client(), Spatio.Model.CommitChunkedUploadRequest.t(), keyword() ) :: {:ok, Spatio.Model.CommitChunkedUploadResponse.t()} | {:ok, Spatio.Model.ApiError.t()} | {:error, Tesla.Env.t()}
Finalize a chunked-upload session and create the file row.
Parameters
connection(Spatio.Connection): Connection to servercommit_chunked_upload_request(CommitChunkedUploadRequest):opts(keyword): Optional parameters
Returns
{:ok, Spatio.Model.CommitChunkedUploadResponse.t}on success{:error, Tesla.Env.t}on failure
@spec create_file_folder( Tesla.Env.client(), Spatio.Model.CreateFolderRequest.t(), keyword() ) :: {:ok, Spatio.Model.Folder.t()} | {:ok, Spatio.Model.ApiError.t()} | {:ok, Spatio.Model.CreateNote400Response.t()} | {:error, Tesla.Env.t()}
Create a folder.
Parameters
connection(Spatio.Connection): Connection to servercreate_folder_request(CreateFolderRequest):opts(keyword): Optional parameters:accountId(String.t): Connected-account row id. Selects which provider account this request targets when more than one is connected. Mutually exclusive withprovider. If omitted on a list endpoint the call fans out across every connected account.:provider(String.t): Provider id (e.g.native-notes,notion). Selects every connected account for the provider. Mutually exclusive withaccountId.:"X-Workspace-ID"(String.t): Workspace scope for unscoped tokens. Workspace-scoped PATs and OAuth tokens carry this implicitly; for session/JWT auth without a scoped PAT, pass it explicitly.
Returns
{:ok, Spatio.Model.Folder.t}on success{:error, Tesla.Env.t}on failure
@spec delete_file(Tesla.Env.client(), String.t(), keyword()) :: {:ok, nil} | {:ok, Spatio.Model.ApiError.t()} | {:error, Tesla.Env.t()}
Delete a file.
Parameters
connection(Spatio.Connection): Connection to serverid(String.t): File id.opts(keyword): Optional parameters:accountId(String.t): Connected-account row id. Selects which provider account this request targets when more than one is connected. Mutually exclusive withprovider. If omitted on a list endpoint the call fans out across every connected account.:"X-Workspace-ID"(String.t): Workspace scope for unscoped tokens. Workspace-scoped PATs and OAuth tokens carry this implicitly; for session/JWT auth without a scoped PAT, pass it explicitly.
Returns
{:ok, nil}on success{:error, Tesla.Env.t}on failure
@spec extract_file_text(Tesla.Env.client(), String.t(), keyword()) :: {:ok, Spatio.Model.ExtractTextResult.t()} | {:ok, Spatio.Model.ApiError.t()} | {:error, Tesla.Env.t()}
Extract text content from a PDF (or other supported file).
Parameters
connection(Spatio.Connection): Connection to serverid(String.t): File id.opts(keyword): Optional parameters:accountId(String.t): Connected-account row id. Selects which provider account this request targets when more than one is connected. Mutually exclusive withprovider. If omitted on a list endpoint the call fans out across every connected account.:"X-Workspace-ID"(String.t): Workspace scope for unscoped tokens. Workspace-scoped PATs and OAuth tokens carry this implicitly; for session/JWT auth without a scoped PAT, pass it explicitly.:pageStart(integer())::pageEnd(integer())::maxChars(integer()): Truncation limit; setstruncated: truewhen hit.
Returns
{:ok, Spatio.Model.ExtractTextResult.t}on success{:error, Tesla.Env.t}on failure
@spec get_chunked_file_manifest(Tesla.Env.client(), String.t(), keyword()) :: {:ok, Spatio.Model.ChunkedFileManifest.t()} | {:ok, Spatio.Model.ApiError.t()} | {:error, Tesla.Env.t()}
Fetch the block manifest for a chunked-uploaded file.
Only meaningful for files uploaded via upload/chunked/*. Files uploaded via upload or upload/base64 return 404.
Parameters
connection(Spatio.Connection): Connection to serverid(String.t): File id.opts(keyword): Optional parameters:accountId(String.t): Connected-account row id. Selects which provider account this request targets when more than one is connected. Mutually exclusive withprovider. If omitted on a list endpoint the call fans out across every connected account.:"X-Workspace-ID"(String.t): Workspace scope for unscoped tokens. Workspace-scoped PATs and OAuth tokens carry this implicitly; for session/JWT auth without a scoped PAT, pass it explicitly.
Returns
{:ok, Spatio.Model.ChunkedFileManifest.t}on success{:error, Tesla.Env.t}on failure
@spec get_file(Tesla.Env.client(), String.t(), keyword()) :: {:ok, Spatio.Model.ApiError.t()} | {:ok, Spatio.Model.SpatioFile.t()} | {:error, Tesla.Env.t()}
Fetch one file's metadata.
Parameters
connection(Spatio.Connection): Connection to serverid(String.t): File id.opts(keyword): Optional parameters:accountId(String.t): Connected-account row id. Selects which provider account this request targets when more than one is connected. Mutually exclusive withprovider. If omitted on a list endpoint the call fans out across every connected account.:"X-Workspace-ID"(String.t): Workspace scope for unscoped tokens. Workspace-scoped PATs and OAuth tokens carry this implicitly; for session/JWT auth without a scoped PAT, pass it explicitly.
Returns
{:ok, Spatio.Model.SpatioFile.t}on success{:error, Tesla.Env.t}on failure
@spec get_file_download_url(Tesla.Env.client(), String.t(), keyword()) :: {:ok, Spatio.Model.DownloadFileResponse.t()} | {:ok, Spatio.Model.ApiError.t()} | {:error, Tesla.Env.t()}
Mint a fresh signed download URL. Returns a JSON envelope with a pre-signed URL pointing at the backing storage. Clients follow the URL — the platform does not stream bytes through itself.
Parameters
connection(Spatio.Connection): Connection to serverid(String.t): File id.opts(keyword): Optional parameters:accountId(String.t): Connected-account row id. Selects which provider account this request targets when more than one is connected. Mutually exclusive withprovider. If omitted on a list endpoint the call fans out across every connected account.:"X-Workspace-ID"(String.t): Workspace scope for unscoped tokens. Workspace-scoped PATs and OAuth tokens carry this implicitly; for session/JWT auth without a scoped PAT, pass it explicitly.
Returns
{:ok, Spatio.Model.DownloadFileResponse.t}on success{:error, Tesla.Env.t}on failure
@spec init_chunked_upload( Tesla.Env.client(), Spatio.Model.InitChunkedUploadRequest.t(), keyword() ) :: {:ok, Spatio.Model.InitChunkedUploadResponse.t()} | {:ok, Spatio.Model.ApiError.t()} | {:error, Tesla.Env.t()}
Begin a content-addressed chunked upload session.
Client computes per-block hashes ahead of time and submits the list. The server replies with which blocks need uploading vs. already-on-server (deduplicated). Subsequent calls upload the missing blocks via uploadChunkedBlock, then commit.
Parameters
connection(Spatio.Connection): Connection to serverinit_chunked_upload_request(InitChunkedUploadRequest):opts(keyword): Optional parameters
Returns
{:ok, Spatio.Model.InitChunkedUploadResponse.t}on success{:error, Tesla.Env.t}on failure
@spec list_file_folders( Tesla.Env.client(), keyword() ) :: {:ok, Spatio.Model.FolderListEnvelope.t()} | {:ok, Spatio.Model.ApiError.t()} | {:error, Tesla.Env.t()}
List folders across connected file providers.
Parameters
connection(Spatio.Connection): Connection to serveropts(keyword): Optional parameters:accountId(String.t): Connected-account row id. Selects which provider account this request targets when more than one is connected. Mutually exclusive withprovider. If omitted on a list endpoint the call fans out across every connected account.:provider(String.t): Provider id (e.g.native-notes,notion). Selects every connected account for the provider. Mutually exclusive withaccountId.:"X-Workspace-ID"(String.t): Workspace scope for unscoped tokens. Workspace-scoped PATs and OAuth tokens carry this implicitly; for session/JWT auth without a scoped PAT, pass it explicitly.:parentId(String.t): Filter to children of this folder. Omit for root.:workspaceId(String.t)::organizationId(String.t)::limit(integer())::offset(integer()):
Returns
{:ok, Spatio.Model.FolderListEnvelope.t}on success{:error, Tesla.Env.t}on failure
@spec list_files( Tesla.Env.client(), keyword() ) :: {:ok, Spatio.Model.FileListEnvelope.t()} | {:ok, Spatio.Model.ApiError.t()} | {:error, Tesla.Env.t()}
List files across connected file providers.
Fan-out list. Returns files from every connected file provider unless filtered by ?accountId= or ?provider=. Folder contents are scoped via ?folderId=; omit for account root.
Parameters
connection(Spatio.Connection): Connection to serveropts(keyword): Optional parameters:accountId(String.t): Connected-account row id. Selects which provider account this request targets when more than one is connected. Mutually exclusive withprovider. If omitted on a list endpoint the call fans out across every connected account.:provider(String.t): Provider id (e.g.native-notes,notion). Selects every connected account for the provider. Mutually exclusive withaccountId.:"X-Workspace-ID"(String.t): Workspace scope for unscoped tokens. Workspace-scoped PATs and OAuth tokens carry this implicitly; for session/JWT auth without a scoped PAT, pass it explicitly.:folderId(String.t): Filter to one folder. Omit for the account root.:workspaceId(String.t)::organizationId(String.t)::limit(integer())::offset(integer())::sortBy(String.t): Provider-dependent. Common values:created_at,name,size.:sortOrder(String.t):
Returns
{:ok, Spatio.Model.FileListEnvelope.t}on success{:error, Tesla.Env.t}on failure
@spec list_files_and_folders( Tesla.Env.client(), keyword() ) :: {:ok, Spatio.Model.FilesAndFoldersResponse.t()} | {:ok, Spatio.Model.ApiError.t()} | {:error, Tesla.Env.t()}
Aggregate list of files + folders for renderer file-browser views.
Calls listFiles and listFileFolders in parallel and merges the results. Saves a round-trip when the UI shows both side-by-side.
Parameters
connection(Spatio.Connection): Connection to serveropts(keyword): Optional parameters:accountId(String.t): Connected-account row id. Selects which provider account this request targets when more than one is connected. Mutually exclusive withprovider. If omitted on a list endpoint the call fans out across every connected account.:provider(String.t): Provider id (e.g.native-notes,notion). Selects every connected account for the provider. Mutually exclusive withaccountId.:folderId(String.t): Filter to one folder. Omit for the account root.:workspaceId(String.t)::organizationId(String.t)::limit(integer())::offset(integer())::sortBy(String.t)::sortOrder(String.t):
Returns
{:ok, Spatio.Model.FilesAndFoldersResponse.t}on success{:error, Tesla.Env.t}on failure
@spec move_file( Tesla.Env.client(), String.t(), Spatio.Model.MoveFileRequest.t(), keyword() ) :: {:ok, Spatio.Model.MoveFileResponse.t()} | {:ok, Spatio.Model.ApiError.t()} | {:error, Tesla.Env.t()}
Move a single file to a target folder.
Parameters
connection(Spatio.Connection): Connection to serverid(String.t): File id.move_file_request(MoveFileRequest):opts(keyword): Optional parameters:accountId(String.t): Connected-account row id. Selects which provider account this request targets when more than one is connected. Mutually exclusive withprovider. If omitted on a list endpoint the call fans out across every connected account.:"X-Workspace-ID"(String.t): Workspace scope for unscoped tokens. Workspace-scoped PATs and OAuth tokens carry this implicitly; for session/JWT auth without a scoped PAT, pass it explicitly.
Returns
{:ok, Spatio.Model.MoveFileResponse.t}on success{:error, Tesla.Env.t}on failure
@spec search_files(Tesla.Env.client(), String.t(), keyword()) :: {:ok, Spatio.Model.SearchFilesResponse.t()} | {:ok, Spatio.Model.ApiError.t()} | {:error, Tesla.Env.t()}
Substring-match search across the caller's files.
In-memory search — the platform lists up to ~500 files and filters locally on name (case-insensitive substring). Not suitable for global search across very large file libraries.
Parameters
connection(Spatio.Connection): Connection to serverquery(String.t):opts(keyword): Optional parameters:accountId(String.t): Connected-account row id. Selects which provider account this request targets when more than one is connected. Mutually exclusive withprovider. If omitted on a list endpoint the call fans out across every connected account.:provider(String.t): Provider id (e.g.native-notes,notion). Selects every connected account for the provider. Mutually exclusive withaccountId.:folderId(String.t): Filter to one folder. Omit for the account root.:workspaceId(String.t)::organizationId(String.t)::limit(integer())::offset(integer()):
Returns
{:ok, Spatio.Model.SearchFilesResponse.t}on success{:error, Tesla.Env.t}on failure
@spec update_file( Tesla.Env.client(), String.t(), Spatio.Model.UpdateFileRequest.t(), keyword() ) :: {:ok, Spatio.Model.ApiError.t()} | {:ok, Spatio.Model.SpatioFile.t()} | {:error, Tesla.Env.t()}
Update a file's metadata (name, folder, custom fields).
Parameters
connection(Spatio.Connection): Connection to serverid(String.t): File id.update_file_request(UpdateFileRequest):opts(keyword): Optional parameters:accountId(String.t): Connected-account row id. Selects which provider account this request targets when more than one is connected. Mutually exclusive withprovider. If omitted on a list endpoint the call fans out across every connected account.:"X-Workspace-ID"(String.t): Workspace scope for unscoped tokens. Workspace-scoped PATs and OAuth tokens carry this implicitly; for session/JWT auth without a scoped PAT, pass it explicitly.
Returns
{:ok, Spatio.Model.SpatioFile.t}on success{:error, Tesla.Env.t}on failure
@spec upload_chunked_block( Tesla.Env.client(), String.t(), String.t(), String.t(), keyword() ) :: {:ok, Spatio.Model.UploadChunkedBlockResponse.t()} | {:ok, Spatio.Model.ApiError.t()} | {:error, Tesla.Env.t()}
Upload one block for an open chunked-upload session.
Parameters
connection(Spatio.Connection): Connection to serversession_id(String.t):block_hash(String.t):block(String.t):opts(keyword): Optional parameters:blockIndex(integer()):
Returns
{:ok, Spatio.Model.UploadChunkedBlockResponse.t}on success{:error, Tesla.Env.t}on failure
@spec upload_file(Tesla.Env.client(), String.t(), keyword()) :: {:ok, Spatio.Model.QuotaExceededError.t()} | {:ok, Spatio.Model.ApiError.t()} | {:ok, Spatio.Model.CreateNote400Response.t()} | {:ok, Spatio.Model.SpatioFile.t()} | {:error, Tesla.Env.t()}
Upload a file via multipart form.
Multipart upload. Form field file carries the binary; auxiliary form fields scope the upload (folderId, workspaceId, organizationId, accountId). Max body size is currently 100 MB.
Parameters
connection(Spatio.Connection): Connection to serverfile(String.t): File bytes (multipart form field namefile).opts(keyword): Optional parameters:folderId(String.t)::workspaceId(String.t)::organizationId(String.t)::accountId(String.t):
Returns
{:ok, Spatio.Model.SpatioFile.t}on success{:error, Tesla.Env.t}on failure
@spec upload_file_base64( Tesla.Env.client(), Spatio.Model.UploadFileBase64Request.t(), keyword() ) :: {:ok, Spatio.Model.QuotaExceededError.t()} | {:ok, Spatio.Model.ApiError.t()} | {:ok, Spatio.Model.CreateNote400Response.t()} | {:ok, Spatio.Model.SpatioFile.t()} | {:error, Tesla.Env.t()}
Upload a file via JSON with base64-encoded content.
Equivalent to uploadFile for clients that can't post multipart bodies (e.g. browser fetch with strict CSP).
Parameters
connection(Spatio.Connection): Connection to serverupload_file_base64_request(UploadFileBase64Request):opts(keyword): Optional parameters
Returns
{:ok, Spatio.Model.SpatioFile.t}on success{:error, Tesla.Env.t}on failure
@spec workspace_commit_chunked_upload( Tesla.Env.client(), String.t(), String.t(), %{optional(String.t()) => any()}, keyword() ) :: {:ok, %{optional(String.t()) => any()}} | {:ok, Spatio.Model.ApiError.t()} | {:error, Tesla.Env.t()}
Workspace-scoped chunked-upload commit (RBAC-protected).
Parameters
connection(Spatio.Connection): Connection to serverorg(String.t):workspace(String.t):request_body(%{optional(String.t) => any()}):opts(keyword): Optional parameters
Returns
{:ok, %{}}on success{:error, Tesla.Env.t}on failure
@spec workspace_create_file_folder( Tesla.Env.client(), String.t(), String.t(), %{optional(String.t()) => any()}, keyword() ) :: {:ok, %{optional(String.t()) => any()}} | {:ok, Spatio.Model.ApiError.t()} | {:error, Tesla.Env.t()}
Workspace-scoped create-folder (RBAC-protected).
Parameters
connection(Spatio.Connection): Connection to serverorg(String.t):workspace(String.t):request_body(%{optional(String.t) => any()}):opts(keyword): Optional parameters
Returns
{:ok, %{}}on success{:error, Tesla.Env.t}on failure
@spec workspace_delete_file( Tesla.Env.client(), String.t(), String.t(), String.t(), keyword() ) :: {:ok, nil} | {:ok, Spatio.Model.ApiError.t()} | {:error, Tesla.Env.t()}
Workspace-scoped delete-file.
Parameters
connection(Spatio.Connection): Connection to serverorg(String.t):workspace(String.t):id(String.t):opts(keyword): Optional parameters
Returns
{:ok, nil}on success{:error, Tesla.Env.t}on failure
@spec workspace_get_file( Tesla.Env.client(), String.t(), String.t(), String.t(), keyword() ) :: {:ok, %{optional(String.t()) => any()}} | {:ok, Spatio.Model.ApiError.t()} | {:error, Tesla.Env.t()}
Workspace-scoped get-file.
Parameters
connection(Spatio.Connection): Connection to serverorg(String.t):workspace(String.t):id(String.t):opts(keyword): Optional parameters
Returns
{:ok, %{}}on success{:error, Tesla.Env.t}on failure
@spec workspace_get_file_download( Tesla.Env.client(), String.t(), String.t(), String.t(), keyword() ) :: {:ok, %{optional(String.t()) => any()}} | {:ok, Spatio.Model.ApiError.t()} | {:error, Tesla.Env.t()}
Workspace-scoped signed-download URL.
Parameters
connection(Spatio.Connection): Connection to serverorg(String.t):workspace(String.t):id(String.t):opts(keyword): Optional parameters
Returns
{:ok, %{}}on success{:error, Tesla.Env.t}on failure
@spec workspace_get_file_manifest( Tesla.Env.client(), String.t(), String.t(), String.t(), keyword() ) :: {:ok, %{optional(String.t()) => any()}} | {:ok, Spatio.Model.ApiError.t()} | {:error, Tesla.Env.t()}
Workspace-scoped chunked-file manifest.
Parameters
connection(Spatio.Connection): Connection to serverorg(String.t):workspace(String.t):id(String.t):opts(keyword): Optional parameters
Returns
{:ok, %{}}on success{:error, Tesla.Env.t}on failure
@spec workspace_init_chunked_upload( Tesla.Env.client(), String.t(), String.t(), %{optional(String.t()) => any()}, keyword() ) :: {:ok, %{optional(String.t()) => any()}} | {:ok, Spatio.Model.ApiError.t()} | {:error, Tesla.Env.t()}
Workspace-scoped chunked-upload init (RBAC-protected).
Parameters
connection(Spatio.Connection): Connection to serverorg(String.t):workspace(String.t):request_body(%{optional(String.t) => any()}):opts(keyword): Optional parameters
Returns
{:ok, %{}}on success{:error, Tesla.Env.t}on failure
@spec workspace_list_file_folders( Tesla.Env.client(), String.t(), String.t(), keyword() ) :: {:ok, %{optional(String.t()) => any()}} | {:ok, Spatio.Model.ApiError.t()} | {:error, Tesla.Env.t()}
Workspace-scoped list-folders (RBAC-protected).
Parameters
connection(Spatio.Connection): Connection to serverorg(String.t):workspace(String.t):opts(keyword): Optional parameters
Returns
{:ok, %{}}on success{:error, Tesla.Env.t}on failure
@spec workspace_list_files(Tesla.Env.client(), String.t(), String.t(), keyword()) :: {:ok, %{optional(String.t()) => any()}} | {:ok, Spatio.Model.ApiError.t()} | {:error, Tesla.Env.t()}
Workspace-scoped list-files (RBAC-protected).
Parameters
connection(Spatio.Connection): Connection to serverorg(String.t):workspace(String.t):opts(keyword): Optional parameters
Returns
{:ok, %{}}on success{:error, Tesla.Env.t}on failure
@spec workspace_move_file( Tesla.Env.client(), String.t(), String.t(), String.t(), %{optional(String.t()) => any()}, keyword() ) :: {:ok, %{optional(String.t()) => any()}} | {:ok, Spatio.Model.ApiError.t()} | {:error, Tesla.Env.t()}
Workspace-scoped move-file.
Parameters
connection(Spatio.Connection): Connection to serverorg(String.t):workspace(String.t):id(String.t):request_body(%{optional(String.t) => any()}):opts(keyword): Optional parameters
Returns
{:ok, %{}}on success{:error, Tesla.Env.t}on failure
@spec workspace_update_file( Tesla.Env.client(), String.t(), String.t(), String.t(), %{optional(String.t()) => any()}, keyword() ) :: {:ok, %{optional(String.t()) => any()}} | {:ok, Spatio.Model.ApiError.t()} | {:error, Tesla.Env.t()}
Workspace-scoped update-file.
Parameters
connection(Spatio.Connection): Connection to serverorg(String.t):workspace(String.t):id(String.t):request_body(%{optional(String.t) => any()}):opts(keyword): Optional parameters
Returns
{:ok, %{}}on success{:error, Tesla.Env.t}on failure
@spec workspace_upload_chunked_block( Tesla.Env.client(), String.t(), String.t(), String.t(), keyword() ) :: {:ok, %{optional(String.t()) => any()}} | {:ok, Spatio.Model.ApiError.t()} | {:error, Tesla.Env.t()}
Workspace-scoped chunked-upload block (RBAC-protected).
Parameters
connection(Spatio.Connection): Connection to serverorg(String.t):workspace(String.t):body(String.t):opts(keyword): Optional parameters
Returns
{:ok, %{}}on success{:error, Tesla.Env.t}on failure
@spec workspace_upload_file(Tesla.Env.client(), String.t(), String.t(), keyword()) :: {:ok, %{optional(String.t()) => any()}} | {:ok, Spatio.Model.ApiError.t()} | {:error, Tesla.Env.t()}
Workspace-scoped multipart upload (RBAC-protected).
Parameters
connection(Spatio.Connection): Connection to serverorg(String.t):workspace(String.t):opts(keyword): Optional parameters:file(String.t):
Returns
{:ok, %{}}on success{:error, Tesla.Env.t}on failure
@spec workspace_upload_file_base64( Tesla.Env.client(), String.t(), String.t(), %{optional(String.t()) => any()}, keyword() ) :: {:ok, %{optional(String.t()) => any()}} | {:ok, Spatio.Model.ApiError.t()} | {:error, Tesla.Env.t()}
Workspace-scoped base64 upload (RBAC-protected).
Parameters
connection(Spatio.Connection): Connection to serverorg(String.t):workspace(String.t):request_body(%{optional(String.t) => any()}):opts(keyword): Optional parameters
Returns
{:ok, %{}}on success{:error, Tesla.Env.t}on failure