Updates the specified role
PUThttps://api.spectrocloud.com/v1/roles/:uid
Updates the specified role
Request
Path Parameters
uid stringrequired
- application/json
Body
metadata
object
spec
status
Responses
- 204
The resource was updated successfully
- curl
- python
- go
- nodejs
- java
- CURL
curl -L -X PUT 'https://api.spectrocloud.com/v1/roles/:uid' \
-H 'Content-Type: application/json' \
-H 'ApiKey: <API_KEY_VALUE>' \
-d '{
"metadata": {
"annotations": {},
"creationTimestamp": "2024-07-29T15:51:28.071Z",
"deletionTimestamp": "2024-07-29T15:51:28.071Z",
"labels": {},
"lastModifiedTimestamp": "2024-07-29T15:51:28.071Z",
"name": "string",
"uid": "string"
},
"spec": {
"permissions": [
"string"
],
"scope": "system",
"type": "system"
},
"status": {
"isEnabled": true
}
}'