Skip to main content
PUT
/
resources
cURL
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
    }
  ]
}

Authorizations

Authorization
string
header
required

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

Body

application/json

Resources to be updated

resources
object[]
required

A list of resources with information to update.

Response

200 - application/json

The resulting updated resource infos.

resources
object[]
required

A list of resources with information to update.