Roles
Create a new role by cloning an existing role
Clone an existing role
post/api/v2/roles/{role_id}/clone
Request
- Base URLhttps://api.datadoghq.com
- URLhttps://api.datadoghq.com/api/v2/roles/{role_id}/clone
- Auth
- API key in header DD-API-KEY and API key in header DD-APPLICATION-KEY
- or OAuth 2Authorization code: /oauth2/v1/authorizeToken URL: /oauth2/v1/token scopes: user_access_manage
Path parameters
role_idstring required
The unique identifier of the role.
Request body
Example request
{
"data": {
"attributes": {
"name": "cloned-role"
},
"type": "roles"
}
}Response
OK
Example response
{
"data": {
"relationships": {
"permissions": {
"data": [
{
"type": "permissions"
}
]
}
},
"type": "roles"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.