GitHub · Example Payload

Github Code Of Conduct Api Webhook Branch Protection Rule Edited Example

CodePipelinesPlatformSoftware DevelopmentSource ControlT1

Github Code Of Conduct Api Webhook Branch Protection Rule Edited Example is an example object payload from GitHub, with 8 top-level fields. It illustrates the shape of data this provider's APIs accept or return.

Top-level fields

actionchangesenterpriseinstallationorganizationrepositoryrulesender

Example Payload

Raw ↑
{
  "action": "edited",
  "changes": {
    "admin_enforced": {
      "from": true
    },
    "authorized_actor_names": {
      "from": [
        {}
      ]
    },
    "authorized_actors_only": {
      "from": true
    },
    "authorized_dismissal_actors_only": {
      "from": true
    },
    "linear_history_requirement_enforcement_level": {
      "from": "everyone"
    },
    "required_status_checks": {
      "from": [
        {}
      ]
    },
    "required_status_checks_enforcement_level": {
      "from": "non_admins"
    }
  },
  "enterprise": "example_value",
  "installation": "example_value",
  "organization": "example_value",
  "repository": "example_value",
  "rule": {
    "admin_enforced": true,
    "allow_deletions_enforcement_level": "non_admins",
    "allow_force_pushes_enforcement_level": "off",
    "authorized_actor_names": [
      "octocat"
    ],
    "authorized_actors_only": true,
    "authorized_dismissal_actors_only": true,
    "create_protected": true,
    "created_at": "2026-04-17T12:00:00Z",
    "dismiss_stale_reviews_on_push": true,
    "id": 42
  },
  "sender": "example_value"
}