Skip to content
Scalekit Docs
Talk to an Engineer Dashboard

Role events

This page documents the webhook events related to role operations in Scalekit.


This webhook is triggered when a new role is created. The event type is role.created

role.created
{
"environment_id": "env_1234567890",
"id": "evt_1234567890",
"object": "Role",
"occurred_at": "2024-01-15T10:30:00.123456789Z",
"spec_version": "1",
"type": "role.created",
"data": {
"description": "Viewer role with read-only access",
"display_name": "Viewer",
"extends": "member",
"id": "role_1234567890",
"name": "viewer"
}
}
FieldTypeDescription
idstringUnique identifier for the role
namestringUnique name identifier for the role
display_namestringHuman-readable display name for the role
descriptionstringDescription of the role and its purpose
extendsstringName of the role that this role extends from

This webhook is triggered when a role is updated. The event type is role.updated

role.updated
{
"environment_id": "env_1234567890",
"id": "evt_2345678901",
"object": "Role",
"occurred_at": "2024-01-15T10:35:00.123456789Z",
"spec_version": "1",
"type": "role.updated",
"data": {
"description": "Updated viewer role with limited permissions",
"display_name": "Viewer",
"extends": "member",
"id": "role_1234567890",
"name": "viewer"
}
}
FieldTypeDescription
idstringUnique identifier for the role
namestringUnique name identifier for the role
display_namestringHuman-readable display name for the role
descriptionstringDescription of the role and its purpose
extendsstringName of the role that this role extends from

This webhook is triggered when a role is deleted. The event type is role.deleted

role.deleted
{
"environment_id": "env_1234567890",
"id": "evt_3456789012",
"object": "Role",
"occurred_at": "2024-01-15T10:40:00.123456789Z",
"spec_version": "1",
"type": "role.deleted",
"data": {
"description": "Updated viewer role with limited permissions",
"display_name": "Viewer",
"extends": "member",
"id": "role_1234567890",
"name": "viewer"
}
}
FieldTypeDescription
idstringUnique identifier for the deleted role
namestringUnique name identifier for the deleted role
display_namestringHuman-readable display name for the deleted role
descriptionstringDescription of the role that was deleted
extendsstringName of the role that this role extends from