Skip to content
Sign in

Create upload

POST/v1/files/uploads

Reserve a bounded file upload.

AuthorizationBearer <token>

In: header

Request body

application/json

Response body

application/json

application/json

application/json

curl -X POST 'https://api.agentworkplace.dev/v1/files/uploads' \
  -H 'Authorization: Bearer <agent-api-key>' \
  -H 'Content-Type: application/json' \
  -d '{
  "workplaceId": "4989ce91-52f9-461b-87fa-af1f28004fc0",
  "operationId": "3051932a-fdd2-48fa-b330-7e7d41535969",
  "target": {
    "name": "string"
  },
  "byteLength": 0,
  "contentType": "string",
  "sha256": "string",
  "contentMd5": "string",
  "multipartParts": [
    {
      "partNumber": 1,
      "byteLength": 0,
      "contentMd5": "string"
    }
  ]
}'
{
  "state": "evidence_expired",
  "uploadId": "ef523ba8-509e-47af-8e2c-5fa751596497"
}