Clone the role
POSThttps://api.spectrocloud.com/v1/roles/:uid/clone
Clone the role
Request
Path Parameters
uid stringrequired
- application/json
Body
metadata
Responses
- 201
Created successfully
Response Headers
- application/json
- Schema
- Example (from schema)
Schema
uidstringrequired
{
"uid": "string"
}
- curl
- python
- go
- nodejs
- java
- CURL
curl -L -X POST 'https://api.spectrocloud.com/v1/roles/:uid/clone' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'ApiKey: <API_KEY_VALUE>' \
--data-raw '{
"metadata": {
"name": "string"
}
}'