Skip to main content
PATCH
/
vault
/
{id}
/
objects
/
{objectId}
Update vault object
curl --request PATCH \
  --url https://api.case.dev/vault/{id}/objects/{objectId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "filename": "deposition-smith-2024.pdf",
  "path": "/Discovery/Depositions"
}
'
{
  "id": "obj_abc123",
  "vaultId": "vault_def456",
  "filename": "deposition-smith-2024.pdf",
  "path": "/Discovery/Depositions",
  "contentType": "application/pdf",
  "sizeBytes": 2048576,
  "ingestionStatus": "completed",
  "metadata": {
    "path": "/Discovery/Depositions",
    "client": "Smith & Associates"
  },
  "updatedAt": "2024-01-15T10:30:00Z"
}

Authorizations

Authorization
string
header
required

API key starting with sk_case_

Path Parameters

id
string
required

Vault ID

objectId
string
required

Object ID to update

Body

application/json
filename
string

New filename for the document (affects display name and downloads)

path
string

Virtual folder path (e.g., '/Discovery/Depositions'). Stored in metadata.path for folder organization.

metadata
object

Additional metadata to merge with existing metadata

Response

Object updated successfully

id
string

Object ID

vaultId
string

Vault ID

filename
string

Updated filename

path
string | null

Virtual folder path from metadata

contentType
string

MIME type

sizeBytes
integer

File size in bytes

ingestionStatus
string

Processing status

metadata
object

Full metadata object

updatedAt
string<date-time>

Last update timestamp