Skip to main content
PUT
Set what a vault's agents may do with a shared item
Takes a managing key (oc_key_...) or a signed-in session. See Editions for what OneCLI Cloud adds. Replaces this vault’s permissions for an item shared with it: the item’s own level, and a level for any tool that differs. The level cannot be null here: send “never” to stop this vault using the item.
Availability: OneCLI Cloud only. A self-hosted deployment does not serve this endpoint and answers 404 with error.code: "not_found".

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
itemId
string
required

The shared item's id.

Required string length: 1 - 64

Body

application/json
item
enum<string> | null
required
Available options:
allow,
ask,
never,
null
tools
object[]
Maximum array length: 500

Response

The item's permissions on this vault.

item
enum<string> | null
required

allow: always allowed. ask: needs approval. never: refused. null: not set on this vault yet (until the move to vaults, an agent's own access still decides).

Available options:
allow,
ask,
never,
null
tools
object[]
required

One row per tool of the app. Empty for a key.