Files
Confirms a completed direct upload and returns the file-type field value. Pass documentId, documentVersionId, and uploadId from the generate-upload-url step, and the etags S3 returned for each uploaded part. The returned object is the complete field value — pass it as-is when creating/updating a record.
Enter your Workspace API key.
API keys can be generated and managed within the Workspace Integration settings in the Ninox app.
Workspace ID
5rdco4s18swuPattern: ^[a-z0-9]+$MIME type of the uploaded file
documentId returned by the generate-upload-url step
^[a-z0-9]+$documentVersionId returned by the generate-upload-url step
^[a-z0-9]+$ETag returned by S3 for each uploaded part, in order
Original file name
File size in bytes
uploadId returned by the generate-upload-url step
Upload completed successfully
Bad request
Unauthorized
Workspace not found
Storage quota exceeded
POST /api/v1/workspace/{workspaceId}/files/complete HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 135
{
"contentType": "text",
"documentId": "text",
"documentVersionId": "text",
"etags": [
"text"
],
"fileName": "text",
"fileSize": 1,
"uploadId": "text"
}{
"data": {
"documentId": "text",
"documentVersionId": "text",
"fileName": "text",
"fileSize": 1,
"fileType": "text"
}
}Generates presigned URLs for uploading a file directly to storage — the first step of a file-type field upload. Upload the file bytes directly to the returned URL(s) (one per part), then call .../files/complete with the resulting ETags to finish. This never sends file bytes through this API.
Enter your Workspace API key.
API keys can be generated and managed within the Workspace Integration settings in the Ninox app.
Workspace ID
5rdco4s18swuPattern: ^[a-z0-9]+$MIME type of the file being uploaded
Number of multipart upload parts (1 for a single-part upload, max 10,000 per S3 limits)
Presigned upload URLs generated successfully
Bad request
Unauthorized
Workspace not found
POST /api/v1/workspace/{workspaceId}/files/upload-url HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 32
{
"contentType": "text",
"parts": 1
}{
"data": {
"documentId": "text",
"documentVersionId": "text",
"preSignedUrls": [
"text"
],
"uploadId": "text"
}
}Uploads a file and attaches it to a record in a single multipart/form-data request, with the file in the file form field, like the Ninox 3 files endpoint. No presigned URL or complete step is needed. The returned object can also be stored in a file-type field (max. 50 MB).
Enter your Workspace API key.
API keys can be generated and managed within the Workspace Integration settings in the Ninox app.
Module name
Record ID
1Table name
Workspace ID
5rdco4s18swuPattern: ^[a-z0-9]+$File uploaded and attached
Bad request (missing file, etc.)
Unauthorized
Workspace, table or record not found
File too large (max 50 MB)
Storage quota exceeded
POST /api/v1/workspace/{workspaceId}/modules/{moduleName}/tables/{tableName}/records/{recordId}/files HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: multipart/form-data
Accept: */*
Content-Length: 17
{
"file": "binary"
}{
"data": {
"documentId": "text",
"documentVersionId": "text",
"fileName": "text",
"fileSize": 1,
"fileType": "text"
}
}Zuletzt aktualisiert
War das hilfreich?