Permission events
This page documents the webhook events related to permission operations in Scalekit.
Permission events
Section titled “Permission events”permission.created
Section titled “permission.created”This webhook is triggered when a new permission is created. The event type is 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" }}| Field | Type | Description |
|---|---|---|
id | string | Unique identifier for the permission |
name | string | Unique name identifier for the permission |
description | string | Description of what the permission allows |
permission.updated
Section titled “permission.updated”This webhook is triggered when a permission is updated. The event type is 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" }}| Field | Type | Description |
|---|---|---|
id | string | Unique identifier for the permission |
name | string | Unique name identifier for the permission |
description | string | Description of what the permission allows |
permission.deleted
Section titled “permission.deleted”This webhook is triggered when a permission is deleted. The event type is 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" }}| Field | Type | Description |
|---|---|---|
id | string | Unique identifier for the deleted permission |
name | string | Unique name identifier for the deleted permission |
description | string | Description of what the permission allowed |