Skip to content

Permission events

Explore the webhook events related to permission operations in Scalekit, including creation, updates, and deletions.

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


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

permission.created
{
"environment_id": "env_1234567890",
"id": "evt_1234567890",
"object": "Permission",
"occurred_at": "2024-01-15T10:30:00.123456789Z",
"spec_version": "1",
"type": "permission.created",
"data": {
"description": "Permission to manage data",
"id": "perm_1234567890",
"name": "data:manage"
}
}
FieldTypeDescription
idstringUnique identifier for the permission
namestringUnique name identifier for the permission
descriptionstringDescription of what the permission allows

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

permission.updated
{
"environment_id": "env_1234567890",
"id": "evt_2345678901",
"object": "Permission",
"occurred_at": "2024-01-15T10:35:00.123456789Z",
"spec_version": "1",
"type": "permission.updated",
"data": {
"description": "Updated permission to manage all data",
"id": "perm_1234567890",
"name": "data:manage"
}
}
FieldTypeDescription
idstringUnique identifier for the permission
namestringUnique name identifier for the permission
descriptionstringDescription of what the permission allows

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

permission.deleted
{
"environment_id": "env_1234567890",
"id": "evt_3456789012",
"object": "Permission",
"occurred_at": "2024-01-15T10:40:00.123456789Z",
"spec_version": "1",
"type": "permission.deleted",
"data": {
"description": "Updated permission to manage all data",
"id": "perm_1234567890",
"name": "data:manage"
}
}
FieldTypeDescription
idstringUnique identifier for the deleted permission
namestringUnique name identifier for the deleted permission
descriptionstringDescription of what the permission allowed