Upload content chunk
POST /v1/package/content/{id}
Uploads an indexed chunk of data for package content. The body of the request should contain the binary data of the chunk being uploaded.
Source: Robopack public API v1 OpenAPI definition · OpenAPI 3.0.1 · Snapshot: 2026-10-01. Download this snapshot.
Servers
https://api.robopack.com/
Authentication
| Scheme | Type | Location | Name | Description |
|---|---|---|---|---|
| API key | apiKey | header | X-API-Key | Robopack API key generated for account |
Send your API key in the X-API-Key header. Examples read it from ROBOPACK_API_KEY.
Parameters
| Name | In | Required | Type | Nullable | Constraints / default | Description |
|---|---|---|---|---|---|---|
id | path | Yes | string (uuid) | Not declared | — | ID of the package the content is being uploaded for. |
index | query | Yes | integer (int32) | Not declared | — | Index of the file being uploaded. |
size | query | Yes | integer (int32) | Not declared | — | Size of the chunk being uploaded. |
offset | query | No | integer (int64) | Not declared | default: 0 | Offset in file to where the chunk starts. |
chunk | query | No | integer (int32) | Not declared | default: 0 | Index of the chunk in the file being uploaded. |
Parameter names and capitalization follow the source definition. Required status follows the parameter's explicit required flag; optional does not imply a server default.
Request body
The operation description specifies a binary chunk body. Its media type and request-body schema are not declared in this snapshot.
Responses
200 response
OK
No response-body schema or media type is declared for this status.
Only response statuses declared in the snapshot are listed. The source does not define a complete error contract.
curl example
The operation description requires binary chunk data in the request body, but this snapshot does not declare a request-body schema or media type. Prepare the chunk, its byte size, file index, and offset before sending this request.
Complete operation definition
{
"description": "Uploads an indexed chunk of data for package content. The body of the request should contain the binary data of the chunk being uploaded.",
"parameters": [
{
"description": "ID of the package the content is being uploaded for.",
"in": "path",
"name": "id",
"required": true,
"schema": {
"format": "uuid",
"type": "string"
}
},
{
"description": "Index of the file being uploaded.",
"in": "query",
"name": "index",
"required": true,
"schema": {
"format": "int32",
"type": "integer"
}
},
{
"description": "Size of the chunk being uploaded.",
"in": "query",
"name": "size",
"required": true,
"schema": {
"format": "int32",
"type": "integer"
}
},
{
"description": "Offset in file to where the chunk starts.",
"in": "query",
"name": "offset",
"schema": {
"default": 0,
"format": "int64",
"type": "integer"
}
},
{
"description": "Index of the chunk in the file being uploaded.",
"in": "query",
"name": "chunk",
"schema": {
"default": 0,
"format": "int32",
"type": "integer"
}
}
],
"responses": {
"200": {
"description": "OK"
}
},
"summary": "Upload content chunk.",
"tags": [
"Package content"
]
}