const response = await fetch("https://algapsa.com/api/v1/roles", {
method: "POST",
headers: {
"X-API-Key": "$ALGA_API_KEY",
"Content-Type": "application/json",
},
body: JSON.stringify({
"role_name": "string",
"description": "string",
"permissions": [
"01HN2K7VRB9PQ3Y0000000000"
],
"copy_from_role_id": "01HN2K7VRB9PQ3Y0000000000",
"is_template": false
})
});
const data = await response.json();