curl --request PUT \
--url https://api.opal.dev/v1/resources \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"resources": [
{
"resource_id": "f454d283-ca87-4a8a-bdbb-df212eca5353",
"name": "my-mongo-db",
"description": "This resource represents AWS IAM role \"SupportUser\".",
"admin_owner_id": "7c86c85d-0651-43e2-a748-d69d658418e8",
"max_duration": 120,
"require_manager_approval": false,
"require_support_ticket": false
},
{
"resource_id": "99d0b81d-14be-4cf6-bd27-348b4af1d11b",
"name": "Admin Role",
"description": "This resource represents GCP project \"app-demo\".",
"admin_owner_id": "4220bc12-ab8a-4b5d-be7b-f6bbcf9159f3",
"max_duration": 360,
"require_manager_approval": false,
"require_support_ticket": true
}
]
}
'{
"resources": [
{
"resource_id": "f454d283-ca87-4a8a-bdbb-df212eca5353",
"name": "my-mongo-db",
"description": "This resource represents AWS IAM role \"SupportUser\".",
"admin_owner_id": "7c86c85d-0651-43e2-a748-d69d658418e8",
"max_duration": 120,
"require_manager_approval": false,
"require_support_ticket": false
},
{
"resource_id": "99d0b81d-14be-4cf6-bd27-348b4af1d11b",
"name": "Admin Role",
"description": "This resource represents GCP project \"app-demo\".",
"admin_owner_id": "4220bc12-ab8a-4b5d-be7b-f6bbcf9159f3",
"max_duration": 360,
"require_manager_approval": false,
"require_support_ticket": true
}
]
}Bulk updates a list of resources.
curl --request PUT \
--url https://api.opal.dev/v1/resources \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"resources": [
{
"resource_id": "f454d283-ca87-4a8a-bdbb-df212eca5353",
"name": "my-mongo-db",
"description": "This resource represents AWS IAM role \"SupportUser\".",
"admin_owner_id": "7c86c85d-0651-43e2-a748-d69d658418e8",
"max_duration": 120,
"require_manager_approval": false,
"require_support_ticket": false
},
{
"resource_id": "99d0b81d-14be-4cf6-bd27-348b4af1d11b",
"name": "Admin Role",
"description": "This resource represents GCP project \"app-demo\".",
"admin_owner_id": "4220bc12-ab8a-4b5d-be7b-f6bbcf9159f3",
"max_duration": 360,
"require_manager_approval": false,
"require_support_ticket": true
}
]
}
'{
"resources": [
{
"resource_id": "f454d283-ca87-4a8a-bdbb-df212eca5353",
"name": "my-mongo-db",
"description": "This resource represents AWS IAM role \"SupportUser\".",
"admin_owner_id": "7c86c85d-0651-43e2-a748-d69d658418e8",
"max_duration": 120,
"require_manager_approval": false,
"require_support_ticket": false
},
{
"resource_id": "99d0b81d-14be-4cf6-bd27-348b4af1d11b",
"name": "Admin Role",
"description": "This resource represents GCP project \"app-demo\".",
"admin_owner_id": "4220bc12-ab8a-4b5d-be7b-f6bbcf9159f3",
"max_duration": 360,
"require_manager_approval": false,
"require_support_ticket": true
}
]
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Resources to be updated
A list of resources with information to update.
Show child attributes
The resulting updated resource infos.
A list of resources with information to update.
Show child attributes
Was this page helpful?