pub async fn orgs_slash_create_webhook(
configuration: &Configuration,
org: &str,
orgs_create_webhook_request: OrgsCreateWebhookRequest,
) -> Result<OrgHook, Error<OrgsSlashCreateWebhookError>>
Expand description
Create a hook that posts payloads in JSON format. You must be an organization owner to use this endpoint. OAuth app tokens and personal access tokens (classic) need admin:org_hook
scope. OAuth apps cannot list, view, or edit webhooks that they did not create and users cannot list, view, or edit webhooks that were created by OAuth apps.