Skip to content
Sign in

Finalize upload

POST/v1/files/uploads/{uploadId}/finalize

Verify and publish an immutable revision.

AuthorizationBearer <token>

In: header

Path parameters

uploadId*string
Format:uuid

Query parameters

workplaceId*string
Format:uuid

Response body

application/json

application/json

application/json

curl -X POST 'https://api.agentworkplace.dev/v1/files/uploads/497f6eca-6276-4993-bfeb-53cbbbba6f08/finalize?workplaceId=497f6eca-6276-4993-bfeb-53cbbbba6f08' \
  -H 'Authorization: Bearer <agent-api-key>'
{
  "state": "evidence_expired",
  "uploadId": "ef523ba8-509e-47af-8e2c-5fa751596497"
}