TeamGriddeveloper
TeamGrid Developer

fileUploadIntents SDK client

3 typed @teamgrid/api-client methods for Files.

Client propertyclient.fileUploadIntents
Mapped operations3
API groupsFiles

Operation methods

Parameter declarations below are taken from the pinned TypeScript source. Request fields and responses are summarized from the matching OpenAPI operation; follow the API link for every field, constraint, example, and error description.

POST/file-upload-intents
Full API operation →

fileUploadIntents.create

Reserves workspace storage and returns a short-lived private HTTPS PUT target bound to the exact content length, MIME type, destination, credential, and idempotency key.

client.fileUploadIntents.create(data: FileUploadIntentCreate, options: MutationOptions = {})
Return form
Promise
Operation ID
createFileUploadIntent
Required scopes
files:write
SDK parameters
data: FileUploadIntentCreateoptions: MutationOptions
Header request fields
Idempotency-Key: string
Request body
FileUploadIntentCreateapplication/json
Success
201 FileUploadIntent envelope
Declared API errors
400401403409410415429502503
POST/file-upload-intents/{id}/finalize
Full API operation →

fileUploadIntents.finalize

Verifies the uploaded object size and MIME type, consumes the storage reservation, creates canonical file records, and returns only the public file projection.

client.fileUploadIntents.finalize(id: string, options: RequestOptions = {})
Return form
Promise
Operation ID
finalizeFileUploadIntent
Required scopes
files:write
SDK parameters
id: stringoptions: RequestOptions
Path request fields
id: string
Success
200 File envelope
Declared API errors
400401403404409410429502503
DELETE/file-upload-intents/{id}
Full API operation →

fileUploadIntents.cancel

Cancels a credential-owned unfinalized upload reservation. Repeated cancellation is safe; finalized intents cannot be canceled.

client.fileUploadIntents.cancel(id: string, options: RequestOptions = {})
Return form
Promise
Operation ID
cancelFileUploadIntent
Required scopes
files:write
SDK parameters
id: stringoptions: RequestOptions
Path request fields
id: string
Success
200 FileUploadCancellation envelope
Declared API errors
400401403404409429502503

Errors and transport metadata

HTTP failures reject with TeamGridApiError, including the status, stable error documents, request ID, optional retry delay, and transport metadata. Local validation, routing, timeout, response-size, and pagination failures reject withTeamGridClientError and a stable client error code. Successful envelopes expose non-enumerable transport metadata.

See pagination and errors andclient configuration for handling guidance.

Stable documentation · Developer Platform · Reviewed 2026-08-10Edit this page ↗
Documentation feedbackWas this page useful?
Esc

Search TeamGrid Developer

Find guides, concepts and every API operation.