Skip to main content
PUT
Set what agents may do with an item
Takes a managing key (oc_key_...) or a signed-in session. See How it works for how permissions are applied. Replaces the item’s permissions on its vault: the item’s own level, and a level for any tool that differs. item null with no tools clears them.
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 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.

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.