const response = await fetch("https://algapsa.com/api/v1/roles/{id}/clone", {
method: "POST",
headers: {
"X-API-Key": "$ALGA_API_KEY",
"Content-Type": "application/json",
},
body: JSON.stringify({
"new_role_name": "string",
"new_description": "string",
"copy_permissions": false,
"copy_user_assignments": false
})
});
const data = await response.json();