Skip to main content
PUT
/
bundles
/
{bundle_id}
cURL
curl --request PUT \
  --url https://api.opal.dev/v1/bundles/{bundle_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "Bundle 1",
  "description": "Description of bundle 1",
  "admin_owner_id": "4aed3e8a-727b-4d72-8010-3b8710c50bec"
}'
{
  "bundle_id": "a381e7a3-e5e0-4c48-b1d6-4ccb4c191bc1",
  "name": "Bundle 1",
  "description": "Description of bundle 1",
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "admin_owner_id": "4aed3e8a-727b-4d72-8010-3b8710c50bec",
  "total_num_items": 15,
  "total_num_resources": 10,
  "total_num_groups": 5
}

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 to be updated.

Body

application/json
name
string

The name of the bundle.

Example:

"Bundle 1"

description
string

The description of the bundle.

Example:

"Description of bundle 1"

admin_owner_id
string<uuid>

The ID of the owner of the bundle.

Example:

"4aed3e8a-727b-4d72-8010-3b8710c50bec"

Response

The bundle was successfully updated.

bundle_id
string<uuid>

The ID of the bundle.

Example:

"a381e7a3-e5e0-4c48-b1d6-4ccb4c191bc1"

name
string

The name of the bundle.

Example:

"Bundle 1"

description
string

The description of the bundle.

Example:

"Description of bundle 1"

created_at
string<date-time>

The creation timestamp of the bundle, in ISO 8601 format

updated_at
string<date-time>

The last updated timestamp of the bundle, in ISO 8601 format

admin_owner_id
string<uuid>

The ID of the owner of the bundle.

Example:

"4aed3e8a-727b-4d72-8010-3b8710c50bec"

total_num_items
integer

The total number of items in the bundle.

Example:

15

total_num_resources
integer

The total number of resources in the bundle.

Example:

10

total_num_groups
integer

The total number of groups in the bundle.

Example:

5