curl -sS -X POST "$BMA_BASE_URL/v1/vaults/vlt_zppdgwodanyrnl7ee7tsokkpta" \
-H "x-api-key: $BMA_API_KEY" \
-H "bma-workspace-id: $BMA_PROJECT_ID" \
-H "content-type: application/json" \
-d '{
"display_name": "Production MCP servers (EU)",
"metadata": {
"region": "eu-west-1",
"team": null
}
}'{
"type": "vault",
"id": "vlt_zppdgwodanyrnl7ee7tsokkpta",
"display_name": "Production MCP servers (EU)",
"metadata": {
"region": "eu-west-1"
},
"created_at": "2026-11-20T08:14:03.512947Z",
"updated_at": "2026-11-21T10:02:47.118305Z",
"archived_at": null
}{
"type": "error",
"error": {
"type": "invalid_request_error",
"message": "<string>",
"code": "<string>",
"bma_error_code": "<string>"
},
"request_id": "<string>"
}{
"type": "error",
"error": {
"type": "invalid_request_error",
"message": "<string>",
"code": "<string>",
"bma_error_code": "<string>"
},
"request_id": "<string>"
}Update a vault
Changes the display name and/or the metadata of an active vault and returns it with a new updated_at. metadata is a patch: a key set to a string is added or replaced, a key set to null is removed, and keys left out are kept. At least one of display_name and metadata must be given: a body that changes nothing ({}, or both null) is a 400. An archived vault cannot be updated (400). Invalid fields are a 400 invalid_request_error without an error.code; an unknown vault, or one in another workspace, is a 404 not_found_error without an error.code. Sending the same update again gives the same vault.
Authorization: Organization API key (x-api-key: bma_org_v1_…), personal access token (Authorization: Bearer bma_pat_v1_…), signed-in user token or dashboard session; user credentials name the organization with bma-organization-id. The request acts in one workspace: the one named by bma-workspace-id, which may be left out when the credential resolves to a single workspace (the workspace an API key is bound to, or a member’s only workspace). The caller’s workspace role must be admin or developer (organization owners and admins act as workspace admins in every workspace of their organization); operators and viewers are refused, as are machine, executor and session credentials.
Limits:
- Request body: at most 256 KiB (262,144 bytes).
display_name: 1-255 characters on a single line.metadata: at most 16 pairs after the patch; keys 1-64 characters, values at most 512 characters.- Rate limit: one request of the organization’s write budget (Rate limits).
Errors (besides the common errors (401 authentication, 429 rate_limited, 500)):
| Status | error.type | error.code | Cause | Fix |
|---|---|---|---|---|
| 400 | invalid_request_error | organization_required | A personal access token or user token names no organization with bma-organization-id. | Correct the request as the message describes and send it again; the same request will keep failing. |
| 400 | invalid_request_error | project_required | The credential can use several workspaces and the request names none with bma-workspace-id. | Correct the request as the message describes and send it again; the same request will keep failing. |
| 400 | invalid_request_error | workspace_id_conflict | bma-workspace-id and anthropic-workspace-id name different workspaces. | Correct the request as the message describes and send it again; the same request will keep failing. |
| 403 | permission_error | permission_denied | The caller’s workspace role is operator or viewer, or the credential is neither an organization API key nor a user credential. | Use a credential with the required role or access; retrying with the same credential will not help. |
| 413 | request_too_large | request_too_large | The request body is larger than 256 KiB. | Reduce the size of the request body or upload in smaller parts. |
curl -sS -X POST "$BMA_BASE_URL/v1/vaults/vlt_zppdgwodanyrnl7ee7tsokkpta" \
-H "x-api-key: $BMA_API_KEY" \
-H "bma-workspace-id: $BMA_PROJECT_ID" \
-H "content-type: application/json" \
-d '{
"display_name": "Production MCP servers (EU)",
"metadata": {
"region": "eu-west-1",
"team": null
}
}'{
"type": "vault",
"id": "vlt_zppdgwodanyrnl7ee7tsokkpta",
"display_name": "Production MCP servers (EU)",
"metadata": {
"region": "eu-west-1"
},
"created_at": "2026-11-20T08:14:03.512947Z",
"updated_at": "2026-11-21T10:02:47.118305Z",
"archived_at": null
}{
"type": "error",
"error": {
"type": "invalid_request_error",
"message": "<string>",
"code": "<string>",
"bma_error_code": "<string>"
},
"request_id": "<string>"
}{
"type": "error",
"error": {
"type": "invalid_request_error",
"message": "<string>",
"code": "<string>",
"bma_error_code": "<string>"
},
"request_id": "<string>"
}Headers
Path Parameters
Body
Response
Success.
A vault of a workspace, a named collection of credentials that sessions authenticate with.