You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -928,7 +933,12 @@ public struct Client: APIProtocol {
928
933
}
929
934
/// Create an organization webhook
930
935
///
931
-
/// Here's how you can create a hook that posts payloads in JSON format:
936
+
/// Create a hook that posts payloads in JSON format.
937
+
///
938
+
/// You must be an organization owner to use this endpoint.
939
+
///
940
+
/// OAuth app tokens and personal access tokens (classic) need `admin:org_hook` scope. OAuth apps cannot list, view, or
941
+
/// edit webhooks that they did not create and users cannot list, view, or edit webhooks that were created by OAuth apps.
932
942
///
933
943
/// - Remark: HTTP `POST /orgs/{org}/hooks`.
934
944
/// - Remark: Generated from `#/paths//orgs/{org}/hooks/post(orgs/create-webhook)`.
@@ -1053,7 +1063,13 @@ public struct Client: APIProtocol {
1053
1063
}
1054
1064
/// Get an organization webhook
1055
1065
///
1056
-
/// Returns a webhook configured in an organization. To get only the webhook `config` properties, see "[Get a webhook configuration for an organization](/rest/orgs/webhooks#get-a-webhook-configuration-for-an-organization)."
1066
+
/// Returns a webhook configured in an organization. To get only the webhook
1067
+
/// `config` properties, see "[Get a webhook configuration for an organization](/rest/orgs/webhooks#get-a-webhook-configuration-for-an-organization).
1068
+
///
1069
+
/// You must be an organization owner to use this endpoint.
1070
+
///
1071
+
/// OAuth app tokens and personal access tokens (classic) need `admin:org_hook` scope. OAuth apps cannot list, view, or edit
1072
+
/// webhooks that they did not create and users cannot list, view, or edit webhooks that were created by OAuth apps.
/// - Remark: Generated from `#/paths//orgs/{org}/hooks/{hook_id}/get(orgs/get-webhook)`.
@@ -1140,7 +1156,16 @@ public struct Client: APIProtocol {
1140
1156
}
1141
1157
/// Update an organization webhook
1142
1158
///
1143
-
/// Updates a webhook configured in an organization. When you update a webhook, the `secret` will be overwritten. If you previously had a `secret` set, you must provide the same `secret` or set a new `secret` or the secret will be removed. If you are only updating individual webhook `config` properties, use "[Update a webhook configuration for an organization](/rest/orgs/webhooks#update-a-webhook-configuration-for-an-organization)."
1159
+
/// Updates a webhook configured in an organization. When you update a webhook,
1160
+
/// the `secret` will be overwritten. If you previously had a `secret` set, you must
1161
+
/// provide the same `secret` or set a new `secret` or the secret will be removed. If
1162
+
/// you are only updating individual webhook `config` properties, use "[Update a webhook
1163
+
/// configuration for an organization](/rest/orgs/webhooks#update-a-webhook-configuration-for-an-organization)".
1164
+
///
1165
+
/// You must be an organization owner to use this endpoint.
1166
+
///
1167
+
/// OAuth app tokens and personal access tokens (classic) need `admin:org_hook` scope. OAuth apps cannot list, view, or edit
1168
+
/// webhooks that they did not create and users cannot list, view, or edit webhooks that were created by OAuth apps.
@@ -1327,7 +1357,10 @@ public struct Client: APIProtocol {
1327
1357
///
1328
1358
/// Returns the webhook configuration for an organization. To get more information about the webhook, including the `active` state and `events`, use "[Get an organization webhook ](/rest/orgs/webhooks#get-an-organization-webhook)."
1329
1359
///
1330
-
/// OAuth app tokens and personal access tokens (classic) need the `admin:org_hook` scope to use this endpoint.
1360
+
/// You must be an organization owner to use this endpoint.
1361
+
///
1362
+
/// OAuth app tokens and personal access tokens (classic) need `admin:org_hook` scope. OAuth apps cannot list, view, or edit
1363
+
/// webhooks that they did not create and users cannot list, view, or edit webhooks that were created by OAuth apps.
/// - Remark: Generated from `#/paths//orgs/{org}/hooks/{hook_id}/config/get(orgs/get-webhook-config-for-org)`.
@@ -1394,7 +1427,10 @@ public struct Client: APIProtocol {
1394
1427
///
1395
1428
/// Updates the webhook configuration for an organization. To update more information about the webhook, including the `active` state and `events`, use "[Update an organization webhook ](/rest/orgs/webhooks#update-an-organization-webhook)."
1396
1429
///
1397
-
/// OAuth app tokens and personal access tokens (classic) need the `admin:org_hook` scope to use this endpoint.
1430
+
/// You must be an organization owner to use this endpoint.
1431
+
///
1432
+
/// OAuth app tokens and personal access tokens (classic) need `admin:org_hook` scope. OAuth apps cannot list, view, or edit
1433
+
/// webhooks that they did not create and users cannot list, view, or edit webhooks that were created by OAuth apps.
0 commit comments