Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.envless.cloud/llms.txt

Use this file to discover all available pages before exploring further.

When it fires

After UpdateRoleService succeeds. System roles cannot be updated.

Payload

{
    type: 'role.updated',
    data: {
        role: {
            id: string
            name: string
            description: string | null
            permissions: Array<string>
        }
        changes: Array<'name' | 'description' | 'permissions'>
    }
}

Example

{
    "type": "role.updated",
    "data": {
        "role": {
            "id": "0192a1b2-c3d4-7000-8000-0000000000b0",
            "name": "Read-only deployer",
            "description": "Can read variables and trigger deploys but not edit",
            "permissions": [
                "projects:read",
                "environments:read",
                "variables:read",
                "versions:read"
            ]
        },
        "changes": ["permissions"]
    }
}