Skip to main content
PUT
/
bundles
/
{bundle_id}
/
visibility
cURL
curl --request PUT \
  --url https://api.opal.dev/v1/bundles/{bundle_id}/visibility \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "visibility": "LIMITED",
  "visibility_group_ids": [
    "7870617d-e72a-47f5-a84c-693817ab4567",
    "1520617d-e72a-47f5-a84c-693817ab48ad2"
  ]
}'

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

bundle_id
string<uuid>
required

The ID of the bundle.

Body

application/json

The visibility details of the bundle. Setting to LIMITED visibility with no visibility groups will make bundle only visible to admins and users with access.

visibility
enum<string>
required

The visibility level of the entity.

Available options:
GLOBAL,
LIMITED
Example:

"GLOBAL"

visibility_group_ids
string<uuid>[]

Response

200

The visibility details of the bundle were successfully set.