POST
/api/v2/roles
curl \
--request POST 'https://api.plannrcrm.com/api/v2/roles' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--header "X-PLANNR-ACCOUNT-UUID: {YOUR_PLANNR_ACCOUNT_UUID}" \
--data '{"name":"Admin Role","description":"Full administrative access","permissions":["network:read","firm:read","firm:update"]}'
Request examples
# Headers
X-PLANNR-ACCOUNT-UUID: {YOUR_PLANNR_ACCOUNT_UUID}
# Payload
{
"name": "Admin Role",
"description": "Full administrative access",
"permissions": [
"network:read",
"firm:read",
"firm:update"
]
}
Response examples (401)
{
"message": "Unauthenticated."
}