bundles

POST /bundles/{bundle_id}/resources

Adds a resource to a bundle.

Request

  • Base URL
    https://api.opal.dev/v1
  • Auth
    HTTP bearer

Path parameters

bundle_idstring uuid required

The ID of the bundle.

Request body

resource_idstring uuid required

The ID of the resource to add.

access_level_remote_idstring

The remote ID of the access level to grant to this user. Required if the resource being added requires an access level. If omitted, the default access level remote ID value (empty string) is used.

access_level_namestring

The name of the access level to grant to this user. If omitted, the default access level name value (empty string) is used.

Example request

{
  "resource_id": "72e75a6f-7183-48c5-94ff-6013f213314b",
  "access_level_remote_id": "arn:aws:iam::590304332660:role/AdministratorAccess",
  "access_level_name": "AdministratorAccess"
}

Response

Resource was successfully added to the bundle.

bundle_idstring uuid

The ID of the bundle containing the resource.

resource_idstring uuid

The ID of the resource within a bundle.

access_level_namestring

The access level of the resource within a bundle.

access_level_remote_idstring

The remote ID of the access level of the resource within a bundle.

Example response

{
  "bundle_id": "a381e7a3-e5e0-4c48-b1d6-4ccb4c191bc1",
  "resource_id": "a381e7a3-e5e0-4c48-b1d6-4ccb4c191bc1",
  "access_level_name": "Read",
  "access_level_remote_id": "arn:aws:iam::490306337630:role/SupportUser"
}

Changes

No recorded changes to this operation across all 43 revisions of this API.