Skip to main content
PATCH
Rename a shared item, give a shared key a new value, or open it to all vaults
Takes a signed-in session only. A managing key is refused with 403. See Editions for what OneCLI Cloud adds. One change per call. A new value reaches every vault the key is shared with. Opening an item to all vaults gives each vault that has no permission for it the item’s default, vault by vault: if the call fails part way, send it again. For an admin or the owner, signed in and not using a key.
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 item's id.

Required string length: 1 - 64

Body

application/json

Exactly one of name (rename), value (a key's new value, for every vault that has it) or allVaults.

name
string
required
Required string length: 1 - 255

Response

The item.

createdAt
string
required

ISO 8601.

hosts
string[]
required

The hosts the gateway uses this item for.

id
string
required
kind
enum<string>
required
Available options:
app,
api_key,
llm_key
name
string
required
service
string | null
required

The app or LLM provider, for example github or anthropic. null for a plain API key.

sharedWith
object
required
state
enum<string>
required

ready, reauth_required (the app must be signed in again) or disconnected.

Available options:
ready,
reauth_required,
disconnected