POST /projects/{project_id}/storage/uploads/{upload_id}/commit
Console — Validate an upload (commit)
Galon console session: tenant from the session, project in the path verified as an active project of the tenant, project environment; admin role (a member receives 403 reserve_admin). Same control plane and same projection as the key-based route. No body. The server inspects the observed metadata: size and SHA-256 must be exactly those announced at begin. 201 when the object is created, 200 on replay. Hidden surface: 404 not_found until the Galon Object opt-in is enabled and a qualified data plane is injected. No bytes pass through the API; no internal reference or provider name is returned.
Console session only (signed-in console).
Parameters
| Name | In | Type | Description |
|---|---|---|---|
project_id | path | string · required | |
upload_id | path | string · required |
Responses
| Status | Description | Body |
|---|---|---|
201 | Object available | StorageUploadCommit |
200 | Idempotent replay | StorageUploadCommit |
400 | body_not_allowed | Error |
401 | unauthorized (session missing, expired or revoked) | Error |
403 | reserve_admin (member) | Error |
404 | project_not_found, not_found (surface closed or tenant not admitted), storage_object_not_found (unknown upload), not_found | Error |
412 | storage_precondition_failed (nothing received, size differs) | Error |
422 | project_id_invalid, storage_checksum_mismatch | Error |
503 | storage_operation_indeterminate, storage_response_lost: replay the commit | Error |
Examples
curl
curl -X POST "$GALON_API_BASE/projects/<project_id>/storage/uploads/<upload_id>/commit" \
-H "Authorization: Bearer $GALON_API_KEY"