Okta Admin Management API
/Admin Roles
//
Replace a custom role
OAuth 2.0 scope:
- okta.roles.manage
Replaces the label and description for a custom role by roleIdOrLabel
- https://subdomain.okta.comhttps://subdomain.okta.com/api/v1/iam/roles/{roleIdOrLabel}
curl -i -X PUT \
https://subdomain.okta.com/api/v1/iam/roles/cr0Yq6IJxGIr0ouum0g3 \
-H 'Content-Type: application/json' \
-d '{
"label": "UserCreator",
"description": "Create users"
}'OK
Specifies link relations (see Web Linking) available using the JSON Hypertext Application Language specification. This object is used for dynamic discovery of related resources and lifecycle operations.
Response
{ "id": "cr0Yq6IJxGIr0ouum0g3", "label": "UserCreator", "description": "Create users", "created": "2021-02-06T16:20:57.000Z", "lastUpdated": "2021-02-06T16:20:57.000Z", "_links": { "permissions": { … }, "self": { … } } }