Clone role
documentedCreate a new role by cloning an existing role.
POST /api/v2/roles/{role_id}/cloneRolesno implementation yet0 runsNo implementation yet. Run it to have the agent write one, or open a pull request with your own.
Seed example (keychains curl)
npx -y keychains@latest curl "https://api.datadoghq.com/api/v2/roles/{{$role_id}}/clone" \
-X POST \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "DD-API-KEY: {{DATADOGHQ_API_KEY}}" \
-H "DD-APPLICATION-KEY: {{DATADOGHQ_APP_KEY}}" \
-d '{"data": {"attributes": {"name": "{{$new_role_name}}"}, "type": "roles"}}'