Skip to main content
POST
/
vault
/
{id}
/
upload
/
{objectId}
/
confirm
Confirm vault upload result
curl --request POST \
  --url https://api.case.dev/vault/{id}/upload/{objectId}/confirm \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "success": true,
  "sizeBytes": 2684354560,
  "etag": "<string>"
}
'
{
  "vaultId": "vault_123",
  "objectId": "obj_456",
  "status": "completed",
  "alreadyConfirmed": false
}

Authorizations

Authorization
string
header
required

API key starting with sk_case_

Path Parameters

id
string
required

Vault ID

objectId
string
required

Vault object ID

Body

application/json
success
enum<boolean>
required

Whether the upload succeeded

Available options:
true
sizeBytes
integer
required

Uploaded file size in bytes

Required range: 1 <= x <= 5368709120
etag
string

S3 ETag for the uploaded object (optional if client cannot access ETag header)

Response

Confirmation recorded

vaultId
string
objectId
string
status
enum<string>
Available options:
completed,
failed
alreadyConfirmed
boolean