/v1/files/uploadFile/:filepathOrIdpostPath parameters for identifying a file by either filepath or file ID
| Field | Type | Required | Description |
|---|---|---|---|
filepathOrId | string | No | File path with workspace rootname (case insensitive) or file ID for flexible file identification Example: /workspace-rootname/folder/file.ext |
HTTP headers for file upload requests
| Field | Type | Required | Description |
|---|---|---|---|
Authorization | string | No | Access token Example: Bearer <token> |
Content-Type | string | Yes | HTTP multipart form-data request content type Enum: Example: multipart/form-data |
content-length | number | Yes | File size in bytes Number subset: Max: 1073741824 Example: 1024000 |
x-fimidara-file-description | string | No | Resource description Example: This is a resource description. |
x-fimidara-file-mimetype | string | No | File MIME type Example: image/jpeg |
x-fimidara-file-encoding | string | No | File encoding Example: utf8 |
x-fimidara-file-size | number | No | File size in bytes Number subset: Max: 1073741824 Example: 1024000 |
x-fimidara-multipart-id | string | No | Client generated unique identifier for multipart uploads. It is used to identify the same multipart upload across multiple requests. Cannot be used with append mode. Example: upload-123e4567-e89b-12d3-a456-426614174000 |
x-fimidara-multipart-part | number | No | Part number of the multipart upload. -1 can be used to signify the end of a multipart upload. Number subset: Example: 1 |
x-fimidara-append | string | No | Whether to append data to the existing file instead of replacing it. If true, the new data will be appended to the end of the file. Cannot be used with multipart uploads (clientMultipartId must not be provided when append is true). Example: false |
x-fimidara-on-append-create-if-not-exists | string | No | Whether to create the file if it does not exist when append is true. Defaults to true. If false and the file does not exist, the operation will fail. Example: true |
File upload parameters including binary data
| Field | Type | Required | Description |
|---|---|---|---|
data | string |Node.js Readable |Browser ReadableStream | Yes | File binary Max bytes: 1.07 GB |
| Field | Type | Required | Description |
|---|---|---|---|
Content-Type | string | Yes | HTTP JSON response content type Example: application/json |
Content-Length | string | Yes | HTTP response content length in bytes Example: 1024 |
File resource with metadata and location information
Represents a user or system entity that performed an action (e.g., created or updated a resource)
| Field | Type | Required | Description |
|---|---|---|---|
Content-Type | string | Yes | HTTP JSON response content type Example: application/json |
Content-Length | string | Yes | HTTP response content length in bytes |