Get a presigned URL to upload a binary config file into the DRAFT revision
POST/api/v1/get_config/:configIdentifier/config/files/upload-url
Creates (or replaces) a binary file in the current DRAFT revision and returns a presigned PUT URL. Upload the bytes to that URL; the server finalizes the file automatically once object storage reports the upload (size and SHA-256 are recorded). Set applyAfterUpload: true to apply the revision automatically once the upload is finalized, or leave it false to stage several files and apply them together later via revisions/apply. Optionally associate the file with a group via group.
Request
Path Parameters
Config project ID or name, or a device ID (resolved to its config:
- application/json
Body
required
File name (used as the delivery item key suffix and storage object name)
Optional config group to associate this file with. A group may hold multiple files.
Content type of the file (defaults to application/octet-stream).
Default value: false
When true, the DRAFT revision is applied automatically once this file finishes uploading (the client must call the complete endpoint after the upload). Set false to stage several files and apply them together later via the apply endpoint.
Responses
- 200
- application/json
- Schema
- Example (from schema)
Schema
ID of the config file row created/updated in the draft revision
ID of the backing file_upload row
Presigned PUT URL to upload the file bytes directly to object storage
Object storage key the file is uploaded to
{
"configFileId": 0,
"fileUploadId": 0,
"url": "string",
"objectKey": "string"
}