Skip to main content
PATCH
Rename a vault
Takes a managing key (oc_key_...) or a signed-in session. See How it works for what a vault is. Renames a vault you can use. Two vaults may have the same name. Their slugs always differ: when the name’s slug is taken, the vault’s slug gets a random tail.
Availability: OneCLI Cloud and self-hosted.

Authorizations

Authorization
string
header
required

A managing key (oc_key_...), an older API key (oc_...), or a signed-in session.

Path Parameters

id
string
required

The vault's id.

Required string length: 1 - 64

Body

application/json
name
string
required
Required string length: 2 - 50
Pattern: [a-z0-9]/i

Response

The renamed vault.

agentCount
integer
required
createdAt
string
required

ISO 8601.

id
string
required
itemCount
integer
required
lastUsedAt
string | null
required

ISO 8601. The newest use of any item in the vault that is not deleted. null: never used.

memberCount
integer
required

How many people can use the vault, counting past the 5 listed.

members
object[]
required

The first few people who can use the vault, oldest access first: the people it is shared with and the members of groups it is shared with. At most 5. A personal vault lists its person only.

name
string
required
personal
boolean
required

Whether the vault is your personal vault: only you and your agents use it. It cannot be renamed, deleted or shared, and it goes when you leave the organization. Nobody sees another person's personal vault.

slug
string | null
required