{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "#/components/schemas/webhook-member-edited", "title": "member edited event", "type": "object", "properties": { "action": { "type": "string", "enum": [ "edited" ] }, "changes": { "description": "The changes to the collaborator permissions", "type": "object", "properties": { "old_permission": { "type": "object", "properties": { "from": { "description": "The previous permissions of the collaborator if the action was edited.", "type": "string" } }, "required": [ "from" ] }, "permission": { "type": "object", "properties": { "from": { "type": "string", "nullable": true }, "to": { "type": "string", "nullable": true } } } } }, "enterprise": { "$ref": "#/components/schemas/enterprise-webhooks" }, "installation": { "$ref": "#/components/schemas/simple-installation" }, "member": { "$ref": "#/components/schemas/webhooks_user" }, "organization": { "$ref": "#/components/schemas/organization-simple-webhooks" }, "repository": { "$ref": "#/components/schemas/repository-webhooks" }, "sender": { "$ref": "#/components/schemas/simple-user-webhooks" } }, "required": [ "action", "changes", "member", "repository", "sender" ] }