Skip to content

Replace a resource set

Request

OAuth 2.0 scope:
  • okta.roles.manage

Replaces the label and description of a resource set. See Supported resources.

Path
resourceSetIdOrLabelstringrequired

id or label of the resource set

Example:iamoJDFKaJxGIr0oamd9g
Bodyapplication/jsonrequired
descriptionstring

Description of the resource set

labelstring

Unique label for the resource set

curl -i -X PUT \
  https://subdomain.okta.com/api/v1/iam/resource-sets/iamoJDFKaJxGIr0oamd9g \
  -H 'Content-Type: application/json' \
  -d '{
    "label": "SF-IT-People",
    "description": "People in the IT department of San Francisco"
  }'

Responses

OK

Bodyapplication/json
createdstring, (date-time)read-only

Timestamp when the role was created

descriptionstring

Description of the resource set

idstringread-only

Unique ID for the resource set object

labelstring

Unique label for the resource set

lastUpdatedstring, (date-time)read-only

Timestamp when the role was last updated

Response
{ "id": "iamoJDFKaJxGIr0oamd9g", "label": "SF-IT-People", "description": "People in the IT department of San Francisco", "created": "2021-02-06T16:20:57.000Z", "lastUpdated": "2021-02-06T16:20:57.000Z", "_links": { "self": { … }, "resources": { … }, "bindings": { … } } }