Skip to main content
PUT
Replace who a vault is shared with
Takes a managing key (oc_key_...) or a signed-in session. See Editions for what OneCLI Cloud adds. Replaces the whole list. A person must be an active member of this organization, and a group must be this organization’s. A personal vault cannot be shared.
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

Body

application/json
groups
object[]
required
Maximum array length: 1000
people
object[]
required
Maximum array length: 1000

Response

The list as it is now.

canManage
boolean
required

Whether you may change this list.

groups
object[]
required
people
object[]
required