diff --git a/lib/rest/static/decorated/api.github.com.json b/lib/rest/static/decorated/api.github.com.json index 12b7fd517c..002ab43c04 100644 --- a/lib/rest/static/decorated/api.github.com.json +++ b/lib/rest/static/decorated/api.github.com.json @@ -390,6 +390,229 @@ } ] }, + { + "verb": "get", + "requestPath": "/app/hook/deliveries", + "serverUrl": "https://api.github.com", + "parameters": [ + { + "name": "per_page", + "description": "Results per page (max 100).", + "in": "query", + "schema": { + "type": "integer", + "default": 30 + }, + "descriptionHTML": "
Results per page (max 100).
" + }, + { + "name": "cursor", + "description": "Used for pagination: the starting delivery from which the page of deliveries is fetched. Refer to the `link` header for the next and previous page cursors.", + "in": "query", + "required": false, + "schema": { + "type": "string" + }, + "descriptionHTML": "Used for pagination: the starting delivery from which the page of deliveries is fetched. Refer to the link header for the next and previous page cursors.
curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n https://api.github.com/app/hook/deliveries"
+ },
+ {
+ "lang": "JavaScript",
+ "source": "await octokit.request('GET /app/hook/deliveries')",
+ "html": "await octokit.request('GET /app/hook/deliveries')\n"
+ }
+ ],
+ "summary": "List deliveries for an app webhook",
+ "description": "Returns a list of webhook deliveries for the webhook configured for a GitHub App.\n\nYou must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint.",
+ "tags": [
+ "apps"
+ ],
+ "operationId": "apps/list-webhook-deliveries",
+ "externalDocs": {
+ "description": "API method documentation",
+ "url": "https://docs.github.com/rest/reference/apps#list-deliveries-for-an-app-webhook"
+ },
+ "x-github": {
+ "githubCloudOnly": false,
+ "enabledForGitHubApps": false,
+ "previews": [],
+ "category": "apps",
+ "subcategory": "webhooks"
+ },
+ "slug": "list-deliveries-for-an-app-webhook",
+ "category": "apps",
+ "categoryLabel": "Apps",
+ "subcategory": "webhooks",
+ "subcategoryLabel": "Webhooks",
+ "notes": [],
+ "bodyParameters": [],
+ "descriptionHTML": "Returns a list of webhook deliveries for the webhook configured for a GitHub App.
\nYou must use a JWT to access this endpoint.
", + "responses": [ + { + "httpStatusCode": "200", + "httpStatusMessage": "OK", + "description": "Response", + "payload": "[\n {\n \"id\": 12345678,\n \"guid\": \"0b989ba4-242f-11e5-81e1-c7b6966d2516\",\n \"delivered_at\": \"2019-06-03T00:57:16Z\",\n \"redelivery\": false,\n \"duration\": 0.27,\n \"status\": \"OK\",\n \"status_code\": 200,\n \"event\": \"issues\",\n \"action\": \"opened\",\n \"installation_id\": 123,\n \"repository_id\": 456\n },\n {\n \"id\": 123456789,\n \"guid\": \"0b989ba4-242f-11e5-81e1-c7b6966d2516\",\n \"delivered_at\": \"2019-06-04T00:57:16Z\",\n \"redelivery\": true,\n \"duration\": 0.28,\n \"status\": \"OK\",\n \"status_code\": 200,\n \"event\": \"issues\",\n \"action\": \"opened\",\n \"installation_id\": 123,\n \"repository_id\": 456\n }\n]\n"
+ },
+ {
+ "httpStatusCode": "400",
+ "httpStatusMessage": "Bad Request",
+ "description": "Bad Request"
+ },
+ {
+ "httpStatusCode": "422",
+ "httpStatusMessage": "Unprocessable Entity",
+ "description": "Validation failed"
+ }
+ ]
+ },
+ {
+ "verb": "get",
+ "requestPath": "/app/hook/deliveries/{delivery_id}",
+ "serverUrl": "https://api.github.com",
+ "parameters": [
+ {
+ "name": "delivery_id",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "integer"
+ },
+ "descriptionHTML": ""
+ }
+ ],
+ "x-codeSamples": [
+ {
+ "lang": "Shell",
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n https://api.github.com/app/hook/deliveries/42",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n https://api.github.com/app/hook/deliveries/42"
+ },
+ {
+ "lang": "JavaScript",
+ "source": "await octokit.request('GET /app/hook/deliveries/{delivery_id}', {\n delivery_id: 42\n})",
+ "html": "await octokit.request('GET /app/hook/deliveries/{delivery_id}', {\n delivery_id: 42\n})\n"
+ }
+ ],
+ "summary": "Get a delivery for an app webhook",
+ "description": "Returns a delivery for the webhook configured for a GitHub App.\n\nYou must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint.",
+ "tags": [
+ "apps"
+ ],
+ "operationId": "apps/get-webhook-delivery",
+ "externalDocs": {
+ "description": "API method documentation",
+ "url": "https://docs.github.com/rest/reference/apps#get-a-delivery-for-an-app-webhook"
+ },
+ "x-github": {
+ "githubCloudOnly": false,
+ "enabledForGitHubApps": false,
+ "previews": [],
+ "category": "apps",
+ "subcategory": "webhooks"
+ },
+ "slug": "get-a-delivery-for-an-app-webhook",
+ "category": "apps",
+ "categoryLabel": "Apps",
+ "subcategory": "webhooks",
+ "subcategoryLabel": "Webhooks",
+ "notes": [],
+ "bodyParameters": [],
+ "descriptionHTML": "Returns a delivery for the webhook configured for a GitHub App.
\nYou must use a JWT to access this endpoint.
", + "responses": [ + { + "httpStatusCode": "200", + "httpStatusMessage": "OK", + "description": "Response", + "payload": "{\n \"id\": 12345678,\n \"guid\": \"0b989ba4-242f-11e5-81e1-c7b6966d2516\",\n \"delivered_at\": \"2019-06-03T00:57:16Z\",\n \"redelivery\": false,\n \"duration\": 0.27,\n \"status\": \"OK\",\n \"status_code\": 200,\n \"event\": \"issues\",\n \"action\": \"opened\",\n \"installation_id\": 123,\n \"repository_id\": 456,\n \"request\": {\n \"headers\": {\n \"X-GitHub-Delivery\": \"0b989ba4-242f-11e5-81e1-c7b6966d2516\",\n \"X-Hub-Signature-256\": \"sha256=6dcb09b5b57875f334f61aebed695e2e4193db5e\",\n \"Accept\": \"*/*\",\n \"X-GitHub-Hook-ID\": \"42\",\n \"User-Agent\": \"GitHub-Hookshot/b8c71d8\",\n \"X-GitHub-Event\": \"issues\",\n \"X-GitHub-Hook-Installation-Target-ID\": \"123\",\n \"X-GitHub-Hook-Installation-Target-Type\": \"repository\",\n \"content-type\": \"application/json\",\n \"X-Hub-Signature\": \"sha1=a84d88e7554fc1fa21bcbc4efae3c782a70d2b9d\"\n },\n \"payload\": {\n \"action\": \"opened\",\n \"issue\": {\n \"body\": \"foo\"\n },\n \"repository\": {\n \"id\": 123\n }\n }\n },\n \"response\": {\n \"headers\": {\n \"Content-Type\": \"text/html;charset=utf-8\"\n },\n \"payload\": \"ok\"\n }\n}\n"
+ },
+ {
+ "httpStatusCode": "400",
+ "httpStatusMessage": "Bad Request",
+ "description": "Bad Request"
+ },
+ {
+ "httpStatusCode": "422",
+ "httpStatusMessage": "Unprocessable Entity",
+ "description": "Validation failed"
+ }
+ ]
+ },
+ {
+ "verb": "post",
+ "requestPath": "/app/hook/deliveries/{delivery_id}/attempts",
+ "serverUrl": "https://api.github.com",
+ "parameters": [
+ {
+ "name": "delivery_id",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "integer"
+ },
+ "descriptionHTML": ""
+ }
+ ],
+ "x-codeSamples": [
+ {
+ "lang": "Shell",
+ "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n https://api.github.com/app/hook/deliveries/42/attempts",
+ "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n https://api.github.com/app/hook/deliveries/42/attempts"
+ },
+ {
+ "lang": "JavaScript",
+ "source": "await octokit.request('POST /app/hook/deliveries/{delivery_id}/attempts', {\n delivery_id: 42\n})",
+ "html": "await octokit.request('POST /app/hook/deliveries/{delivery_id}/attempts', {\n delivery_id: 42\n})\n"
+ }
+ ],
+ "summary": "Redeliver a delivery for an app webhook",
+ "description": "Redeliver a delivery for the webhook configured for a GitHub App.\n\nYou must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint.",
+ "tags": [
+ "apps"
+ ],
+ "operationId": "apps/redeliver-webhook-delivery",
+ "externalDocs": {
+ "description": "API method documentation",
+ "url": "https://docs.github.com/rest/reference/apps#redeliver-a-delivery-for-an-app-webhook"
+ },
+ "x-github": {
+ "githubCloudOnly": false,
+ "enabledForGitHubApps": false,
+ "previews": [],
+ "category": "apps",
+ "subcategory": "webhooks"
+ },
+ "slug": "redeliver-a-delivery-for-an-app-webhook",
+ "category": "apps",
+ "categoryLabel": "Apps",
+ "subcategory": "webhooks",
+ "subcategoryLabel": "Webhooks",
+ "notes": [],
+ "responses": [
+ {
+ "httpStatusCode": "202",
+ "httpStatusMessage": "Accepted",
+ "description": "Accepted"
+ },
+ {
+ "httpStatusCode": "400",
+ "httpStatusMessage": "Bad Request",
+ "description": "Bad Request"
+ },
+ {
+ "httpStatusCode": "422",
+ "httpStatusMessage": "Unprocessable Entity",
+ "description": "Validation failed"
+ }
+ ],
+ "bodyParameters": [],
+ "descriptionHTML": "Redeliver a delivery for the webhook configured for a GitHub App.
\nYou must use a JWT to access this endpoint.
" + }, { "verb": "get", "requestPath": "/app/installations", @@ -19812,6 +20035,283 @@ } ] }, + { + "verb": "get", + "requestPath": "/orgs/{org}/hooks/{hook_id}/deliveries", + "serverUrl": "https://api.github.com", + "parameters": [ + { + "name": "org", + "in": "path", + "required": true, + "schema": { + "type": "string" + }, + "descriptionHTML": "" + }, + { + "name": "hook_id", + "in": "path", + "required": true, + "schema": { + "type": "integer" + }, + "descriptionHTML": "" + }, + { + "name": "per_page", + "description": "Results per page (max 100).", + "in": "query", + "schema": { + "type": "integer", + "default": 30 + }, + "descriptionHTML": "Results per page (max 100).
" + }, + { + "name": "cursor", + "description": "Used for pagination: the starting delivery from which the page of deliveries is fetched. Refer to the `link` header for the next and previous page cursors.", + "in": "query", + "required": false, + "schema": { + "type": "string" + }, + "descriptionHTML": "Used for pagination: the starting delivery from which the page of deliveries is fetched. Refer to the link header for the next and previous page cursors.
curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n https://api.github.com/orgs/ORG/hooks/42/deliveries"
+ },
+ {
+ "lang": "JavaScript",
+ "source": "await octokit.request('GET /orgs/{org}/hooks/{hook_id}/deliveries', {\n org: 'org',\n hook_id: 42\n})",
+ "html": "await octokit.request('GET /orgs/{org}/hooks/{hook_id}/deliveries', {\n org: 'org',\n hook_id: 42\n})\n"
+ }
+ ],
+ "summary": "List deliveries for an organization webhook",
+ "description": "Returns a list of webhook deliveries for a webhook configured in an organization.",
+ "tags": [
+ "orgs"
+ ],
+ "operationId": "orgs/list-webhook-deliveries",
+ "externalDocs": {
+ "description": "API method documentation",
+ "url": "https://docs.github.com/rest/reference/orgs#list-deliveries-for-an-organization-webhook"
+ },
+ "x-github": {
+ "githubCloudOnly": false,
+ "enabledForGitHubApps": true,
+ "previews": [],
+ "category": "orgs",
+ "subcategory": "webhooks"
+ },
+ "slug": "list-deliveries-for-an-organization-webhook",
+ "category": "orgs",
+ "categoryLabel": "Orgs",
+ "subcategory": "webhooks",
+ "subcategoryLabel": "Webhooks",
+ "notes": [],
+ "bodyParameters": [],
+ "descriptionHTML": "Returns a list of webhook deliveries for a webhook configured in an organization.
", + "responses": [ + { + "httpStatusCode": "200", + "httpStatusMessage": "OK", + "description": "Response", + "payload": "[\n {\n \"id\": 12345678,\n \"guid\": \"0b989ba4-242f-11e5-81e1-c7b6966d2516\",\n \"delivered_at\": \"2019-06-03T00:57:16Z\",\n \"redelivery\": false,\n \"duration\": 0.27,\n \"status\": \"OK\",\n \"status_code\": 200,\n \"event\": \"issues\",\n \"action\": \"opened\",\n \"installation_id\": 123,\n \"repository_id\": 456\n },\n {\n \"id\": 123456789,\n \"guid\": \"0b989ba4-242f-11e5-81e1-c7b6966d2516\",\n \"delivered_at\": \"2019-06-04T00:57:16Z\",\n \"redelivery\": true,\n \"duration\": 0.28,\n \"status\": \"OK\",\n \"status_code\": 200,\n \"event\": \"issues\",\n \"action\": \"opened\",\n \"installation_id\": 123,\n \"repository_id\": 456\n }\n]\n"
+ },
+ {
+ "httpStatusCode": "400",
+ "httpStatusMessage": "Bad Request",
+ "description": "Bad Request"
+ },
+ {
+ "httpStatusCode": "422",
+ "httpStatusMessage": "Unprocessable Entity",
+ "description": "Validation failed"
+ }
+ ]
+ },
+ {
+ "verb": "get",
+ "requestPath": "/orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}",
+ "serverUrl": "https://api.github.com",
+ "parameters": [
+ {
+ "name": "org",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "descriptionHTML": ""
+ },
+ {
+ "name": "hook_id",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "integer"
+ },
+ "descriptionHTML": ""
+ },
+ {
+ "name": "delivery_id",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "integer"
+ },
+ "descriptionHTML": ""
+ }
+ ],
+ "x-codeSamples": [
+ {
+ "lang": "Shell",
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n https://api.github.com/orgs/ORG/hooks/42/deliveries/42",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n https://api.github.com/orgs/ORG/hooks/42/deliveries/42"
+ },
+ {
+ "lang": "JavaScript",
+ "source": "await octokit.request('GET /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}', {\n org: 'org',\n hook_id: 42,\n delivery_id: 42\n})",
+ "html": "await octokit.request('GET /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}', {\n org: 'org',\n hook_id: 42,\n delivery_id: 42\n})\n"
+ }
+ ],
+ "summary": "Get a webhook delivery for an organization webhook",
+ "description": "Returns a delivery for a webhook configured in an organization.",
+ "tags": [
+ "orgs"
+ ],
+ "operationId": "orgs/get-webhook-delivery",
+ "externalDocs": {
+ "description": "API method documentation",
+ "url": "https://docs.github.com/rest/reference/orgs#get-a-webhook-delivery-for-an-organization-webhook"
+ },
+ "x-github": {
+ "githubCloudOnly": false,
+ "enabledForGitHubApps": true,
+ "previews": [],
+ "category": "orgs",
+ "subcategory": "webhooks"
+ },
+ "slug": "get-a-webhook-delivery-for-an-organization-webhook",
+ "category": "orgs",
+ "categoryLabel": "Orgs",
+ "subcategory": "webhooks",
+ "subcategoryLabel": "Webhooks",
+ "notes": [],
+ "bodyParameters": [],
+ "descriptionHTML": "Returns a delivery for a webhook configured in an organization.
", + "responses": [ + { + "httpStatusCode": "200", + "httpStatusMessage": "OK", + "description": "Response", + "payload": "{\n \"id\": 12345678,\n \"guid\": \"0b989ba4-242f-11e5-81e1-c7b6966d2516\",\n \"delivered_at\": \"2019-06-03T00:57:16Z\",\n \"redelivery\": false,\n \"duration\": 0.27,\n \"status\": \"OK\",\n \"status_code\": 200,\n \"event\": \"issues\",\n \"action\": \"opened\",\n \"installation_id\": 123,\n \"repository_id\": 456,\n \"request\": {\n \"headers\": {\n \"X-GitHub-Delivery\": \"0b989ba4-242f-11e5-81e1-c7b6966d2516\",\n \"X-Hub-Signature-256\": \"sha256=6dcb09b5b57875f334f61aebed695e2e4193db5e\",\n \"Accept\": \"*/*\",\n \"X-GitHub-Hook-ID\": \"42\",\n \"User-Agent\": \"GitHub-Hookshot/b8c71d8\",\n \"X-GitHub-Event\": \"issues\",\n \"X-GitHub-Hook-Installation-Target-ID\": \"123\",\n \"X-GitHub-Hook-Installation-Target-Type\": \"repository\",\n \"content-type\": \"application/json\",\n \"X-Hub-Signature\": \"sha1=a84d88e7554fc1fa21bcbc4efae3c782a70d2b9d\"\n },\n \"payload\": {\n \"action\": \"opened\",\n \"issue\": {\n \"body\": \"foo\"\n },\n \"repository\": {\n \"id\": 123\n }\n }\n },\n \"response\": {\n \"headers\": {\n \"Content-Type\": \"text/html;charset=utf-8\"\n },\n \"payload\": \"ok\"\n }\n}\n"
+ },
+ {
+ "httpStatusCode": "400",
+ "httpStatusMessage": "Bad Request",
+ "description": "Bad Request"
+ },
+ {
+ "httpStatusCode": "422",
+ "httpStatusMessage": "Unprocessable Entity",
+ "description": "Validation failed"
+ }
+ ]
+ },
+ {
+ "verb": "post",
+ "requestPath": "/orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}/attempts",
+ "serverUrl": "https://api.github.com",
+ "parameters": [
+ {
+ "name": "org",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "descriptionHTML": ""
+ },
+ {
+ "name": "hook_id",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "integer"
+ },
+ "descriptionHTML": ""
+ },
+ {
+ "name": "delivery_id",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "integer"
+ },
+ "descriptionHTML": ""
+ }
+ ],
+ "x-codeSamples": [
+ {
+ "lang": "Shell",
+ "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n https://api.github.com/orgs/ORG/hooks/42/deliveries/42/attempts",
+ "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n https://api.github.com/orgs/ORG/hooks/42/deliveries/42/attempts"
+ },
+ {
+ "lang": "JavaScript",
+ "source": "await octokit.request('POST /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}/attempts', {\n org: 'org',\n hook_id: 42,\n delivery_id: 42\n})",
+ "html": "await octokit.request('POST /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}/attempts', {\n org: 'org',\n hook_id: 42,\n delivery_id: 42\n})\n"
+ }
+ ],
+ "summary": "Redeliver a delivery for an organization webhook",
+ "description": "Redeliver a delivery for a webhook configured in an organization.",
+ "tags": [
+ "orgs"
+ ],
+ "operationId": "orgs/redeliver-webhook-delivery",
+ "externalDocs": {
+ "description": "API method documentation",
+ "url": "https://docs.github.com/rest/reference/orgs#redeliver-a-delivery-for-an-organization-webhook"
+ },
+ "x-github": {
+ "githubCloudOnly": false,
+ "enabledForGitHubApps": true,
+ "previews": [],
+ "category": "orgs",
+ "subcategory": "webhooks"
+ },
+ "slug": "redeliver-a-delivery-for-an-organization-webhook",
+ "category": "orgs",
+ "categoryLabel": "Orgs",
+ "subcategory": "webhooks",
+ "subcategoryLabel": "Webhooks",
+ "notes": [],
+ "responses": [
+ {
+ "httpStatusCode": "202",
+ "httpStatusMessage": "Accepted",
+ "description": "Accepted"
+ },
+ {
+ "httpStatusCode": "400",
+ "httpStatusMessage": "Bad Request",
+ "description": "Bad Request"
+ },
+ {
+ "httpStatusCode": "422",
+ "httpStatusMessage": "Unprocessable Entity",
+ "description": "Validation failed"
+ }
+ ],
+ "bodyParameters": [],
+ "descriptionHTML": "Redeliver a delivery for a webhook configured in an organization.
" + }, { "verb": "post", "requestPath": "/orgs/{org}/hooks/{hook_id}/pings", @@ -58147,6 +58647,310 @@ } ] }, + { + "verb": "get", + "requestPath": "/repos/{owner}/{repo}/hooks/{hook_id}/deliveries", + "serverUrl": "https://api.github.com", + "parameters": [ + { + "name": "owner", + "in": "path", + "required": true, + "schema": { + "type": "string" + }, + "descriptionHTML": "" + }, + { + "name": "repo", + "in": "path", + "required": true, + "schema": { + "type": "string" + }, + "descriptionHTML": "" + }, + { + "name": "hook_id", + "in": "path", + "required": true, + "schema": { + "type": "integer" + }, + "descriptionHTML": "" + }, + { + "name": "per_page", + "description": "Results per page (max 100).", + "in": "query", + "schema": { + "type": "integer", + "default": 30 + }, + "descriptionHTML": "Results per page (max 100).
" + }, + { + "name": "cursor", + "description": "Used for pagination: the starting delivery from which the page of deliveries is fetched. Refer to the `link` header for the next and previous page cursors.", + "in": "query", + "required": false, + "schema": { + "type": "string" + }, + "descriptionHTML": "Used for pagination: the starting delivery from which the page of deliveries is fetched. Refer to the link header for the next and previous page cursors.
curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n https://api.github.com/repos/octocat/hello-world/hooks/42/deliveries"
+ },
+ {
+ "lang": "JavaScript",
+ "source": "await octokit.request('GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries', {\n owner: 'octocat',\n repo: 'hello-world',\n hook_id: 42\n})",
+ "html": "await octokit.request('GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries', {\n owner: 'octocat',\n repo: 'hello-world',\n hook_id: 42\n})\n"
+ }
+ ],
+ "summary": "List deliveries for a repository webhook",
+ "description": "Returns a list of webhook deliveries for a webhook configured in a repository.",
+ "tags": [
+ "repos"
+ ],
+ "operationId": "repos/list-webhook-deliveries",
+ "externalDocs": {
+ "description": "API method documentation",
+ "url": "https://docs.github.com/rest/reference/repos#list-deliveries-for-a-repository-webhook"
+ },
+ "x-github": {
+ "githubCloudOnly": false,
+ "enabledForGitHubApps": true,
+ "previews": [],
+ "category": "repos",
+ "subcategory": "webhooks"
+ },
+ "slug": "list-deliveries-for-a-repository-webhook",
+ "category": "repos",
+ "categoryLabel": "Repos",
+ "subcategory": "webhooks",
+ "subcategoryLabel": "Webhooks",
+ "notes": [],
+ "bodyParameters": [],
+ "descriptionHTML": "Returns a list of webhook deliveries for a webhook configured in a repository.
", + "responses": [ + { + "httpStatusCode": "200", + "httpStatusMessage": "OK", + "description": "Response", + "payload": "[\n {\n \"id\": 12345678,\n \"guid\": \"0b989ba4-242f-11e5-81e1-c7b6966d2516\",\n \"delivered_at\": \"2019-06-03T00:57:16Z\",\n \"redelivery\": false,\n \"duration\": 0.27,\n \"status\": \"OK\",\n \"status_code\": 200,\n \"event\": \"issues\",\n \"action\": \"opened\",\n \"installation_id\": 123,\n \"repository_id\": 456\n },\n {\n \"id\": 123456789,\n \"guid\": \"0b989ba4-242f-11e5-81e1-c7b6966d2516\",\n \"delivered_at\": \"2019-06-04T00:57:16Z\",\n \"redelivery\": true,\n \"duration\": 0.28,\n \"status\": \"OK\",\n \"status_code\": 200,\n \"event\": \"issues\",\n \"action\": \"opened\",\n \"installation_id\": 123,\n \"repository_id\": 456\n }\n]\n"
+ },
+ {
+ "httpStatusCode": "400",
+ "httpStatusMessage": "Bad Request",
+ "description": "Bad Request"
+ },
+ {
+ "httpStatusCode": "422",
+ "httpStatusMessage": "Unprocessable Entity",
+ "description": "Validation failed"
+ }
+ ]
+ },
+ {
+ "verb": "get",
+ "requestPath": "/repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}",
+ "serverUrl": "https://api.github.com",
+ "parameters": [
+ {
+ "name": "owner",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "descriptionHTML": ""
+ },
+ {
+ "name": "repo",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "descriptionHTML": ""
+ },
+ {
+ "name": "hook_id",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "integer"
+ },
+ "descriptionHTML": ""
+ },
+ {
+ "name": "delivery_id",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "integer"
+ },
+ "descriptionHTML": ""
+ }
+ ],
+ "x-codeSamples": [
+ {
+ "lang": "Shell",
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n https://api.github.com/repos/octocat/hello-world/hooks/42/deliveries/42",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n https://api.github.com/repos/octocat/hello-world/hooks/42/deliveries/42"
+ },
+ {
+ "lang": "JavaScript",
+ "source": "await octokit.request('GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}', {\n owner: 'octocat',\n repo: 'hello-world',\n hook_id: 42,\n delivery_id: 42\n})",
+ "html": "await octokit.request('GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}', {\n owner: 'octocat',\n repo: 'hello-world',\n hook_id: 42,\n delivery_id: 42\n})\n"
+ }
+ ],
+ "summary": "Get a delivery for a repository webhook",
+ "description": "Returns a delivery for a webhook configured in a repository.",
+ "tags": [
+ "repos"
+ ],
+ "operationId": "repos/get-webhook-delivery",
+ "externalDocs": {
+ "description": "API method documentation",
+ "url": "https://docs.github.com/rest/reference/repos#get-a-delivery-for-a-repository-webhook"
+ },
+ "x-github": {
+ "githubCloudOnly": false,
+ "enabledForGitHubApps": true,
+ "previews": [],
+ "category": "repos",
+ "subcategory": "webhooks"
+ },
+ "slug": "get-a-delivery-for-a-repository-webhook",
+ "category": "repos",
+ "categoryLabel": "Repos",
+ "subcategory": "webhooks",
+ "subcategoryLabel": "Webhooks",
+ "notes": [],
+ "bodyParameters": [],
+ "descriptionHTML": "Returns a delivery for a webhook configured in a repository.
", + "responses": [ + { + "httpStatusCode": "200", + "httpStatusMessage": "OK", + "description": "Response", + "payload": "{\n \"id\": 12345678,\n \"guid\": \"0b989ba4-242f-11e5-81e1-c7b6966d2516\",\n \"delivered_at\": \"2019-06-03T00:57:16Z\",\n \"redelivery\": false,\n \"duration\": 0.27,\n \"status\": \"OK\",\n \"status_code\": 200,\n \"event\": \"issues\",\n \"action\": \"opened\",\n \"installation_id\": 123,\n \"repository_id\": 456,\n \"request\": {\n \"headers\": {\n \"X-GitHub-Delivery\": \"0b989ba4-242f-11e5-81e1-c7b6966d2516\",\n \"X-Hub-Signature-256\": \"sha256=6dcb09b5b57875f334f61aebed695e2e4193db5e\",\n \"Accept\": \"*/*\",\n \"X-GitHub-Hook-ID\": \"42\",\n \"User-Agent\": \"GitHub-Hookshot/b8c71d8\",\n \"X-GitHub-Event\": \"issues\",\n \"X-GitHub-Hook-Installation-Target-ID\": \"123\",\n \"X-GitHub-Hook-Installation-Target-Type\": \"repository\",\n \"content-type\": \"application/json\",\n \"X-Hub-Signature\": \"sha1=a84d88e7554fc1fa21bcbc4efae3c782a70d2b9d\"\n },\n \"payload\": {\n \"action\": \"opened\",\n \"issue\": {\n \"body\": \"foo\"\n },\n \"repository\": {\n \"id\": 123\n }\n }\n },\n \"response\": {\n \"headers\": {\n \"Content-Type\": \"text/html;charset=utf-8\"\n },\n \"payload\": \"ok\"\n }\n}\n"
+ },
+ {
+ "httpStatusCode": "400",
+ "httpStatusMessage": "Bad Request",
+ "description": "Bad Request"
+ },
+ {
+ "httpStatusCode": "422",
+ "httpStatusMessage": "Unprocessable Entity",
+ "description": "Validation failed"
+ }
+ ]
+ },
+ {
+ "verb": "post",
+ "requestPath": "/repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}/attempts",
+ "serverUrl": "https://api.github.com",
+ "parameters": [
+ {
+ "name": "owner",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "descriptionHTML": ""
+ },
+ {
+ "name": "repo",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "descriptionHTML": ""
+ },
+ {
+ "name": "hook_id",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "integer"
+ },
+ "descriptionHTML": ""
+ },
+ {
+ "name": "delivery_id",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "integer"
+ },
+ "descriptionHTML": ""
+ }
+ ],
+ "x-codeSamples": [
+ {
+ "lang": "Shell",
+ "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n https://api.github.com/repos/octocat/hello-world/hooks/42/deliveries/42/attempts",
+ "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n https://api.github.com/repos/octocat/hello-world/hooks/42/deliveries/42/attempts"
+ },
+ {
+ "lang": "JavaScript",
+ "source": "await octokit.request('POST /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}/attempts', {\n owner: 'octocat',\n repo: 'hello-world',\n hook_id: 42,\n delivery_id: 42\n})",
+ "html": "await octokit.request('POST /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}/attempts', {\n owner: 'octocat',\n repo: 'hello-world',\n hook_id: 42,\n delivery_id: 42\n})\n"
+ }
+ ],
+ "summary": "Redeliver a delivery for a repository webhook",
+ "description": "Redeliver a webhook delivery for a webhook configured in a repository.",
+ "tags": [
+ "repos"
+ ],
+ "operationId": "repos/redeliver-webhook-delivery",
+ "externalDocs": {
+ "description": "API method documentation",
+ "url": "https://docs.github.com/rest/reference/repos#redeliver-a-delivery-for-a-repository-webhook"
+ },
+ "x-github": {
+ "githubCloudOnly": false,
+ "enabledForGitHubApps": true,
+ "previews": [],
+ "category": "repos",
+ "subcategory": "webhooks"
+ },
+ "slug": "redeliver-a-delivery-for-a-repository-webhook",
+ "category": "repos",
+ "categoryLabel": "Repos",
+ "subcategory": "webhooks",
+ "subcategoryLabel": "Webhooks",
+ "notes": [],
+ "responses": [
+ {
+ "httpStatusCode": "202",
+ "httpStatusMessage": "Accepted",
+ "description": "Accepted"
+ },
+ {
+ "httpStatusCode": "400",
+ "httpStatusMessage": "Bad Request",
+ "description": "Bad Request"
+ },
+ {
+ "httpStatusCode": "422",
+ "httpStatusMessage": "Unprocessable Entity",
+ "description": "Validation failed"
+ }
+ ],
+ "bodyParameters": [],
+ "descriptionHTML": "Redeliver a webhook delivery for a webhook configured in a repository.
" + }, { "verb": "post", "requestPath": "/repos/{owner}/{repo}/hooks/{hook_id}/pings", diff --git a/lib/rest/static/decorated/github.ae.json b/lib/rest/static/decorated/github.ae.json index 5d875fc285..e9b9aa373e 100644 --- a/lib/rest/static/decorated/github.ae.json +++ b/lib/rest/static/decorated/github.ae.json @@ -2766,6 +2766,229 @@ } ] }, + { + "verb": "get", + "requestPath": "/app/hook/deliveries", + "serverUrl": "http(s)://api.{hostname}", + "parameters": [ + { + "name": "per_page", + "description": "Results per page (max 100).", + "in": "query", + "schema": { + "type": "integer", + "default": 30 + }, + "descriptionHTML": "Results per page (max 100).
" + }, + { + "name": "cursor", + "description": "Used for pagination: the starting delivery from which the page of deliveries is fetched. Refer to the `link` header for the next and previous page cursors.", + "in": "query", + "required": false, + "schema": { + "type": "string" + }, + "descriptionHTML": "Used for pagination: the starting delivery from which the page of deliveries is fetched. Refer to the link header for the next and previous page cursors.
curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://api.{hostname}/app/hook/deliveries"
+ },
+ {
+ "lang": "JavaScript",
+ "source": "await octokit.request('GET /app/hook/deliveries')",
+ "html": "await octokit.request('GET /app/hook/deliveries')\n"
+ }
+ ],
+ "summary": "List deliveries for an app webhook",
+ "description": "Returns a list of webhook deliveries for the webhook configured for a GitHub App.\n\nYou must use a [JWT](https://docs.github.com/github-ae@latest/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint.",
+ "tags": [
+ "apps"
+ ],
+ "operationId": "apps/list-webhook-deliveries",
+ "externalDocs": {
+ "description": "API method documentation",
+ "url": "https://docs.github.com/github-ae@latest/rest/reference/apps#list-deliveries-for-an-app-webhook"
+ },
+ "x-github": {
+ "githubCloudOnly": false,
+ "enabledForGitHubApps": false,
+ "previews": [],
+ "category": "apps",
+ "subcategory": "webhooks"
+ },
+ "slug": "list-deliveries-for-an-app-webhook",
+ "category": "apps",
+ "categoryLabel": "Apps",
+ "subcategory": "webhooks",
+ "subcategoryLabel": "Webhooks",
+ "notes": [],
+ "bodyParameters": [],
+ "descriptionHTML": "Returns a list of webhook deliveries for the webhook configured for a GitHub App.
\nYou must use a JWT to access this endpoint.
", + "responses": [ + { + "httpStatusCode": "200", + "httpStatusMessage": "OK", + "description": "Response", + "payload": "[\n {\n \"id\": 12345678,\n \"guid\": \"0b989ba4-242f-11e5-81e1-c7b6966d2516\",\n \"delivered_at\": \"2019-06-03T00:57:16Z\",\n \"redelivery\": false,\n \"duration\": 0.27,\n \"status\": \"OK\",\n \"status_code\": 200,\n \"event\": \"issues\",\n \"action\": \"opened\",\n \"installation_id\": 123,\n \"repository_id\": 456\n },\n {\n \"id\": 123456789,\n \"guid\": \"0b989ba4-242f-11e5-81e1-c7b6966d2516\",\n \"delivered_at\": \"2019-06-04T00:57:16Z\",\n \"redelivery\": true,\n \"duration\": 0.28,\n \"status\": \"OK\",\n \"status_code\": 200,\n \"event\": \"issues\",\n \"action\": \"opened\",\n \"installation_id\": 123,\n \"repository_id\": 456\n }\n]\n"
+ },
+ {
+ "httpStatusCode": "400",
+ "httpStatusMessage": "Bad Request",
+ "description": "Bad Request"
+ },
+ {
+ "httpStatusCode": "422",
+ "httpStatusMessage": "Unprocessable Entity",
+ "description": "Validation failed"
+ }
+ ]
+ },
+ {
+ "verb": "get",
+ "requestPath": "/app/hook/deliveries/{delivery_id}",
+ "serverUrl": "http(s)://api.{hostname}",
+ "parameters": [
+ {
+ "name": "delivery_id",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "integer"
+ },
+ "descriptionHTML": ""
+ }
+ ],
+ "x-codeSamples": [
+ {
+ "lang": "Shell",
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://api.{hostname}/app/hook/deliveries/42",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://api.{hostname}/app/hook/deliveries/42"
+ },
+ {
+ "lang": "JavaScript",
+ "source": "await octokit.request('GET /app/hook/deliveries/{delivery_id}', {\n delivery_id: 42\n})",
+ "html": "await octokit.request('GET /app/hook/deliveries/{delivery_id}', {\n delivery_id: 42\n})\n"
+ }
+ ],
+ "summary": "Get a delivery for an app webhook",
+ "description": "Returns a delivery for the webhook configured for a GitHub App.\n\nYou must use a [JWT](https://docs.github.com/github-ae@latest/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint.",
+ "tags": [
+ "apps"
+ ],
+ "operationId": "apps/get-webhook-delivery",
+ "externalDocs": {
+ "description": "API method documentation",
+ "url": "https://docs.github.com/github-ae@latest/rest/reference/apps#get-a-delivery-for-an-app-webhook"
+ },
+ "x-github": {
+ "githubCloudOnly": false,
+ "enabledForGitHubApps": false,
+ "previews": [],
+ "category": "apps",
+ "subcategory": "webhooks"
+ },
+ "slug": "get-a-delivery-for-an-app-webhook",
+ "category": "apps",
+ "categoryLabel": "Apps",
+ "subcategory": "webhooks",
+ "subcategoryLabel": "Webhooks",
+ "notes": [],
+ "bodyParameters": [],
+ "descriptionHTML": "Returns a delivery for the webhook configured for a GitHub App.
\nYou must use a JWT to access this endpoint.
", + "responses": [ + { + "httpStatusCode": "200", + "httpStatusMessage": "OK", + "description": "Response", + "payload": "{\n \"id\": 12345678,\n \"guid\": \"0b989ba4-242f-11e5-81e1-c7b6966d2516\",\n \"delivered_at\": \"2019-06-03T00:57:16Z\",\n \"redelivery\": false,\n \"duration\": 0.27,\n \"status\": \"OK\",\n \"status_code\": 200,\n \"event\": \"issues\",\n \"action\": \"opened\",\n \"installation_id\": 123,\n \"repository_id\": 456,\n \"request\": {\n \"headers\": {\n \"X-GitHub-Delivery\": \"0b989ba4-242f-11e5-81e1-c7b6966d2516\",\n \"X-Hub-Signature-256\": \"sha256=6dcb09b5b57875f334f61aebed695e2e4193db5e\",\n \"Accept\": \"*/*\",\n \"X-GitHub-Hook-ID\": \"42\",\n \"User-Agent\": \"GitHub-Hookshot/b8c71d8\",\n \"X-GitHub-Event\": \"issues\",\n \"X-GitHub-Hook-Installation-Target-ID\": \"123\",\n \"X-GitHub-Hook-Installation-Target-Type\": \"repository\",\n \"content-type\": \"application/json\"\n },\n \"payload\": {\n \"action\": \"opened\",\n \"issue\": {\n \"body\": \"foo\"\n },\n \"repository\": {\n \"id\": 123\n }\n }\n },\n \"response\": {\n \"headers\": {\n \"Content-Type\": \"text/html;charset=utf-8\"\n },\n \"payload\": \"ok\"\n }\n}\n"
+ },
+ {
+ "httpStatusCode": "400",
+ "httpStatusMessage": "Bad Request",
+ "description": "Bad Request"
+ },
+ {
+ "httpStatusCode": "422",
+ "httpStatusMessage": "Unprocessable Entity",
+ "description": "Validation failed"
+ }
+ ]
+ },
+ {
+ "verb": "post",
+ "requestPath": "/app/hook/deliveries/{delivery_id}/attempts",
+ "serverUrl": "http(s)://api.{hostname}",
+ "parameters": [
+ {
+ "name": "delivery_id",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "integer"
+ },
+ "descriptionHTML": ""
+ }
+ ],
+ "x-codeSamples": [
+ {
+ "lang": "Shell",
+ "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://api.{hostname}/app/hook/deliveries/42/attempts",
+ "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://api.{hostname}/app/hook/deliveries/42/attempts"
+ },
+ {
+ "lang": "JavaScript",
+ "source": "await octokit.request('POST /app/hook/deliveries/{delivery_id}/attempts', {\n delivery_id: 42\n})",
+ "html": "await octokit.request('POST /app/hook/deliveries/{delivery_id}/attempts', {\n delivery_id: 42\n})\n"
+ }
+ ],
+ "summary": "Redeliver a delivery for an app webhook",
+ "description": "Redeliver a delivery for the webhook configured for a GitHub App.\n\nYou must use a [JWT](https://docs.github.com/github-ae@latest/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint.",
+ "tags": [
+ "apps"
+ ],
+ "operationId": "apps/redeliver-webhook-delivery",
+ "externalDocs": {
+ "description": "API method documentation",
+ "url": "https://docs.github.com/github-ae@latest/rest/reference/apps#redeliver-a-delivery-for-an-app-webhook"
+ },
+ "x-github": {
+ "githubCloudOnly": false,
+ "enabledForGitHubApps": false,
+ "previews": [],
+ "category": "apps",
+ "subcategory": "webhooks"
+ },
+ "slug": "redeliver-a-delivery-for-an-app-webhook",
+ "category": "apps",
+ "categoryLabel": "Apps",
+ "subcategory": "webhooks",
+ "subcategoryLabel": "Webhooks",
+ "notes": [],
+ "responses": [
+ {
+ "httpStatusCode": "202",
+ "httpStatusMessage": "Accepted",
+ "description": "Accepted"
+ },
+ {
+ "httpStatusCode": "400",
+ "httpStatusMessage": "Bad Request",
+ "description": "Bad Request"
+ },
+ {
+ "httpStatusCode": "422",
+ "httpStatusMessage": "Unprocessable Entity",
+ "description": "Validation failed"
+ }
+ ],
+ "bodyParameters": [],
+ "descriptionHTML": "Redeliver a delivery for the webhook configured for a GitHub App.
\nYou must use a JWT to access this endpoint.
" + }, { "verb": "get", "requestPath": "/app/installations", @@ -16195,6 +16418,183 @@ } ] }, + { + "verb": "get", + "requestPath": "/orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}", + "serverUrl": "http(s)://api.{hostname}", + "parameters": [ + { + "name": "org", + "in": "path", + "required": true, + "schema": { + "type": "string" + }, + "descriptionHTML": "" + }, + { + "name": "hook_id", + "in": "path", + "required": true, + "schema": { + "type": "integer" + }, + "descriptionHTML": "" + }, + { + "name": "delivery_id", + "in": "path", + "required": true, + "schema": { + "type": "integer" + }, + "descriptionHTML": "" + } + ], + "x-codeSamples": [ + { + "lang": "Shell", + "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://api.{hostname}/orgs/ORG/hooks/42/deliveries/42", + "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://api.{hostname}/orgs/ORG/hooks/42/deliveries/42"
+ },
+ {
+ "lang": "JavaScript",
+ "source": "await octokit.request('GET /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}', {\n org: 'org',\n hook_id: 42,\n delivery_id: 42\n})",
+ "html": "await octokit.request('GET /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}', {\n org: 'org',\n hook_id: 42,\n delivery_id: 42\n})\n"
+ }
+ ],
+ "summary": "Get a webhook delivery for an organization webhook",
+ "description": "Returns a delivery for a webhook configured in an organization.",
+ "tags": [
+ "orgs"
+ ],
+ "operationId": "orgs/get-webhook-delivery",
+ "externalDocs": {
+ "description": "API method documentation",
+ "url": "https://docs.github.com/github-ae@latest/rest/reference/orgs#get-a-webhook-delivery-for-an-organization-webhook"
+ },
+ "x-github": {
+ "githubCloudOnly": false,
+ "enabledForGitHubApps": true,
+ "previews": [],
+ "category": "orgs",
+ "subcategory": "webhooks"
+ },
+ "slug": "get-a-webhook-delivery-for-an-organization-webhook",
+ "category": "orgs",
+ "categoryLabel": "Orgs",
+ "subcategory": "webhooks",
+ "subcategoryLabel": "Webhooks",
+ "notes": [],
+ "bodyParameters": [],
+ "descriptionHTML": "Returns a delivery for a webhook configured in an organization.
", + "responses": [ + { + "httpStatusCode": "200", + "httpStatusMessage": "OK", + "description": "Response", + "payload": "{\n \"id\": 12345678,\n \"guid\": \"0b989ba4-242f-11e5-81e1-c7b6966d2516\",\n \"delivered_at\": \"2019-06-03T00:57:16Z\",\n \"redelivery\": false,\n \"duration\": 0.27,\n \"status\": \"OK\",\n \"status_code\": 200,\n \"event\": \"issues\",\n \"action\": \"opened\",\n \"installation_id\": 123,\n \"repository_id\": 456,\n \"request\": {\n \"headers\": {\n \"X-GitHub-Delivery\": \"0b989ba4-242f-11e5-81e1-c7b6966d2516\",\n \"X-Hub-Signature-256\": \"sha256=6dcb09b5b57875f334f61aebed695e2e4193db5e\",\n \"Accept\": \"*/*\",\n \"X-GitHub-Hook-ID\": \"42\",\n \"User-Agent\": \"GitHub-Hookshot/b8c71d8\",\n \"X-GitHub-Event\": \"issues\",\n \"X-GitHub-Hook-Installation-Target-ID\": \"123\",\n \"X-GitHub-Hook-Installation-Target-Type\": \"repository\",\n \"content-type\": \"application/json\"\n },\n \"payload\": {\n \"action\": \"opened\",\n \"issue\": {\n \"body\": \"foo\"\n },\n \"repository\": {\n \"id\": 123\n }\n }\n },\n \"response\": {\n \"headers\": {\n \"Content-Type\": \"text/html;charset=utf-8\"\n },\n \"payload\": \"ok\"\n }\n}\n"
+ },
+ {
+ "httpStatusCode": "400",
+ "httpStatusMessage": "Bad Request",
+ "description": "Bad Request"
+ },
+ {
+ "httpStatusCode": "422",
+ "httpStatusMessage": "Unprocessable Entity",
+ "description": "Validation failed"
+ }
+ ]
+ },
+ {
+ "verb": "post",
+ "requestPath": "/orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}/attempts",
+ "serverUrl": "http(s)://api.{hostname}",
+ "parameters": [
+ {
+ "name": "org",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "descriptionHTML": ""
+ },
+ {
+ "name": "hook_id",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "integer"
+ },
+ "descriptionHTML": ""
+ },
+ {
+ "name": "delivery_id",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "integer"
+ },
+ "descriptionHTML": ""
+ }
+ ],
+ "x-codeSamples": [
+ {
+ "lang": "Shell",
+ "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://api.{hostname}/orgs/ORG/hooks/42/deliveries/42/attempts",
+ "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://api.{hostname}/orgs/ORG/hooks/42/deliveries/42/attempts"
+ },
+ {
+ "lang": "JavaScript",
+ "source": "await octokit.request('POST /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}/attempts', {\n org: 'org',\n hook_id: 42,\n delivery_id: 42\n})",
+ "html": "await octokit.request('POST /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}/attempts', {\n org: 'org',\n hook_id: 42,\n delivery_id: 42\n})\n"
+ }
+ ],
+ "summary": "Redeliver a delivery for an organization webhook",
+ "description": "Redeliver a delivery for a webhook configured in an organization.",
+ "tags": [
+ "orgs"
+ ],
+ "operationId": "orgs/redeliver-webhook-delivery",
+ "externalDocs": {
+ "description": "API method documentation",
+ "url": "https://docs.github.com/github-ae@latest/rest/reference/orgs#redeliver-a-delivery-for-an-organization-webhook"
+ },
+ "x-github": {
+ "githubCloudOnly": false,
+ "enabledForGitHubApps": true,
+ "previews": [],
+ "category": "orgs",
+ "subcategory": "webhooks"
+ },
+ "slug": "redeliver-a-delivery-for-an-organization-webhook",
+ "category": "orgs",
+ "categoryLabel": "Orgs",
+ "subcategory": "webhooks",
+ "subcategoryLabel": "Webhooks",
+ "notes": [],
+ "responses": [
+ {
+ "httpStatusCode": "202",
+ "httpStatusMessage": "Accepted",
+ "description": "Accepted"
+ },
+ {
+ "httpStatusCode": "400",
+ "httpStatusMessage": "Bad Request",
+ "description": "Bad Request"
+ },
+ {
+ "httpStatusCode": "422",
+ "httpStatusMessage": "Unprocessable Entity",
+ "description": "Validation failed"
+ }
+ ],
+ "bodyParameters": [],
+ "descriptionHTML": "Redeliver a delivery for a webhook configured in an organization.
" + }, { "verb": "post", "requestPath": "/orgs/{org}/hooks/{hook_id}/pings", @@ -48944,6 +49344,310 @@ } ] }, + { + "verb": "get", + "requestPath": "/repos/{owner}/{repo}/hooks/{hook_id}/deliveries", + "serverUrl": "http(s)://api.{hostname}", + "parameters": [ + { + "name": "owner", + "in": "path", + "required": true, + "schema": { + "type": "string" + }, + "descriptionHTML": "" + }, + { + "name": "repo", + "in": "path", + "required": true, + "schema": { + "type": "string" + }, + "descriptionHTML": "" + }, + { + "name": "hook_id", + "in": "path", + "required": true, + "schema": { + "type": "integer" + }, + "descriptionHTML": "" + }, + { + "name": "per_page", + "description": "Results per page (max 100).", + "in": "query", + "schema": { + "type": "integer", + "default": 30 + }, + "descriptionHTML": "Results per page (max 100).
" + }, + { + "name": "cursor", + "description": "Used for pagination: the starting delivery from which the page of deliveries is fetched. Refer to the `link` header for the next and previous page cursors.", + "in": "query", + "required": false, + "schema": { + "type": "string" + }, + "descriptionHTML": "Used for pagination: the starting delivery from which the page of deliveries is fetched. Refer to the link header for the next and previous page cursors.
curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://api.{hostname}/repos/octocat/hello-world/hooks/42/deliveries"
+ },
+ {
+ "lang": "JavaScript",
+ "source": "await octokit.request('GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries', {\n owner: 'octocat',\n repo: 'hello-world',\n hook_id: 42\n})",
+ "html": "await octokit.request('GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries', {\n owner: 'octocat',\n repo: 'hello-world',\n hook_id: 42\n})\n"
+ }
+ ],
+ "summary": "List deliveries for a repository webhook",
+ "description": "Returns a list of webhook deliveries for a webhook configured in a repository.",
+ "tags": [
+ "repos"
+ ],
+ "operationId": "repos/list-webhook-deliveries",
+ "externalDocs": {
+ "description": "API method documentation",
+ "url": "https://docs.github.com/github-ae@latest/rest/reference/repos#list-deliveries-for-a-repository-webhook"
+ },
+ "x-github": {
+ "githubCloudOnly": false,
+ "enabledForGitHubApps": true,
+ "previews": [],
+ "category": "repos",
+ "subcategory": "webhooks"
+ },
+ "slug": "list-deliveries-for-a-repository-webhook",
+ "category": "repos",
+ "categoryLabel": "Repos",
+ "subcategory": "webhooks",
+ "subcategoryLabel": "Webhooks",
+ "notes": [],
+ "bodyParameters": [],
+ "descriptionHTML": "Returns a list of webhook deliveries for a webhook configured in a repository.
", + "responses": [ + { + "httpStatusCode": "200", + "httpStatusMessage": "OK", + "description": "Response", + "payload": "[\n {\n \"id\": 12345678,\n \"guid\": \"0b989ba4-242f-11e5-81e1-c7b6966d2516\",\n \"delivered_at\": \"2019-06-03T00:57:16Z\",\n \"redelivery\": false,\n \"duration\": 0.27,\n \"status\": \"OK\",\n \"status_code\": 200,\n \"event\": \"issues\",\n \"action\": \"opened\",\n \"installation_id\": 123,\n \"repository_id\": 456\n },\n {\n \"id\": 123456789,\n \"guid\": \"0b989ba4-242f-11e5-81e1-c7b6966d2516\",\n \"delivered_at\": \"2019-06-04T00:57:16Z\",\n \"redelivery\": true,\n \"duration\": 0.28,\n \"status\": \"OK\",\n \"status_code\": 200,\n \"event\": \"issues\",\n \"action\": \"opened\",\n \"installation_id\": 123,\n \"repository_id\": 456\n }\n]\n"
+ },
+ {
+ "httpStatusCode": "400",
+ "httpStatusMessage": "Bad Request",
+ "description": "Bad Request"
+ },
+ {
+ "httpStatusCode": "422",
+ "httpStatusMessage": "Unprocessable Entity",
+ "description": "Validation failed"
+ }
+ ]
+ },
+ {
+ "verb": "get",
+ "requestPath": "/repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}",
+ "serverUrl": "http(s)://api.{hostname}",
+ "parameters": [
+ {
+ "name": "owner",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "descriptionHTML": ""
+ },
+ {
+ "name": "repo",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "descriptionHTML": ""
+ },
+ {
+ "name": "hook_id",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "integer"
+ },
+ "descriptionHTML": ""
+ },
+ {
+ "name": "delivery_id",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "integer"
+ },
+ "descriptionHTML": ""
+ }
+ ],
+ "x-codeSamples": [
+ {
+ "lang": "Shell",
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://api.{hostname}/repos/octocat/hello-world/hooks/42/deliveries/42",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://api.{hostname}/repos/octocat/hello-world/hooks/42/deliveries/42"
+ },
+ {
+ "lang": "JavaScript",
+ "source": "await octokit.request('GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}', {\n owner: 'octocat',\n repo: 'hello-world',\n hook_id: 42,\n delivery_id: 42\n})",
+ "html": "await octokit.request('GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}', {\n owner: 'octocat',\n repo: 'hello-world',\n hook_id: 42,\n delivery_id: 42\n})\n"
+ }
+ ],
+ "summary": "Get a delivery for a repository webhook",
+ "description": "Returns a delivery for a webhook configured in a repository.",
+ "tags": [
+ "repos"
+ ],
+ "operationId": "repos/get-webhook-delivery",
+ "externalDocs": {
+ "description": "API method documentation",
+ "url": "https://docs.github.com/github-ae@latest/rest/reference/repos#get-a-delivery-for-a-repository-webhook"
+ },
+ "x-github": {
+ "githubCloudOnly": false,
+ "enabledForGitHubApps": true,
+ "previews": [],
+ "category": "repos",
+ "subcategory": "webhooks"
+ },
+ "slug": "get-a-delivery-for-a-repository-webhook",
+ "category": "repos",
+ "categoryLabel": "Repos",
+ "subcategory": "webhooks",
+ "subcategoryLabel": "Webhooks",
+ "notes": [],
+ "bodyParameters": [],
+ "descriptionHTML": "Returns a delivery for a webhook configured in a repository.
", + "responses": [ + { + "httpStatusCode": "200", + "httpStatusMessage": "OK", + "description": "Response", + "payload": "{\n \"id\": 12345678,\n \"guid\": \"0b989ba4-242f-11e5-81e1-c7b6966d2516\",\n \"delivered_at\": \"2019-06-03T00:57:16Z\",\n \"redelivery\": false,\n \"duration\": 0.27,\n \"status\": \"OK\",\n \"status_code\": 200,\n \"event\": \"issues\",\n \"action\": \"opened\",\n \"installation_id\": 123,\n \"repository_id\": 456,\n \"request\": {\n \"headers\": {\n \"X-GitHub-Delivery\": \"0b989ba4-242f-11e5-81e1-c7b6966d2516\",\n \"X-Hub-Signature-256\": \"sha256=6dcb09b5b57875f334f61aebed695e2e4193db5e\",\n \"Accept\": \"*/*\",\n \"X-GitHub-Hook-ID\": \"42\",\n \"User-Agent\": \"GitHub-Hookshot/b8c71d8\",\n \"X-GitHub-Event\": \"issues\",\n \"X-GitHub-Hook-Installation-Target-ID\": \"123\",\n \"X-GitHub-Hook-Installation-Target-Type\": \"repository\",\n \"content-type\": \"application/json\"\n },\n \"payload\": {\n \"action\": \"opened\",\n \"issue\": {\n \"body\": \"foo\"\n },\n \"repository\": {\n \"id\": 123\n }\n }\n },\n \"response\": {\n \"headers\": {\n \"Content-Type\": \"text/html;charset=utf-8\"\n },\n \"payload\": \"ok\"\n }\n}\n"
+ },
+ {
+ "httpStatusCode": "400",
+ "httpStatusMessage": "Bad Request",
+ "description": "Bad Request"
+ },
+ {
+ "httpStatusCode": "422",
+ "httpStatusMessage": "Unprocessable Entity",
+ "description": "Validation failed"
+ }
+ ]
+ },
+ {
+ "verb": "post",
+ "requestPath": "/repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}/attempts",
+ "serverUrl": "http(s)://api.{hostname}",
+ "parameters": [
+ {
+ "name": "owner",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "descriptionHTML": ""
+ },
+ {
+ "name": "repo",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string"
+ },
+ "descriptionHTML": ""
+ },
+ {
+ "name": "hook_id",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "integer"
+ },
+ "descriptionHTML": ""
+ },
+ {
+ "name": "delivery_id",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "integer"
+ },
+ "descriptionHTML": ""
+ }
+ ],
+ "x-codeSamples": [
+ {
+ "lang": "Shell",
+ "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://api.{hostname}/repos/octocat/hello-world/hooks/42/deliveries/42/attempts",
+ "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://api.{hostname}/repos/octocat/hello-world/hooks/42/deliveries/42/attempts"
+ },
+ {
+ "lang": "JavaScript",
+ "source": "await octokit.request('POST /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}/attempts', {\n owner: 'octocat',\n repo: 'hello-world',\n hook_id: 42,\n delivery_id: 42\n})",
+ "html": "await octokit.request('POST /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}/attempts', {\n owner: 'octocat',\n repo: 'hello-world',\n hook_id: 42,\n delivery_id: 42\n})\n"
+ }
+ ],
+ "summary": "Redeliver a delivery for a repository webhook",
+ "description": "Redeliver a webhook delivery for a webhook configured in a repository.",
+ "tags": [
+ "repos"
+ ],
+ "operationId": "repos/redeliver-webhook-delivery",
+ "externalDocs": {
+ "description": "API method documentation",
+ "url": "https://docs.github.com/github-ae@latest/rest/reference/repos#redeliver-a-delivery-for-a-repository-webhook"
+ },
+ "x-github": {
+ "githubCloudOnly": false,
+ "enabledForGitHubApps": true,
+ "previews": [],
+ "category": "repos",
+ "subcategory": "webhooks"
+ },
+ "slug": "redeliver-a-delivery-for-a-repository-webhook",
+ "category": "repos",
+ "categoryLabel": "Repos",
+ "subcategory": "webhooks",
+ "subcategoryLabel": "Webhooks",
+ "notes": [],
+ "responses": [
+ {
+ "httpStatusCode": "202",
+ "httpStatusMessage": "Accepted",
+ "description": "Accepted"
+ },
+ {
+ "httpStatusCode": "400",
+ "httpStatusMessage": "Bad Request",
+ "description": "Bad Request"
+ },
+ {
+ "httpStatusCode": "422",
+ "httpStatusMessage": "Unprocessable Entity",
+ "description": "Validation failed"
+ }
+ ],
+ "bodyParameters": [],
+ "descriptionHTML": "Redeliver a webhook delivery for a webhook configured in a repository.
" + }, { "verb": "post", "requestPath": "/repos/{owner}/{repo}/hooks/{hook_id}/pings", diff --git a/lib/rest/static/dereferenced/api.github.com.deref.json b/lib/rest/static/dereferenced/api.github.com.deref.json index fd353bfb02..9d401274b2 100644 --- a/lib/rest/static/dereferenced/api.github.com.deref.json +++ b/lib/rest/static/dereferenced/api.github.com.deref.json @@ -1317,6 +1317,815 @@ } } }, + "/app/hook/deliveries": { + "get": { + "summary": "List deliveries for an app webhook", + "description": "Returns a list of webhook deliveries for the webhook configured for a GitHub App.\n\nYou must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint.", + "tags": [ + "apps" + ], + "operationId": "apps/list-webhook-deliveries", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/apps#list-deliveries-for-an-app-webhook" + }, + "parameters": [ + { + "name": "per_page", + "description": "Results per page (max 100).", + "in": "query", + "schema": { + "type": "integer", + "default": 30 + } + }, + { + "name": "cursor", + "description": "Used for pagination: the starting delivery from which the page of deliveries is fetched. Refer to the `link` header for the next and previous page cursors.", + "in": "query", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "title": "Simple webhook delivery", + "description": "Delivery made by a webhook, without request and response information.", + "type": "object", + "properties": { + "id": { + "description": "Unique identifier of the webhook delivery.", + "type": "integer", + "example": 42 + }, + "guid": { + "description": "Unique identifier for the event (shared with all deliveries for all webhooks that subscribe to this event).", + "type": "string", + "example": "58474f00-b361-11eb-836d-0e4f3503ccbe" + }, + "delivered_at": { + "description": "Time when the webhook delivery occurred.", + "type": "string", + "format": "date-time", + "example": "2021-05-12T20:33:44Z" + }, + "redelivery": { + "description": "Whether the webhook delivery is a redelivery.", + "type": "boolean", + "example": false + }, + "duration": { + "description": "Time spent delivering.", + "type": "number", + "example": 0.03 + }, + "status": { + "description": "Describes the response returned after attempting the delivery.", + "type": "string", + "example": "failed to connect" + }, + "status_code": { + "description": "Status code received when delivery was made.", + "type": "integer", + "example": 502 + }, + "event": { + "description": "The event that triggered the delivery.", + "type": "string", + "example": "issues" + }, + "action": { + "description": "The type of activity for the event that triggered the delivery.", + "type": "string", + "example": "opened", + "nullable": true + }, + "installation_id": { + "description": "The id of the GitHub App installation associated with this event.", + "type": "integer", + "example": 123, + "nullable": true + }, + "repository_id": { + "description": "The id of the repository associated with this event.", + "type": "integer", + "example": 123, + "nullable": true + } + }, + "required": [ + "id", + "guid", + "delivered_at", + "redelivery", + "duration", + "status", + "status_code", + "event", + "action", + "installation_id", + "repository_id" + ] + } + }, + "examples": { + "default": { + "value": [ + { + "id": 12345678, + "guid": "0b989ba4-242f-11e5-81e1-c7b6966d2516", + "delivered_at": "2019-06-03T00:57:16Z", + "redelivery": false, + "duration": 0.27, + "status": "OK", + "status_code": 200, + "event": "issues", + "action": "opened", + "installation_id": 123, + "repository_id": 456 + }, + { + "id": 123456789, + "guid": "0b989ba4-242f-11e5-81e1-c7b6966d2516", + "delivered_at": "2019-06-04T00:57:16Z", + "redelivery": true, + "duration": 0.28, + "status": "OK", + "status_code": 200, + "event": "issues", + "action": "opened", + "installation_id": 123, + "repository_id": 456 + } + ] + } + } + } + } + }, + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "title": "Basic Error", + "description": "Basic Error", + "type": "object", + "properties": { + "message": { + "type": "string" + }, + "documentation_url": { + "type": "string" + }, + "url": { + "type": "string" + }, + "status": { + "type": "string" + } + } + } + }, + "application/scim+json": { + "schema": { + "title": "Scim Error", + "description": "Scim Error", + "type": "object", + "properties": { + "message": { + "type": "string", + "nullable": true + }, + "documentation_url": { + "type": "string", + "nullable": true + }, + "detail": { + "type": "string", + "nullable": true + }, + "status": { + "type": "integer" + }, + "scimType": { + "type": "string", + "nullable": true + }, + "schemas": { + "type": "array", + "items": { + "type": "string" + } + } + } + } + } + } + }, + "422": { + "description": "Validation failed", + "content": { + "application/json": { + "schema": { + "title": "Validation Error", + "description": "Validation Error", + "type": "object", + "required": [ + "message", + "documentation_url" + ], + "properties": { + "message": { + "type": "string" + }, + "documentation_url": { + "type": "string" + }, + "errors": { + "type": "array", + "items": { + "type": "object", + "required": [ + "code" + ], + "properties": { + "resource": { + "type": "string" + }, + "field": { + "type": "string" + }, + "message": { + "type": "string" + }, + "code": { + "type": "string" + }, + "index": { + "type": "integer" + }, + "value": { + "oneOf": [ + { + "type": "string", + "nullable": true + }, + { + "type": "integer", + "nullable": true + }, + { + "type": "array", + "nullable": true, + "items": { + "type": "string" + } + } + ] + } + } + } + } + } + } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [ + + ], + "category": "apps", + "subcategory": "webhooks" + } + } + }, + "/app/hook/deliveries/{delivery_id}": { + "get": { + "summary": "Get a delivery for an app webhook", + "description": "Returns a delivery for the webhook configured for a GitHub App.\n\nYou must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint.", + "tags": [ + "apps" + ], + "operationId": "apps/get-webhook-delivery", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/apps#get-a-delivery-for-an-app-webhook" + }, + "parameters": [ + { + "name": "delivery_id", + "in": "path", + "required": true, + "schema": { + "type": "integer" + } + } + ], + "responses": { + "200": { + "description": "Response", + "content": { + "application/json": { + "schema": { + "title": "Webhook delivery", + "description": "Delivery made by a webhook.", + "type": "object", + "properties": { + "id": { + "description": "Unique identifier of the delivery.", + "type": "integer", + "example": 42 + }, + "guid": { + "description": "Unique identifier for the event (shared with all deliveries for all webhooks that subscribe to this event).", + "type": "string", + "example": "58474f00-b361-11eb-836d-0e4f3503ccbe" + }, + "delivered_at": { + "description": "Time when the delivery was delivered.", + "type": "string", + "format": "date-time", + "example": "2021-05-12T20:33:44Z" + }, + "redelivery": { + "description": "Whether the delivery is a redelivery.", + "type": "boolean", + "example": false + }, + "duration": { + "description": "Time spent delivering.", + "type": "number", + "example": 0.03 + }, + "status": { + "description": "Description of the status of the attempted delivery", + "type": "string", + "example": "failed to connect" + }, + "status_code": { + "description": "Status code received when delivery was made.", + "type": "integer", + "example": 502 + }, + "event": { + "description": "The event that triggered the delivery.", + "type": "string", + "example": "issues" + }, + "action": { + "description": "The type of activity for the event that triggered the delivery.", + "type": "string", + "example": "opened", + "nullable": true + }, + "installation_id": { + "description": "The id of the GitHub App installation associated with this event.", + "type": "integer", + "example": 123, + "nullable": true + }, + "repository_id": { + "description": "The id of the repository associated with this event.", + "type": "integer", + "example": 123, + "nullable": true + }, + "request": { + "type": "object", + "properties": { + "headers": { + "description": "The request headers sent with the webhook delivery.", + "type": "object", + "nullable": true, + "additionalProperties": true + }, + "payload": { + "description": "The webhook payload.", + "type": "object", + "nullable": true, + "additionalProperties": true + } + }, + "required": [ + "headers", + "payload" + ] + }, + "response": { + "type": "object", + "properties": { + "headers": { + "description": "The response headers received when the delivery was made.", + "type": "object", + "nullable": true, + "additionalProperties": true + }, + "payload": { + "description": "The response payload received.", + "type": "string", + "nullable": true, + "additionalProperties": true + } + }, + "required": [ + "headers", + "payload" + ] + } + }, + "required": [ + "id", + "guid", + "delivered_at", + "redelivery", + "duration", + "status", + "status_code", + "event", + "action", + "installation_id", + "repository_id", + "request", + "response" + ] + }, + "examples": { + "default": { + "value": { + "id": 12345678, + "guid": "0b989ba4-242f-11e5-81e1-c7b6966d2516", + "delivered_at": "2019-06-03T00:57:16Z", + "redelivery": false, + "duration": 0.27, + "status": "OK", + "status_code": 200, + "event": "issues", + "action": "opened", + "installation_id": 123, + "repository_id": 456, + "request": { + "headers": { + "X-GitHub-Delivery": "0b989ba4-242f-11e5-81e1-c7b6966d2516", + "X-Hub-Signature-256": "sha256=6dcb09b5b57875f334f61aebed695e2e4193db5e", + "Accept": "*/*", + "X-GitHub-Hook-ID": "42", + "User-Agent": "GitHub-Hookshot/b8c71d8", + "X-GitHub-Event": "issues", + "X-GitHub-Hook-Installation-Target-ID": "123", + "X-GitHub-Hook-Installation-Target-Type": "repository", + "content-type": "application/json", + "X-Hub-Signature": "sha1=a84d88e7554fc1fa21bcbc4efae3c782a70d2b9d" + }, + "payload": { + "action": "opened", + "issue": { + "body": "foo" + }, + "repository": { + "id": 123 + } + } + }, + "response": { + "headers": { + "Content-Type": "text/html;charset=utf-8" + }, + "payload": "ok" + } + } + } + } + } + } + }, + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "title": "Basic Error", + "description": "Basic Error", + "type": "object", + "properties": { + "message": { + "type": "string" + }, + "documentation_url": { + "type": "string" + }, + "url": { + "type": "string" + }, + "status": { + "type": "string" + } + } + } + }, + "application/scim+json": { + "schema": { + "title": "Scim Error", + "description": "Scim Error", + "type": "object", + "properties": { + "message": { + "type": "string", + "nullable": true + }, + "documentation_url": { + "type": "string", + "nullable": true + }, + "detail": { + "type": "string", + "nullable": true + }, + "status": { + "type": "integer" + }, + "scimType": { + "type": "string", + "nullable": true + }, + "schemas": { + "type": "array", + "items": { + "type": "string" + } + } + } + } + } + } + }, + "422": { + "description": "Validation failed", + "content": { + "application/json": { + "schema": { + "title": "Validation Error", + "description": "Validation Error", + "type": "object", + "required": [ + "message", + "documentation_url" + ], + "properties": { + "message": { + "type": "string" + }, + "documentation_url": { + "type": "string" + }, + "errors": { + "type": "array", + "items": { + "type": "object", + "required": [ + "code" + ], + "properties": { + "resource": { + "type": "string" + }, + "field": { + "type": "string" + }, + "message": { + "type": "string" + }, + "code": { + "type": "string" + }, + "index": { + "type": "integer" + }, + "value": { + "oneOf": [ + { + "type": "string", + "nullable": true + }, + { + "type": "integer", + "nullable": true + }, + { + "type": "array", + "nullable": true, + "items": { + "type": "string" + } + } + ] + } + } + } + } + } + } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [ + + ], + "category": "apps", + "subcategory": "webhooks" + } + } + }, + "/app/hook/deliveries/{delivery_id}/attempts": { + "post": { + "summary": "Redeliver a delivery for an app webhook", + "description": "Redeliver a delivery for the webhook configured for a GitHub App.\n\nYou must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint.", + "tags": [ + "apps" + ], + "operationId": "apps/redeliver-webhook-delivery", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/apps#redeliver-a-delivery-for-an-app-webhook" + }, + "parameters": [ + { + "name": "delivery_id", + "in": "path", + "required": true, + "schema": { + "type": "integer" + } + } + ], + "responses": { + "202": { + "description": "Accepted", + "content": { + "application/json": { + "schema": { + "type": "object" + } + } + } + }, + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "title": "Basic Error", + "description": "Basic Error", + "type": "object", + "properties": { + "message": { + "type": "string" + }, + "documentation_url": { + "type": "string" + }, + "url": { + "type": "string" + }, + "status": { + "type": "string" + } + } + } + }, + "application/scim+json": { + "schema": { + "title": "Scim Error", + "description": "Scim Error", + "type": "object", + "properties": { + "message": { + "type": "string", + "nullable": true + }, + "documentation_url": { + "type": "string", + "nullable": true + }, + "detail": { + "type": "string", + "nullable": true + }, + "status": { + "type": "integer" + }, + "scimType": { + "type": "string", + "nullable": true + }, + "schemas": { + "type": "array", + "items": { + "type": "string" + } + } + } + } + } + } + }, + "422": { + "description": "Validation failed", + "content": { + "application/json": { + "schema": { + "title": "Validation Error", + "description": "Validation Error", + "type": "object", + "required": [ + "message", + "documentation_url" + ], + "properties": { + "message": { + "type": "string" + }, + "documentation_url": { + "type": "string" + }, + "errors": { + "type": "array", + "items": { + "type": "object", + "required": [ + "code" + ], + "properties": { + "resource": { + "type": "string" + }, + "field": { + "type": "string" + }, + "message": { + "type": "string" + }, + "code": { + "type": "string" + }, + "index": { + "type": "integer" + }, + "value": { + "oneOf": [ + { + "type": "string", + "nullable": true + }, + { + "type": "integer", + "nullable": true + }, + { + "type": "array", + "nullable": true, + "items": { + "type": "string" + } + } + ] + } + } + } + } + } + } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [ + + ], + "category": "apps", + "subcategory": "webhooks" + } + } + }, "/app/installations": { "get": { "summary": "List installations for the authenticated app", @@ -67347,6 +68156,11 @@ "format": "uri", "example": "https://api.github.com/orgs/octocat/hooks/1/pings" }, + "deliveries_url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/orgs/octocat/hooks/1/deliveries" + }, "name": { "type": "string", "example": "web" @@ -67622,6 +68436,11 @@ "format": "uri", "example": "https://api.github.com/orgs/octocat/hooks/1/pings" }, + "deliveries_url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/orgs/octocat/hooks/1/deliveries" + }, "name": { "type": "string", "example": "web" @@ -67882,6 +68701,11 @@ "format": "uri", "example": "https://api.github.com/orgs/octocat/hooks/1/pings" }, + "deliveries_url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/orgs/octocat/hooks/1/deliveries" + }, "name": { "type": "string", "example": "web" @@ -68136,6 +68960,11 @@ "format": "uri", "example": "https://api.github.com/orgs/octocat/hooks/1/pings" }, + "deliveries_url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/orgs/octocat/hooks/1/deliveries" + }, "name": { "type": "string", "example": "web" @@ -68637,6 +69466,863 @@ } } }, + "/orgs/{org}/hooks/{hook_id}/deliveries": { + "get": { + "summary": "List deliveries for an organization webhook", + "description": "Returns a list of webhook deliveries for a webhook configured in an organization.", + "tags": [ + "orgs" + ], + "operationId": "orgs/list-webhook-deliveries", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/orgs#list-deliveries-for-an-organization-webhook" + }, + "parameters": [ + { + "name": "org", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "hook_id", + "in": "path", + "required": true, + "schema": { + "type": "integer" + } + }, + { + "name": "per_page", + "description": "Results per page (max 100).", + "in": "query", + "schema": { + "type": "integer", + "default": 30 + } + }, + { + "name": "cursor", + "description": "Used for pagination: the starting delivery from which the page of deliveries is fetched. Refer to the `link` header for the next and previous page cursors.", + "in": "query", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "title": "Simple webhook delivery", + "description": "Delivery made by a webhook, without request and response information.", + "type": "object", + "properties": { + "id": { + "description": "Unique identifier of the webhook delivery.", + "type": "integer", + "example": 42 + }, + "guid": { + "description": "Unique identifier for the event (shared with all deliveries for all webhooks that subscribe to this event).", + "type": "string", + "example": "58474f00-b361-11eb-836d-0e4f3503ccbe" + }, + "delivered_at": { + "description": "Time when the webhook delivery occurred.", + "type": "string", + "format": "date-time", + "example": "2021-05-12T20:33:44Z" + }, + "redelivery": { + "description": "Whether the webhook delivery is a redelivery.", + "type": "boolean", + "example": false + }, + "duration": { + "description": "Time spent delivering.", + "type": "number", + "example": 0.03 + }, + "status": { + "description": "Describes the response returned after attempting the delivery.", + "type": "string", + "example": "failed to connect" + }, + "status_code": { + "description": "Status code received when delivery was made.", + "type": "integer", + "example": 502 + }, + "event": { + "description": "The event that triggered the delivery.", + "type": "string", + "example": "issues" + }, + "action": { + "description": "The type of activity for the event that triggered the delivery.", + "type": "string", + "example": "opened", + "nullable": true + }, + "installation_id": { + "description": "The id of the GitHub App installation associated with this event.", + "type": "integer", + "example": 123, + "nullable": true + }, + "repository_id": { + "description": "The id of the repository associated with this event.", + "type": "integer", + "example": 123, + "nullable": true + } + }, + "required": [ + "id", + "guid", + "delivered_at", + "redelivery", + "duration", + "status", + "status_code", + "event", + "action", + "installation_id", + "repository_id" + ] + } + }, + "examples": { + "default": { + "value": [ + { + "id": 12345678, + "guid": "0b989ba4-242f-11e5-81e1-c7b6966d2516", + "delivered_at": "2019-06-03T00:57:16Z", + "redelivery": false, + "duration": 0.27, + "status": "OK", + "status_code": 200, + "event": "issues", + "action": "opened", + "installation_id": 123, + "repository_id": 456 + }, + { + "id": 123456789, + "guid": "0b989ba4-242f-11e5-81e1-c7b6966d2516", + "delivered_at": "2019-06-04T00:57:16Z", + "redelivery": true, + "duration": 0.28, + "status": "OK", + "status_code": 200, + "event": "issues", + "action": "opened", + "installation_id": 123, + "repository_id": 456 + } + ] + } + } + } + } + }, + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "title": "Basic Error", + "description": "Basic Error", + "type": "object", + "properties": { + "message": { + "type": "string" + }, + "documentation_url": { + "type": "string" + }, + "url": { + "type": "string" + }, + "status": { + "type": "string" + } + } + } + }, + "application/scim+json": { + "schema": { + "title": "Scim Error", + "description": "Scim Error", + "type": "object", + "properties": { + "message": { + "type": "string", + "nullable": true + }, + "documentation_url": { + "type": "string", + "nullable": true + }, + "detail": { + "type": "string", + "nullable": true + }, + "status": { + "type": "integer" + }, + "scimType": { + "type": "string", + "nullable": true + }, + "schemas": { + "type": "array", + "items": { + "type": "string" + } + } + } + } + } + } + }, + "422": { + "description": "Validation failed", + "content": { + "application/json": { + "schema": { + "title": "Validation Error", + "description": "Validation Error", + "type": "object", + "required": [ + "message", + "documentation_url" + ], + "properties": { + "message": { + "type": "string" + }, + "documentation_url": { + "type": "string" + }, + "errors": { + "type": "array", + "items": { + "type": "object", + "required": [ + "code" + ], + "properties": { + "resource": { + "type": "string" + }, + "field": { + "type": "string" + }, + "message": { + "type": "string" + }, + "code": { + "type": "string" + }, + "index": { + "type": "integer" + }, + "value": { + "oneOf": [ + { + "type": "string", + "nullable": true + }, + { + "type": "integer", + "nullable": true + }, + { + "type": "array", + "nullable": true, + "items": { + "type": "string" + } + } + ] + } + } + } + } + } + } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [ + + ], + "category": "orgs", + "subcategory": "webhooks" + } + } + }, + "/orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}": { + "get": { + "summary": "Get a webhook delivery for an organization webhook", + "description": "Returns a delivery for a webhook configured in an organization.", + "tags": [ + "orgs" + ], + "operationId": "orgs/get-webhook-delivery", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/orgs#get-a-webhook-delivery-for-an-organization-webhook" + }, + "parameters": [ + { + "name": "org", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "hook_id", + "in": "path", + "required": true, + "schema": { + "type": "integer" + } + }, + { + "name": "delivery_id", + "in": "path", + "required": true, + "schema": { + "type": "integer" + } + } + ], + "responses": { + "200": { + "description": "Response", + "content": { + "application/json": { + "schema": { + "title": "Webhook delivery", + "description": "Delivery made by a webhook.", + "type": "object", + "properties": { + "id": { + "description": "Unique identifier of the delivery.", + "type": "integer", + "example": 42 + }, + "guid": { + "description": "Unique identifier for the event (shared with all deliveries for all webhooks that subscribe to this event).", + "type": "string", + "example": "58474f00-b361-11eb-836d-0e4f3503ccbe" + }, + "delivered_at": { + "description": "Time when the delivery was delivered.", + "type": "string", + "format": "date-time", + "example": "2021-05-12T20:33:44Z" + }, + "redelivery": { + "description": "Whether the delivery is a redelivery.", + "type": "boolean", + "example": false + }, + "duration": { + "description": "Time spent delivering.", + "type": "number", + "example": 0.03 + }, + "status": { + "description": "Description of the status of the attempted delivery", + "type": "string", + "example": "failed to connect" + }, + "status_code": { + "description": "Status code received when delivery was made.", + "type": "integer", + "example": 502 + }, + "event": { + "description": "The event that triggered the delivery.", + "type": "string", + "example": "issues" + }, + "action": { + "description": "The type of activity for the event that triggered the delivery.", + "type": "string", + "example": "opened", + "nullable": true + }, + "installation_id": { + "description": "The id of the GitHub App installation associated with this event.", + "type": "integer", + "example": 123, + "nullable": true + }, + "repository_id": { + "description": "The id of the repository associated with this event.", + "type": "integer", + "example": 123, + "nullable": true + }, + "request": { + "type": "object", + "properties": { + "headers": { + "description": "The request headers sent with the webhook delivery.", + "type": "object", + "nullable": true, + "additionalProperties": true + }, + "payload": { + "description": "The webhook payload.", + "type": "object", + "nullable": true, + "additionalProperties": true + } + }, + "required": [ + "headers", + "payload" + ] + }, + "response": { + "type": "object", + "properties": { + "headers": { + "description": "The response headers received when the delivery was made.", + "type": "object", + "nullable": true, + "additionalProperties": true + }, + "payload": { + "description": "The response payload received.", + "type": "string", + "nullable": true, + "additionalProperties": true + } + }, + "required": [ + "headers", + "payload" + ] + } + }, + "required": [ + "id", + "guid", + "delivered_at", + "redelivery", + "duration", + "status", + "status_code", + "event", + "action", + "installation_id", + "repository_id", + "request", + "response" + ] + }, + "examples": { + "default": { + "value": { + "id": 12345678, + "guid": "0b989ba4-242f-11e5-81e1-c7b6966d2516", + "delivered_at": "2019-06-03T00:57:16Z", + "redelivery": false, + "duration": 0.27, + "status": "OK", + "status_code": 200, + "event": "issues", + "action": "opened", + "installation_id": 123, + "repository_id": 456, + "request": { + "headers": { + "X-GitHub-Delivery": "0b989ba4-242f-11e5-81e1-c7b6966d2516", + "X-Hub-Signature-256": "sha256=6dcb09b5b57875f334f61aebed695e2e4193db5e", + "Accept": "*/*", + "X-GitHub-Hook-ID": "42", + "User-Agent": "GitHub-Hookshot/b8c71d8", + "X-GitHub-Event": "issues", + "X-GitHub-Hook-Installation-Target-ID": "123", + "X-GitHub-Hook-Installation-Target-Type": "repository", + "content-type": "application/json", + "X-Hub-Signature": "sha1=a84d88e7554fc1fa21bcbc4efae3c782a70d2b9d" + }, + "payload": { + "action": "opened", + "issue": { + "body": "foo" + }, + "repository": { + "id": 123 + } + } + }, + "response": { + "headers": { + "Content-Type": "text/html;charset=utf-8" + }, + "payload": "ok" + } + } + } + } + } + } + }, + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "title": "Basic Error", + "description": "Basic Error", + "type": "object", + "properties": { + "message": { + "type": "string" + }, + "documentation_url": { + "type": "string" + }, + "url": { + "type": "string" + }, + "status": { + "type": "string" + } + } + } + }, + "application/scim+json": { + "schema": { + "title": "Scim Error", + "description": "Scim Error", + "type": "object", + "properties": { + "message": { + "type": "string", + "nullable": true + }, + "documentation_url": { + "type": "string", + "nullable": true + }, + "detail": { + "type": "string", + "nullable": true + }, + "status": { + "type": "integer" + }, + "scimType": { + "type": "string", + "nullable": true + }, + "schemas": { + "type": "array", + "items": { + "type": "string" + } + } + } + } + } + } + }, + "422": { + "description": "Validation failed", + "content": { + "application/json": { + "schema": { + "title": "Validation Error", + "description": "Validation Error", + "type": "object", + "required": [ + "message", + "documentation_url" + ], + "properties": { + "message": { + "type": "string" + }, + "documentation_url": { + "type": "string" + }, + "errors": { + "type": "array", + "items": { + "type": "object", + "required": [ + "code" + ], + "properties": { + "resource": { + "type": "string" + }, + "field": { + "type": "string" + }, + "message": { + "type": "string" + }, + "code": { + "type": "string" + }, + "index": { + "type": "integer" + }, + "value": { + "oneOf": [ + { + "type": "string", + "nullable": true + }, + { + "type": "integer", + "nullable": true + }, + { + "type": "array", + "nullable": true, + "items": { + "type": "string" + } + } + ] + } + } + } + } + } + } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [ + + ], + "category": "orgs", + "subcategory": "webhooks" + } + } + }, + "/orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}/attempts": { + "post": { + "summary": "Redeliver a delivery for an organization webhook", + "description": "Redeliver a delivery for a webhook configured in an organization.", + "tags": [ + "orgs" + ], + "operationId": "orgs/redeliver-webhook-delivery", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/orgs#redeliver-a-delivery-for-an-organization-webhook" + }, + "parameters": [ + { + "name": "org", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "hook_id", + "in": "path", + "required": true, + "schema": { + "type": "integer" + } + }, + { + "name": "delivery_id", + "in": "path", + "required": true, + "schema": { + "type": "integer" + } + } + ], + "responses": { + "202": { + "description": "Accepted", + "content": { + "application/json": { + "schema": { + "type": "object" + } + } + } + }, + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "title": "Basic Error", + "description": "Basic Error", + "type": "object", + "properties": { + "message": { + "type": "string" + }, + "documentation_url": { + "type": "string" + }, + "url": { + "type": "string" + }, + "status": { + "type": "string" + } + } + } + }, + "application/scim+json": { + "schema": { + "title": "Scim Error", + "description": "Scim Error", + "type": "object", + "properties": { + "message": { + "type": "string", + "nullable": true + }, + "documentation_url": { + "type": "string", + "nullable": true + }, + "detail": { + "type": "string", + "nullable": true + }, + "status": { + "type": "integer" + }, + "scimType": { + "type": "string", + "nullable": true + }, + "schemas": { + "type": "array", + "items": { + "type": "string" + } + } + } + } + } + } + }, + "422": { + "description": "Validation failed", + "content": { + "application/json": { + "schema": { + "title": "Validation Error", + "description": "Validation Error", + "type": "object", + "required": [ + "message", + "documentation_url" + ], + "properties": { + "message": { + "type": "string" + }, + "documentation_url": { + "type": "string" + }, + "errors": { + "type": "array", + "items": { + "type": "object", + "required": [ + "code" + ], + "properties": { + "resource": { + "type": "string" + }, + "field": { + "type": "string" + }, + "message": { + "type": "string" + }, + "code": { + "type": "string" + }, + "index": { + "type": "integer" + }, + "value": { + "oneOf": [ + { + "type": "string", + "nullable": true + }, + { + "type": "integer", + "nullable": true + }, + { + "type": "array", + "nullable": true, + "items": { + "type": "string" + } + } + ] + } + } + } + } + } + } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [ + + ], + "category": "orgs", + "subcategory": "webhooks" + } + } + }, "/orgs/{org}/hooks/{hook_id}/pings": { "post": { "summary": "Ping an organization webhook", @@ -215364,6 +217050,11 @@ "format": "uri", "example": "https://api.github.com/repos/octocat/Hello-World/hooks/1/pings" }, + "deliveries_url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/repos/octocat/Hello-World/hooks/1/deliveries" + }, "last_response": { "title": "Hook Response", "type": "object", @@ -215720,6 +217411,11 @@ "format": "uri", "example": "https://api.github.com/repos/octocat/Hello-World/hooks/1/pings" }, + "deliveries_url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/repos/octocat/Hello-World/hooks/1/deliveries" + }, "last_response": { "title": "Hook Response", "type": "object", @@ -216091,6 +217787,11 @@ "format": "uri", "example": "https://api.github.com/repos/octocat/Hello-World/hooks/1/pings" }, + "deliveries_url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/repos/octocat/Hello-World/hooks/1/deliveries" + }, "last_response": { "title": "Hook Response", "type": "object", @@ -216448,6 +218149,11 @@ "format": "uri", "example": "https://api.github.com/repos/octocat/Hello-World/hooks/1/pings" }, + "deliveries_url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/repos/octocat/Hello-World/hooks/1/deliveries" + }, "last_response": { "title": "Hook Response", "type": "object", @@ -216954,6 +218660,887 @@ } } }, + "/repos/{owner}/{repo}/hooks/{hook_id}/deliveries": { + "get": { + "summary": "List deliveries for a repository webhook", + "description": "Returns a list of webhook deliveries for a webhook configured in a repository.", + "tags": [ + "repos" + ], + "operationId": "repos/list-webhook-deliveries", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/repos#list-deliveries-for-a-repository-webhook" + }, + "parameters": [ + { + "name": "owner", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "repo", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "hook_id", + "in": "path", + "required": true, + "schema": { + "type": "integer" + } + }, + { + "name": "per_page", + "description": "Results per page (max 100).", + "in": "query", + "schema": { + "type": "integer", + "default": 30 + } + }, + { + "name": "cursor", + "description": "Used for pagination: the starting delivery from which the page of deliveries is fetched. Refer to the `link` header for the next and previous page cursors.", + "in": "query", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "title": "Simple webhook delivery", + "description": "Delivery made by a webhook, without request and response information.", + "type": "object", + "properties": { + "id": { + "description": "Unique identifier of the webhook delivery.", + "type": "integer", + "example": 42 + }, + "guid": { + "description": "Unique identifier for the event (shared with all deliveries for all webhooks that subscribe to this event).", + "type": "string", + "example": "58474f00-b361-11eb-836d-0e4f3503ccbe" + }, + "delivered_at": { + "description": "Time when the webhook delivery occurred.", + "type": "string", + "format": "date-time", + "example": "2021-05-12T20:33:44Z" + }, + "redelivery": { + "description": "Whether the webhook delivery is a redelivery.", + "type": "boolean", + "example": false + }, + "duration": { + "description": "Time spent delivering.", + "type": "number", + "example": 0.03 + }, + "status": { + "description": "Describes the response returned after attempting the delivery.", + "type": "string", + "example": "failed to connect" + }, + "status_code": { + "description": "Status code received when delivery was made.", + "type": "integer", + "example": 502 + }, + "event": { + "description": "The event that triggered the delivery.", + "type": "string", + "example": "issues" + }, + "action": { + "description": "The type of activity for the event that triggered the delivery.", + "type": "string", + "example": "opened", + "nullable": true + }, + "installation_id": { + "description": "The id of the GitHub App installation associated with this event.", + "type": "integer", + "example": 123, + "nullable": true + }, + "repository_id": { + "description": "The id of the repository associated with this event.", + "type": "integer", + "example": 123, + "nullable": true + } + }, + "required": [ + "id", + "guid", + "delivered_at", + "redelivery", + "duration", + "status", + "status_code", + "event", + "action", + "installation_id", + "repository_id" + ] + } + }, + "examples": { + "default": { + "value": [ + { + "id": 12345678, + "guid": "0b989ba4-242f-11e5-81e1-c7b6966d2516", + "delivered_at": "2019-06-03T00:57:16Z", + "redelivery": false, + "duration": 0.27, + "status": "OK", + "status_code": 200, + "event": "issues", + "action": "opened", + "installation_id": 123, + "repository_id": 456 + }, + { + "id": 123456789, + "guid": "0b989ba4-242f-11e5-81e1-c7b6966d2516", + "delivered_at": "2019-06-04T00:57:16Z", + "redelivery": true, + "duration": 0.28, + "status": "OK", + "status_code": 200, + "event": "issues", + "action": "opened", + "installation_id": 123, + "repository_id": 456 + } + ] + } + } + } + } + }, + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "title": "Basic Error", + "description": "Basic Error", + "type": "object", + "properties": { + "message": { + "type": "string" + }, + "documentation_url": { + "type": "string" + }, + "url": { + "type": "string" + }, + "status": { + "type": "string" + } + } + } + }, + "application/scim+json": { + "schema": { + "title": "Scim Error", + "description": "Scim Error", + "type": "object", + "properties": { + "message": { + "type": "string", + "nullable": true + }, + "documentation_url": { + "type": "string", + "nullable": true + }, + "detail": { + "type": "string", + "nullable": true + }, + "status": { + "type": "integer" + }, + "scimType": { + "type": "string", + "nullable": true + }, + "schemas": { + "type": "array", + "items": { + "type": "string" + } + } + } + } + } + } + }, + "422": { + "description": "Validation failed", + "content": { + "application/json": { + "schema": { + "title": "Validation Error", + "description": "Validation Error", + "type": "object", + "required": [ + "message", + "documentation_url" + ], + "properties": { + "message": { + "type": "string" + }, + "documentation_url": { + "type": "string" + }, + "errors": { + "type": "array", + "items": { + "type": "object", + "required": [ + "code" + ], + "properties": { + "resource": { + "type": "string" + }, + "field": { + "type": "string" + }, + "message": { + "type": "string" + }, + "code": { + "type": "string" + }, + "index": { + "type": "integer" + }, + "value": { + "oneOf": [ + { + "type": "string", + "nullable": true + }, + { + "type": "integer", + "nullable": true + }, + { + "type": "array", + "nullable": true, + "items": { + "type": "string" + } + } + ] + } + } + } + } + } + } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [ + + ], + "category": "repos", + "subcategory": "webhooks" + } + } + }, + "/repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}": { + "get": { + "summary": "Get a delivery for a repository webhook", + "description": "Returns a delivery for a webhook configured in a repository.", + "tags": [ + "repos" + ], + "operationId": "repos/get-webhook-delivery", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/repos#get-a-delivery-for-a-repository-webhook" + }, + "parameters": [ + { + "name": "owner", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "repo", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "hook_id", + "in": "path", + "required": true, + "schema": { + "type": "integer" + } + }, + { + "name": "delivery_id", + "in": "path", + "required": true, + "schema": { + "type": "integer" + } + } + ], + "responses": { + "200": { + "description": "Response", + "content": { + "application/json": { + "schema": { + "title": "Webhook delivery", + "description": "Delivery made by a webhook.", + "type": "object", + "properties": { + "id": { + "description": "Unique identifier of the delivery.", + "type": "integer", + "example": 42 + }, + "guid": { + "description": "Unique identifier for the event (shared with all deliveries for all webhooks that subscribe to this event).", + "type": "string", + "example": "58474f00-b361-11eb-836d-0e4f3503ccbe" + }, + "delivered_at": { + "description": "Time when the delivery was delivered.", + "type": "string", + "format": "date-time", + "example": "2021-05-12T20:33:44Z" + }, + "redelivery": { + "description": "Whether the delivery is a redelivery.", + "type": "boolean", + "example": false + }, + "duration": { + "description": "Time spent delivering.", + "type": "number", + "example": 0.03 + }, + "status": { + "description": "Description of the status of the attempted delivery", + "type": "string", + "example": "failed to connect" + }, + "status_code": { + "description": "Status code received when delivery was made.", + "type": "integer", + "example": 502 + }, + "event": { + "description": "The event that triggered the delivery.", + "type": "string", + "example": "issues" + }, + "action": { + "description": "The type of activity for the event that triggered the delivery.", + "type": "string", + "example": "opened", + "nullable": true + }, + "installation_id": { + "description": "The id of the GitHub App installation associated with this event.", + "type": "integer", + "example": 123, + "nullable": true + }, + "repository_id": { + "description": "The id of the repository associated with this event.", + "type": "integer", + "example": 123, + "nullable": true + }, + "request": { + "type": "object", + "properties": { + "headers": { + "description": "The request headers sent with the webhook delivery.", + "type": "object", + "nullable": true, + "additionalProperties": true + }, + "payload": { + "description": "The webhook payload.", + "type": "object", + "nullable": true, + "additionalProperties": true + } + }, + "required": [ + "headers", + "payload" + ] + }, + "response": { + "type": "object", + "properties": { + "headers": { + "description": "The response headers received when the delivery was made.", + "type": "object", + "nullable": true, + "additionalProperties": true + }, + "payload": { + "description": "The response payload received.", + "type": "string", + "nullable": true, + "additionalProperties": true + } + }, + "required": [ + "headers", + "payload" + ] + } + }, + "required": [ + "id", + "guid", + "delivered_at", + "redelivery", + "duration", + "status", + "status_code", + "event", + "action", + "installation_id", + "repository_id", + "request", + "response" + ] + }, + "examples": { + "default": { + "value": { + "id": 12345678, + "guid": "0b989ba4-242f-11e5-81e1-c7b6966d2516", + "delivered_at": "2019-06-03T00:57:16Z", + "redelivery": false, + "duration": 0.27, + "status": "OK", + "status_code": 200, + "event": "issues", + "action": "opened", + "installation_id": 123, + "repository_id": 456, + "request": { + "headers": { + "X-GitHub-Delivery": "0b989ba4-242f-11e5-81e1-c7b6966d2516", + "X-Hub-Signature-256": "sha256=6dcb09b5b57875f334f61aebed695e2e4193db5e", + "Accept": "*/*", + "X-GitHub-Hook-ID": "42", + "User-Agent": "GitHub-Hookshot/b8c71d8", + "X-GitHub-Event": "issues", + "X-GitHub-Hook-Installation-Target-ID": "123", + "X-GitHub-Hook-Installation-Target-Type": "repository", + "content-type": "application/json", + "X-Hub-Signature": "sha1=a84d88e7554fc1fa21bcbc4efae3c782a70d2b9d" + }, + "payload": { + "action": "opened", + "issue": { + "body": "foo" + }, + "repository": { + "id": 123 + } + } + }, + "response": { + "headers": { + "Content-Type": "text/html;charset=utf-8" + }, + "payload": "ok" + } + } + } + } + } + } + }, + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "title": "Basic Error", + "description": "Basic Error", + "type": "object", + "properties": { + "message": { + "type": "string" + }, + "documentation_url": { + "type": "string" + }, + "url": { + "type": "string" + }, + "status": { + "type": "string" + } + } + } + }, + "application/scim+json": { + "schema": { + "title": "Scim Error", + "description": "Scim Error", + "type": "object", + "properties": { + "message": { + "type": "string", + "nullable": true + }, + "documentation_url": { + "type": "string", + "nullable": true + }, + "detail": { + "type": "string", + "nullable": true + }, + "status": { + "type": "integer" + }, + "scimType": { + "type": "string", + "nullable": true + }, + "schemas": { + "type": "array", + "items": { + "type": "string" + } + } + } + } + } + } + }, + "422": { + "description": "Validation failed", + "content": { + "application/json": { + "schema": { + "title": "Validation Error", + "description": "Validation Error", + "type": "object", + "required": [ + "message", + "documentation_url" + ], + "properties": { + "message": { + "type": "string" + }, + "documentation_url": { + "type": "string" + }, + "errors": { + "type": "array", + "items": { + "type": "object", + "required": [ + "code" + ], + "properties": { + "resource": { + "type": "string" + }, + "field": { + "type": "string" + }, + "message": { + "type": "string" + }, + "code": { + "type": "string" + }, + "index": { + "type": "integer" + }, + "value": { + "oneOf": [ + { + "type": "string", + "nullable": true + }, + { + "type": "integer", + "nullable": true + }, + { + "type": "array", + "nullable": true, + "items": { + "type": "string" + } + } + ] + } + } + } + } + } + } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [ + + ], + "category": "repos", + "subcategory": "webhooks" + } + } + }, + "/repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}/attempts": { + "post": { + "summary": "Redeliver a delivery for a repository webhook", + "description": "Redeliver a webhook delivery for a webhook configured in a repository.", + "tags": [ + "repos" + ], + "operationId": "repos/redeliver-webhook-delivery", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/repos#redeliver-a-delivery-for-a-repository-webhook" + }, + "parameters": [ + { + "name": "owner", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "repo", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "hook_id", + "in": "path", + "required": true, + "schema": { + "type": "integer" + } + }, + { + "name": "delivery_id", + "in": "path", + "required": true, + "schema": { + "type": "integer" + } + } + ], + "responses": { + "202": { + "description": "Accepted", + "content": { + "application/json": { + "schema": { + "type": "object" + } + } + } + }, + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "title": "Basic Error", + "description": "Basic Error", + "type": "object", + "properties": { + "message": { + "type": "string" + }, + "documentation_url": { + "type": "string" + }, + "url": { + "type": "string" + }, + "status": { + "type": "string" + } + } + } + }, + "application/scim+json": { + "schema": { + "title": "Scim Error", + "description": "Scim Error", + "type": "object", + "properties": { + "message": { + "type": "string", + "nullable": true + }, + "documentation_url": { + "type": "string", + "nullable": true + }, + "detail": { + "type": "string", + "nullable": true + }, + "status": { + "type": "integer" + }, + "scimType": { + "type": "string", + "nullable": true + }, + "schemas": { + "type": "array", + "items": { + "type": "string" + } + } + } + } + } + } + }, + "422": { + "description": "Validation failed", + "content": { + "application/json": { + "schema": { + "title": "Validation Error", + "description": "Validation Error", + "type": "object", + "required": [ + "message", + "documentation_url" + ], + "properties": { + "message": { + "type": "string" + }, + "documentation_url": { + "type": "string" + }, + "errors": { + "type": "array", + "items": { + "type": "object", + "required": [ + "code" + ], + "properties": { + "resource": { + "type": "string" + }, + "field": { + "type": "string" + }, + "message": { + "type": "string" + }, + "code": { + "type": "string" + }, + "index": { + "type": "integer" + }, + "value": { + "oneOf": [ + { + "type": "string", + "nullable": true + }, + { + "type": "integer", + "nullable": true + }, + { + "type": "array", + "nullable": true, + "items": { + "type": "string" + } + } + ] + } + } + } + } + } + } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [ + + ], + "category": "repos", + "subcategory": "webhooks" + } + } + }, "/repos/{owner}/{repo}/hooks/{hook_id}/pings": { "post": { "summary": "Ping a repository webhook", diff --git a/lib/rest/static/dereferenced/ghes-2.18.deref.json b/lib/rest/static/dereferenced/ghes-2.18.deref.json index 868b89314b..09674f4405 100644 --- a/lib/rest/static/dereferenced/ghes-2.18.deref.json +++ b/lib/rest/static/dereferenced/ghes-2.18.deref.json @@ -49060,6 +49060,11 @@ "format": "uri", "example": "https://api.github.com/orgs/octocat/hooks/1/pings" }, + "deliveries_url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/orgs/octocat/hooks/1/deliveries" + }, "name": { "type": "string", "example": "web" @@ -49335,6 +49340,11 @@ "format": "uri", "example": "https://api.github.com/orgs/octocat/hooks/1/pings" }, + "deliveries_url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/orgs/octocat/hooks/1/deliveries" + }, "name": { "type": "string", "example": "web" @@ -49595,6 +49605,11 @@ "format": "uri", "example": "https://api.github.com/orgs/octocat/hooks/1/pings" }, + "deliveries_url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/orgs/octocat/hooks/1/deliveries" + }, "name": { "type": "string", "example": "web" @@ -49849,6 +49864,11 @@ "format": "uri", "example": "https://api.github.com/orgs/octocat/hooks/1/pings" }, + "deliveries_url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/orgs/octocat/hooks/1/deliveries" + }, "name": { "type": "string", "example": "web" @@ -142269,6 +142289,11 @@ "format": "uri", "example": "https://api.github.com/repos/octocat/Hello-World/hooks/1/pings" }, + "deliveries_url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/repos/octocat/Hello-World/hooks/1/deliveries" + }, "last_response": { "title": "Hook Response", "type": "object", @@ -142625,6 +142650,11 @@ "format": "uri", "example": "https://api.github.com/repos/octocat/Hello-World/hooks/1/pings" }, + "deliveries_url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/repos/octocat/Hello-World/hooks/1/deliveries" + }, "last_response": { "title": "Hook Response", "type": "object", @@ -142996,6 +143026,11 @@ "format": "uri", "example": "https://api.github.com/repos/octocat/Hello-World/hooks/1/pings" }, + "deliveries_url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/repos/octocat/Hello-World/hooks/1/deliveries" + }, "last_response": { "title": "Hook Response", "type": "object", @@ -143353,6 +143388,11 @@ "format": "uri", "example": "https://api.github.com/repos/octocat/Hello-World/hooks/1/pings" }, + "deliveries_url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/repos/octocat/Hello-World/hooks/1/deliveries" + }, "last_response": { "title": "Hook Response", "type": "object", diff --git a/lib/rest/static/dereferenced/ghes-2.19.deref.json b/lib/rest/static/dereferenced/ghes-2.19.deref.json index 246c9a3be7..7ff4addb3a 100644 --- a/lib/rest/static/dereferenced/ghes-2.19.deref.json +++ b/lib/rest/static/dereferenced/ghes-2.19.deref.json @@ -49115,6 +49115,11 @@ "format": "uri", "example": "https://api.github.com/orgs/octocat/hooks/1/pings" }, + "deliveries_url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/orgs/octocat/hooks/1/deliveries" + }, "name": { "type": "string", "example": "web" @@ -49390,6 +49395,11 @@ "format": "uri", "example": "https://api.github.com/orgs/octocat/hooks/1/pings" }, + "deliveries_url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/orgs/octocat/hooks/1/deliveries" + }, "name": { "type": "string", "example": "web" @@ -49650,6 +49660,11 @@ "format": "uri", "example": "https://api.github.com/orgs/octocat/hooks/1/pings" }, + "deliveries_url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/orgs/octocat/hooks/1/deliveries" + }, "name": { "type": "string", "example": "web" @@ -49904,6 +49919,11 @@ "format": "uri", "example": "https://api.github.com/orgs/octocat/hooks/1/pings" }, + "deliveries_url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/orgs/octocat/hooks/1/deliveries" + }, "name": { "type": "string", "example": "web" @@ -145590,6 +145610,11 @@ "format": "uri", "example": "https://api.github.com/repos/octocat/Hello-World/hooks/1/pings" }, + "deliveries_url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/repos/octocat/Hello-World/hooks/1/deliveries" + }, "last_response": { "title": "Hook Response", "type": "object", @@ -145946,6 +145971,11 @@ "format": "uri", "example": "https://api.github.com/repos/octocat/Hello-World/hooks/1/pings" }, + "deliveries_url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/repos/octocat/Hello-World/hooks/1/deliveries" + }, "last_response": { "title": "Hook Response", "type": "object", @@ -146317,6 +146347,11 @@ "format": "uri", "example": "https://api.github.com/repos/octocat/Hello-World/hooks/1/pings" }, + "deliveries_url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/repos/octocat/Hello-World/hooks/1/deliveries" + }, "last_response": { "title": "Hook Response", "type": "object", @@ -146674,6 +146709,11 @@ "format": "uri", "example": "https://api.github.com/repos/octocat/Hello-World/hooks/1/pings" }, + "deliveries_url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/repos/octocat/Hello-World/hooks/1/deliveries" + }, "last_response": { "title": "Hook Response", "type": "object", diff --git a/lib/rest/static/dereferenced/ghes-2.20.deref.json b/lib/rest/static/dereferenced/ghes-2.20.deref.json index 8da102b6ea..607eed7dcc 100644 --- a/lib/rest/static/dereferenced/ghes-2.20.deref.json +++ b/lib/rest/static/dereferenced/ghes-2.20.deref.json @@ -52251,6 +52251,11 @@ "format": "uri", "example": "https://api.github.com/orgs/octocat/hooks/1/pings" }, + "deliveries_url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/orgs/octocat/hooks/1/deliveries" + }, "name": { "type": "string", "example": "web" @@ -52526,6 +52531,11 @@ "format": "uri", "example": "https://api.github.com/orgs/octocat/hooks/1/pings" }, + "deliveries_url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/orgs/octocat/hooks/1/deliveries" + }, "name": { "type": "string", "example": "web" @@ -52786,6 +52796,11 @@ "format": "uri", "example": "https://api.github.com/orgs/octocat/hooks/1/pings" }, + "deliveries_url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/orgs/octocat/hooks/1/deliveries" + }, "name": { "type": "string", "example": "web" @@ -53040,6 +53055,11 @@ "format": "uri", "example": "https://api.github.com/orgs/octocat/hooks/1/pings" }, + "deliveries_url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/orgs/octocat/hooks/1/deliveries" + }, "name": { "type": "string", "example": "web" @@ -147961,6 +147981,11 @@ "format": "uri", "example": "https://api.github.com/repos/octocat/Hello-World/hooks/1/pings" }, + "deliveries_url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/repos/octocat/Hello-World/hooks/1/deliveries" + }, "last_response": { "title": "Hook Response", "type": "object", @@ -148317,6 +148342,11 @@ "format": "uri", "example": "https://api.github.com/repos/octocat/Hello-World/hooks/1/pings" }, + "deliveries_url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/repos/octocat/Hello-World/hooks/1/deliveries" + }, "last_response": { "title": "Hook Response", "type": "object", @@ -148688,6 +148718,11 @@ "format": "uri", "example": "https://api.github.com/repos/octocat/Hello-World/hooks/1/pings" }, + "deliveries_url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/repos/octocat/Hello-World/hooks/1/deliveries" + }, "last_response": { "title": "Hook Response", "type": "object", @@ -149045,6 +149080,11 @@ "format": "uri", "example": "https://api.github.com/repos/octocat/Hello-World/hooks/1/pings" }, + "deliveries_url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/repos/octocat/Hello-World/hooks/1/deliveries" + }, "last_response": { "title": "Hook Response", "type": "object", diff --git a/lib/rest/static/dereferenced/ghes-2.21.deref.json b/lib/rest/static/dereferenced/ghes-2.21.deref.json index 7b15beb31a..8f58334aba 100644 --- a/lib/rest/static/dereferenced/ghes-2.21.deref.json +++ b/lib/rest/static/dereferenced/ghes-2.21.deref.json @@ -52327,6 +52327,11 @@ "format": "uri", "example": "https://api.github.com/orgs/octocat/hooks/1/pings" }, + "deliveries_url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/orgs/octocat/hooks/1/deliveries" + }, "name": { "type": "string", "example": "web" @@ -52602,6 +52607,11 @@ "format": "uri", "example": "https://api.github.com/orgs/octocat/hooks/1/pings" }, + "deliveries_url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/orgs/octocat/hooks/1/deliveries" + }, "name": { "type": "string", "example": "web" @@ -52862,6 +52872,11 @@ "format": "uri", "example": "https://api.github.com/orgs/octocat/hooks/1/pings" }, + "deliveries_url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/orgs/octocat/hooks/1/deliveries" + }, "name": { "type": "string", "example": "web" @@ -53116,6 +53131,11 @@ "format": "uri", "example": "https://api.github.com/orgs/octocat/hooks/1/pings" }, + "deliveries_url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/orgs/octocat/hooks/1/deliveries" + }, "name": { "type": "string", "example": "web" @@ -160137,6 +160157,11 @@ "format": "uri", "example": "https://api.github.com/repos/octocat/Hello-World/hooks/1/pings" }, + "deliveries_url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/repos/octocat/Hello-World/hooks/1/deliveries" + }, "last_response": { "title": "Hook Response", "type": "object", @@ -160493,6 +160518,11 @@ "format": "uri", "example": "https://api.github.com/repos/octocat/Hello-World/hooks/1/pings" }, + "deliveries_url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/repos/octocat/Hello-World/hooks/1/deliveries" + }, "last_response": { "title": "Hook Response", "type": "object", @@ -160864,6 +160894,11 @@ "format": "uri", "example": "https://api.github.com/repos/octocat/Hello-World/hooks/1/pings" }, + "deliveries_url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/repos/octocat/Hello-World/hooks/1/deliveries" + }, "last_response": { "title": "Hook Response", "type": "object", @@ -161221,6 +161256,11 @@ "format": "uri", "example": "https://api.github.com/repos/octocat/Hello-World/hooks/1/pings" }, + "deliveries_url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/repos/octocat/Hello-World/hooks/1/deliveries" + }, "last_response": { "title": "Hook Response", "type": "object", diff --git a/lib/rest/static/dereferenced/ghes-2.22.deref.json b/lib/rest/static/dereferenced/ghes-2.22.deref.json index 9e128db9a1..02925c4994 100644 --- a/lib/rest/static/dereferenced/ghes-2.22.deref.json +++ b/lib/rest/static/dereferenced/ghes-2.22.deref.json @@ -64800,6 +64800,11 @@ "format": "uri", "example": "https://api.github.com/orgs/octocat/hooks/1/pings" }, + "deliveries_url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/orgs/octocat/hooks/1/deliveries" + }, "name": { "type": "string", "example": "web" @@ -65075,6 +65080,11 @@ "format": "uri", "example": "https://api.github.com/orgs/octocat/hooks/1/pings" }, + "deliveries_url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/orgs/octocat/hooks/1/deliveries" + }, "name": { "type": "string", "example": "web" @@ -65335,6 +65345,11 @@ "format": "uri", "example": "https://api.github.com/orgs/octocat/hooks/1/pings" }, + "deliveries_url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/orgs/octocat/hooks/1/deliveries" + }, "name": { "type": "string", "example": "web" @@ -65589,6 +65604,11 @@ "format": "uri", "example": "https://api.github.com/orgs/octocat/hooks/1/pings" }, + "deliveries_url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/orgs/octocat/hooks/1/deliveries" + }, "name": { "type": "string", "example": "web" @@ -192344,6 +192364,11 @@ "format": "uri", "example": "https://api.github.com/repos/octocat/Hello-World/hooks/1/pings" }, + "deliveries_url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/repos/octocat/Hello-World/hooks/1/deliveries" + }, "last_response": { "title": "Hook Response", "type": "object", @@ -192700,6 +192725,11 @@ "format": "uri", "example": "https://api.github.com/repos/octocat/Hello-World/hooks/1/pings" }, + "deliveries_url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/repos/octocat/Hello-World/hooks/1/deliveries" + }, "last_response": { "title": "Hook Response", "type": "object", @@ -193071,6 +193101,11 @@ "format": "uri", "example": "https://api.github.com/repos/octocat/Hello-World/hooks/1/pings" }, + "deliveries_url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/repos/octocat/Hello-World/hooks/1/deliveries" + }, "last_response": { "title": "Hook Response", "type": "object", @@ -193428,6 +193463,11 @@ "format": "uri", "example": "https://api.github.com/repos/octocat/Hello-World/hooks/1/pings" }, + "deliveries_url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/repos/octocat/Hello-World/hooks/1/deliveries" + }, "last_response": { "title": "Hook Response", "type": "object", diff --git a/lib/rest/static/dereferenced/ghes-3.0.deref.json b/lib/rest/static/dereferenced/ghes-3.0.deref.json index 9a155d3459..e410663f52 100644 --- a/lib/rest/static/dereferenced/ghes-3.0.deref.json +++ b/lib/rest/static/dereferenced/ghes-3.0.deref.json @@ -69735,6 +69735,11 @@ "format": "uri", "example": "https://api.github.com/orgs/octocat/hooks/1/pings" }, + "deliveries_url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/orgs/octocat/hooks/1/deliveries" + }, "name": { "type": "string", "example": "web" @@ -70010,6 +70015,11 @@ "format": "uri", "example": "https://api.github.com/orgs/octocat/hooks/1/pings" }, + "deliveries_url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/orgs/octocat/hooks/1/deliveries" + }, "name": { "type": "string", "example": "web" @@ -70270,6 +70280,11 @@ "format": "uri", "example": "https://api.github.com/orgs/octocat/hooks/1/pings" }, + "deliveries_url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/orgs/octocat/hooks/1/deliveries" + }, "name": { "type": "string", "example": "web" @@ -70524,6 +70539,11 @@ "format": "uri", "example": "https://api.github.com/orgs/octocat/hooks/1/pings" }, + "deliveries_url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/orgs/octocat/hooks/1/deliveries" + }, "name": { "type": "string", "example": "web" @@ -198687,6 +198707,11 @@ "format": "uri", "example": "https://api.github.com/repos/octocat/Hello-World/hooks/1/pings" }, + "deliveries_url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/repos/octocat/Hello-World/hooks/1/deliveries" + }, "last_response": { "title": "Hook Response", "type": "object", @@ -199043,6 +199068,11 @@ "format": "uri", "example": "https://api.github.com/repos/octocat/Hello-World/hooks/1/pings" }, + "deliveries_url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/repos/octocat/Hello-World/hooks/1/deliveries" + }, "last_response": { "title": "Hook Response", "type": "object", @@ -199414,6 +199444,11 @@ "format": "uri", "example": "https://api.github.com/repos/octocat/Hello-World/hooks/1/pings" }, + "deliveries_url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/repos/octocat/Hello-World/hooks/1/deliveries" + }, "last_response": { "title": "Hook Response", "type": "object", @@ -199771,6 +199806,11 @@ "format": "uri", "example": "https://api.github.com/repos/octocat/Hello-World/hooks/1/pings" }, + "deliveries_url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/repos/octocat/Hello-World/hooks/1/deliveries" + }, "last_response": { "title": "Hook Response", "type": "object", diff --git a/lib/rest/static/dereferenced/ghes-3.1.deref.json b/lib/rest/static/dereferenced/ghes-3.1.deref.json index 06d4702e4f..8e7b083563 100644 --- a/lib/rest/static/dereferenced/ghes-3.1.deref.json +++ b/lib/rest/static/dereferenced/ghes-3.1.deref.json @@ -70055,6 +70055,11 @@ "format": "uri", "example": "https://api.github.com/orgs/octocat/hooks/1/pings" }, + "deliveries_url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/orgs/octocat/hooks/1/deliveries" + }, "name": { "type": "string", "example": "web" @@ -70330,6 +70335,11 @@ "format": "uri", "example": "https://api.github.com/orgs/octocat/hooks/1/pings" }, + "deliveries_url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/orgs/octocat/hooks/1/deliveries" + }, "name": { "type": "string", "example": "web" @@ -70590,6 +70600,11 @@ "format": "uri", "example": "https://api.github.com/orgs/octocat/hooks/1/pings" }, + "deliveries_url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/orgs/octocat/hooks/1/deliveries" + }, "name": { "type": "string", "example": "web" @@ -70844,6 +70859,11 @@ "format": "uri", "example": "https://api.github.com/orgs/octocat/hooks/1/pings" }, + "deliveries_url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/orgs/octocat/hooks/1/deliveries" + }, "name": { "type": "string", "example": "web" @@ -201684,6 +201704,11 @@ "format": "uri", "example": "https://api.github.com/repos/octocat/Hello-World/hooks/1/pings" }, + "deliveries_url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/repos/octocat/Hello-World/hooks/1/deliveries" + }, "last_response": { "title": "Hook Response", "type": "object", @@ -202040,6 +202065,11 @@ "format": "uri", "example": "https://api.github.com/repos/octocat/Hello-World/hooks/1/pings" }, + "deliveries_url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/repos/octocat/Hello-World/hooks/1/deliveries" + }, "last_response": { "title": "Hook Response", "type": "object", @@ -202411,6 +202441,11 @@ "format": "uri", "example": "https://api.github.com/repos/octocat/Hello-World/hooks/1/pings" }, + "deliveries_url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/repos/octocat/Hello-World/hooks/1/deliveries" + }, "last_response": { "title": "Hook Response", "type": "object", @@ -202768,6 +202803,11 @@ "format": "uri", "example": "https://api.github.com/repos/octocat/Hello-World/hooks/1/pings" }, + "deliveries_url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/repos/octocat/Hello-World/hooks/1/deliveries" + }, "last_response": { "title": "Hook Response", "type": "object", diff --git a/lib/rest/static/dereferenced/github.ae.deref.json b/lib/rest/static/dereferenced/github.ae.deref.json index 3489901340..dff2a43795 100644 --- a/lib/rest/static/dereferenced/github.ae.deref.json +++ b/lib/rest/static/dereferenced/github.ae.deref.json @@ -4986,6 +4986,814 @@ } } }, + "/app/hook/deliveries": { + "get": { + "summary": "List deliveries for an app webhook", + "description": "Returns a list of webhook deliveries for the webhook configured for a GitHub App.\n\nYou must use a [JWT](https://docs.github.com/github-ae@latest/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint.", + "tags": [ + "apps" + ], + "operationId": "apps/list-webhook-deliveries", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/github-ae@latest/rest/reference/apps#list-deliveries-for-an-app-webhook" + }, + "parameters": [ + { + "name": "per_page", + "description": "Results per page (max 100).", + "in": "query", + "schema": { + "type": "integer", + "default": 30 + } + }, + { + "name": "cursor", + "description": "Used for pagination: the starting delivery from which the page of deliveries is fetched. Refer to the `link` header for the next and previous page cursors.", + "in": "query", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "title": "Simple webhook delivery", + "description": "Delivery made by a webhook, without request and response information.", + "type": "object", + "properties": { + "id": { + "description": "Unique identifier of the webhook delivery.", + "type": "integer", + "example": 42 + }, + "guid": { + "description": "Unique identifier for the event (shared with all deliveries for all webhooks that subscribe to this event).", + "type": "string", + "example": "58474f00-b361-11eb-836d-0e4f3503ccbe" + }, + "delivered_at": { + "description": "Time when the webhook delivery occurred.", + "type": "string", + "format": "date-time", + "example": "2021-05-12T20:33:44Z" + }, + "redelivery": { + "description": "Whether the webhook delivery is a redelivery.", + "type": "boolean", + "example": false + }, + "duration": { + "description": "Time spent delivering.", + "type": "number", + "example": 0.03 + }, + "status": { + "description": "Describes the response returned after attempting the delivery.", + "type": "string", + "example": "failed to connect" + }, + "status_code": { + "description": "Status code received when delivery was made.", + "type": "integer", + "example": 502 + }, + "event": { + "description": "The event that triggered the delivery.", + "type": "string", + "example": "issues" + }, + "action": { + "description": "The type of activity for the event that triggered the delivery.", + "type": "string", + "example": "opened", + "nullable": true + }, + "installation_id": { + "description": "The id of the GitHub App installation associated with this event.", + "type": "integer", + "example": 123, + "nullable": true + }, + "repository_id": { + "description": "The id of the repository associated with this event.", + "type": "integer", + "example": 123, + "nullable": true + } + }, + "required": [ + "id", + "guid", + "delivered_at", + "redelivery", + "duration", + "status", + "status_code", + "event", + "action", + "installation_id", + "repository_id" + ] + } + }, + "examples": { + "default": { + "value": [ + { + "id": 12345678, + "guid": "0b989ba4-242f-11e5-81e1-c7b6966d2516", + "delivered_at": "2019-06-03T00:57:16Z", + "redelivery": false, + "duration": 0.27, + "status": "OK", + "status_code": 200, + "event": "issues", + "action": "opened", + "installation_id": 123, + "repository_id": 456 + }, + { + "id": 123456789, + "guid": "0b989ba4-242f-11e5-81e1-c7b6966d2516", + "delivered_at": "2019-06-04T00:57:16Z", + "redelivery": true, + "duration": 0.28, + "status": "OK", + "status_code": 200, + "event": "issues", + "action": "opened", + "installation_id": 123, + "repository_id": 456 + } + ] + } + } + } + } + }, + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "title": "Basic Error", + "description": "Basic Error", + "type": "object", + "properties": { + "message": { + "type": "string" + }, + "documentation_url": { + "type": "string" + }, + "url": { + "type": "string" + }, + "status": { + "type": "string" + } + } + } + }, + "application/scim+json": { + "schema": { + "title": "Scim Error", + "description": "Scim Error", + "type": "object", + "properties": { + "message": { + "type": "string", + "nullable": true + }, + "documentation_url": { + "type": "string", + "nullable": true + }, + "detail": { + "type": "string", + "nullable": true + }, + "status": { + "type": "integer" + }, + "scimType": { + "type": "string", + "nullable": true + }, + "schemas": { + "type": "array", + "items": { + "type": "string" + } + } + } + } + } + } + }, + "422": { + "description": "Validation failed", + "content": { + "application/json": { + "schema": { + "title": "Validation Error", + "description": "Validation Error", + "type": "object", + "required": [ + "message", + "documentation_url" + ], + "properties": { + "message": { + "type": "string" + }, + "documentation_url": { + "type": "string" + }, + "errors": { + "type": "array", + "items": { + "type": "object", + "required": [ + "code" + ], + "properties": { + "resource": { + "type": "string" + }, + "field": { + "type": "string" + }, + "message": { + "type": "string" + }, + "code": { + "type": "string" + }, + "index": { + "type": "integer" + }, + "value": { + "oneOf": [ + { + "type": "string", + "nullable": true + }, + { + "type": "integer", + "nullable": true + }, + { + "type": "array", + "nullable": true, + "items": { + "type": "string" + } + } + ] + } + } + } + } + } + } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [ + + ], + "category": "apps", + "subcategory": "webhooks" + } + } + }, + "/app/hook/deliveries/{delivery_id}": { + "get": { + "summary": "Get a delivery for an app webhook", + "description": "Returns a delivery for the webhook configured for a GitHub App.\n\nYou must use a [JWT](https://docs.github.com/github-ae@latest/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint.", + "tags": [ + "apps" + ], + "operationId": "apps/get-webhook-delivery", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/github-ae@latest/rest/reference/apps#get-a-delivery-for-an-app-webhook" + }, + "parameters": [ + { + "name": "delivery_id", + "in": "path", + "required": true, + "schema": { + "type": "integer" + } + } + ], + "responses": { + "200": { + "description": "Response", + "content": { + "application/json": { + "schema": { + "title": "Webhook delivery", + "description": "Delivery made by a webhook.", + "type": "object", + "properties": { + "id": { + "description": "Unique identifier of the delivery.", + "type": "integer", + "example": 42 + }, + "guid": { + "description": "Unique identifier for the event (shared with all deliveries for all webhooks that subscribe to this event).", + "type": "string", + "example": "58474f00-b361-11eb-836d-0e4f3503ccbe" + }, + "delivered_at": { + "description": "Time when the delivery was delivered.", + "type": "string", + "format": "date-time", + "example": "2021-05-12T20:33:44Z" + }, + "redelivery": { + "description": "Whether the delivery is a redelivery.", + "type": "boolean", + "example": false + }, + "duration": { + "description": "Time spent delivering.", + "type": "number", + "example": 0.03 + }, + "status": { + "description": "Description of the status of the attempted delivery", + "type": "string", + "example": "failed to connect" + }, + "status_code": { + "description": "Status code received when delivery was made.", + "type": "integer", + "example": 502 + }, + "event": { + "description": "The event that triggered the delivery.", + "type": "string", + "example": "issues" + }, + "action": { + "description": "The type of activity for the event that triggered the delivery.", + "type": "string", + "example": "opened", + "nullable": true + }, + "installation_id": { + "description": "The id of the GitHub App installation associated with this event.", + "type": "integer", + "example": 123, + "nullable": true + }, + "repository_id": { + "description": "The id of the repository associated with this event.", + "type": "integer", + "example": 123, + "nullable": true + }, + "request": { + "type": "object", + "properties": { + "headers": { + "description": "The request headers sent with the webhook delivery.", + "type": "object", + "nullable": true, + "additionalProperties": true + }, + "payload": { + "description": "The webhook payload.", + "type": "object", + "nullable": true, + "additionalProperties": true + } + }, + "required": [ + "headers", + "payload" + ] + }, + "response": { + "type": "object", + "properties": { + "headers": { + "description": "The response headers received when the delivery was made.", + "type": "object", + "nullable": true, + "additionalProperties": true + }, + "payload": { + "description": "The response payload received.", + "type": "string", + "nullable": true, + "additionalProperties": true + } + }, + "required": [ + "headers", + "payload" + ] + } + }, + "required": [ + "id", + "guid", + "delivered_at", + "redelivery", + "duration", + "status", + "status_code", + "event", + "action", + "installation_id", + "repository_id", + "request", + "response" + ] + }, + "examples": { + "default": { + "value": { + "id": 12345678, + "guid": "0b989ba4-242f-11e5-81e1-c7b6966d2516", + "delivered_at": "2019-06-03T00:57:16Z", + "redelivery": false, + "duration": 0.27, + "status": "OK", + "status_code": 200, + "event": "issues", + "action": "opened", + "installation_id": 123, + "repository_id": 456, + "request": { + "headers": { + "X-GitHub-Delivery": "0b989ba4-242f-11e5-81e1-c7b6966d2516", + "X-Hub-Signature-256": "sha256=6dcb09b5b57875f334f61aebed695e2e4193db5e", + "Accept": "*/*", + "X-GitHub-Hook-ID": "42", + "User-Agent": "GitHub-Hookshot/b8c71d8", + "X-GitHub-Event": "issues", + "X-GitHub-Hook-Installation-Target-ID": "123", + "X-GitHub-Hook-Installation-Target-Type": "repository", + "content-type": "application/json" + }, + "payload": { + "action": "opened", + "issue": { + "body": "foo" + }, + "repository": { + "id": 123 + } + } + }, + "response": { + "headers": { + "Content-Type": "text/html;charset=utf-8" + }, + "payload": "ok" + } + } + } + } + } + } + }, + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "title": "Basic Error", + "description": "Basic Error", + "type": "object", + "properties": { + "message": { + "type": "string" + }, + "documentation_url": { + "type": "string" + }, + "url": { + "type": "string" + }, + "status": { + "type": "string" + } + } + } + }, + "application/scim+json": { + "schema": { + "title": "Scim Error", + "description": "Scim Error", + "type": "object", + "properties": { + "message": { + "type": "string", + "nullable": true + }, + "documentation_url": { + "type": "string", + "nullable": true + }, + "detail": { + "type": "string", + "nullable": true + }, + "status": { + "type": "integer" + }, + "scimType": { + "type": "string", + "nullable": true + }, + "schemas": { + "type": "array", + "items": { + "type": "string" + } + } + } + } + } + } + }, + "422": { + "description": "Validation failed", + "content": { + "application/json": { + "schema": { + "title": "Validation Error", + "description": "Validation Error", + "type": "object", + "required": [ + "message", + "documentation_url" + ], + "properties": { + "message": { + "type": "string" + }, + "documentation_url": { + "type": "string" + }, + "errors": { + "type": "array", + "items": { + "type": "object", + "required": [ + "code" + ], + "properties": { + "resource": { + "type": "string" + }, + "field": { + "type": "string" + }, + "message": { + "type": "string" + }, + "code": { + "type": "string" + }, + "index": { + "type": "integer" + }, + "value": { + "oneOf": [ + { + "type": "string", + "nullable": true + }, + { + "type": "integer", + "nullable": true + }, + { + "type": "array", + "nullable": true, + "items": { + "type": "string" + } + } + ] + } + } + } + } + } + } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [ + + ], + "category": "apps", + "subcategory": "webhooks" + } + } + }, + "/app/hook/deliveries/{delivery_id}/attempts": { + "post": { + "summary": "Redeliver a delivery for an app webhook", + "description": "Redeliver a delivery for the webhook configured for a GitHub App.\n\nYou must use a [JWT](https://docs.github.com/github-ae@latest/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint.", + "tags": [ + "apps" + ], + "operationId": "apps/redeliver-webhook-delivery", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/github-ae@latest/rest/reference/apps#redeliver-a-delivery-for-an-app-webhook" + }, + "parameters": [ + { + "name": "delivery_id", + "in": "path", + "required": true, + "schema": { + "type": "integer" + } + } + ], + "responses": { + "202": { + "description": "Accepted", + "content": { + "application/json": { + "schema": { + "type": "object" + } + } + } + }, + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "title": "Basic Error", + "description": "Basic Error", + "type": "object", + "properties": { + "message": { + "type": "string" + }, + "documentation_url": { + "type": "string" + }, + "url": { + "type": "string" + }, + "status": { + "type": "string" + } + } + } + }, + "application/scim+json": { + "schema": { + "title": "Scim Error", + "description": "Scim Error", + "type": "object", + "properties": { + "message": { + "type": "string", + "nullable": true + }, + "documentation_url": { + "type": "string", + "nullable": true + }, + "detail": { + "type": "string", + "nullable": true + }, + "status": { + "type": "integer" + }, + "scimType": { + "type": "string", + "nullable": true + }, + "schemas": { + "type": "array", + "items": { + "type": "string" + } + } + } + } + } + } + }, + "422": { + "description": "Validation failed", + "content": { + "application/json": { + "schema": { + "title": "Validation Error", + "description": "Validation Error", + "type": "object", + "required": [ + "message", + "documentation_url" + ], + "properties": { + "message": { + "type": "string" + }, + "documentation_url": { + "type": "string" + }, + "errors": { + "type": "array", + "items": { + "type": "object", + "required": [ + "code" + ], + "properties": { + "resource": { + "type": "string" + }, + "field": { + "type": "string" + }, + "message": { + "type": "string" + }, + "code": { + "type": "string" + }, + "index": { + "type": "integer" + }, + "value": { + "oneOf": [ + { + "type": "string", + "nullable": true + }, + { + "type": "integer", + "nullable": true + }, + { + "type": "array", + "nullable": true, + "items": { + "type": "string" + } + } + ] + } + } + } + } + } + } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [ + + ], + "category": "apps", + "subcategory": "webhooks" + } + } + }, "/app/installations": { "get": { "summary": "List installations for the authenticated app", @@ -42235,6 +43043,11 @@ "format": "uri", "example": "https://api.github.com/orgs/octocat/hooks/1/pings" }, + "deliveries_url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/orgs/octocat/hooks/1/deliveries" + }, "name": { "type": "string", "example": "web" @@ -42510,6 +43323,11 @@ "format": "uri", "example": "https://api.github.com/orgs/octocat/hooks/1/pings" }, + "deliveries_url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/orgs/octocat/hooks/1/deliveries" + }, "name": { "type": "string", "example": "web" @@ -42770,6 +43588,11 @@ "format": "uri", "example": "https://api.github.com/orgs/octocat/hooks/1/pings" }, + "deliveries_url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/orgs/octocat/hooks/1/deliveries" + }, "name": { "type": "string", "example": "web" @@ -43024,6 +43847,11 @@ "format": "uri", "example": "https://api.github.com/orgs/octocat/hooks/1/pings" }, + "deliveries_url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/orgs/octocat/hooks/1/deliveries" + }, "name": { "type": "string", "example": "web" @@ -43525,6 +44353,551 @@ } } }, + "/orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}": { + "get": { + "summary": "Get a webhook delivery for an organization webhook", + "description": "Returns a delivery for a webhook configured in an organization.", + "tags": [ + "orgs" + ], + "operationId": "orgs/get-webhook-delivery", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/github-ae@latest/rest/reference/orgs#get-a-webhook-delivery-for-an-organization-webhook" + }, + "parameters": [ + { + "name": "org", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "hook_id", + "in": "path", + "required": true, + "schema": { + "type": "integer" + } + }, + { + "name": "delivery_id", + "in": "path", + "required": true, + "schema": { + "type": "integer" + } + } + ], + "responses": { + "200": { + "description": "Response", + "content": { + "application/json": { + "schema": { + "title": "Webhook delivery", + "description": "Delivery made by a webhook.", + "type": "object", + "properties": { + "id": { + "description": "Unique identifier of the delivery.", + "type": "integer", + "example": 42 + }, + "guid": { + "description": "Unique identifier for the event (shared with all deliveries for all webhooks that subscribe to this event).", + "type": "string", + "example": "58474f00-b361-11eb-836d-0e4f3503ccbe" + }, + "delivered_at": { + "description": "Time when the delivery was delivered.", + "type": "string", + "format": "date-time", + "example": "2021-05-12T20:33:44Z" + }, + "redelivery": { + "description": "Whether the delivery is a redelivery.", + "type": "boolean", + "example": false + }, + "duration": { + "description": "Time spent delivering.", + "type": "number", + "example": 0.03 + }, + "status": { + "description": "Description of the status of the attempted delivery", + "type": "string", + "example": "failed to connect" + }, + "status_code": { + "description": "Status code received when delivery was made.", + "type": "integer", + "example": 502 + }, + "event": { + "description": "The event that triggered the delivery.", + "type": "string", + "example": "issues" + }, + "action": { + "description": "The type of activity for the event that triggered the delivery.", + "type": "string", + "example": "opened", + "nullable": true + }, + "installation_id": { + "description": "The id of the GitHub App installation associated with this event.", + "type": "integer", + "example": 123, + "nullable": true + }, + "repository_id": { + "description": "The id of the repository associated with this event.", + "type": "integer", + "example": 123, + "nullable": true + }, + "request": { + "type": "object", + "properties": { + "headers": { + "description": "The request headers sent with the webhook delivery.", + "type": "object", + "nullable": true, + "additionalProperties": true + }, + "payload": { + "description": "The webhook payload.", + "type": "object", + "nullable": true, + "additionalProperties": true + } + }, + "required": [ + "headers", + "payload" + ] + }, + "response": { + "type": "object", + "properties": { + "headers": { + "description": "The response headers received when the delivery was made.", + "type": "object", + "nullable": true, + "additionalProperties": true + }, + "payload": { + "description": "The response payload received.", + "type": "string", + "nullable": true, + "additionalProperties": true + } + }, + "required": [ + "headers", + "payload" + ] + } + }, + "required": [ + "id", + "guid", + "delivered_at", + "redelivery", + "duration", + "status", + "status_code", + "event", + "action", + "installation_id", + "repository_id", + "request", + "response" + ] + }, + "examples": { + "default": { + "value": { + "id": 12345678, + "guid": "0b989ba4-242f-11e5-81e1-c7b6966d2516", + "delivered_at": "2019-06-03T00:57:16Z", + "redelivery": false, + "duration": 0.27, + "status": "OK", + "status_code": 200, + "event": "issues", + "action": "opened", + "installation_id": 123, + "repository_id": 456, + "request": { + "headers": { + "X-GitHub-Delivery": "0b989ba4-242f-11e5-81e1-c7b6966d2516", + "X-Hub-Signature-256": "sha256=6dcb09b5b57875f334f61aebed695e2e4193db5e", + "Accept": "*/*", + "X-GitHub-Hook-ID": "42", + "User-Agent": "GitHub-Hookshot/b8c71d8", + "X-GitHub-Event": "issues", + "X-GitHub-Hook-Installation-Target-ID": "123", + "X-GitHub-Hook-Installation-Target-Type": "repository", + "content-type": "application/json" + }, + "payload": { + "action": "opened", + "issue": { + "body": "foo" + }, + "repository": { + "id": 123 + } + } + }, + "response": { + "headers": { + "Content-Type": "text/html;charset=utf-8" + }, + "payload": "ok" + } + } + } + } + } + } + }, + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "title": "Basic Error", + "description": "Basic Error", + "type": "object", + "properties": { + "message": { + "type": "string" + }, + "documentation_url": { + "type": "string" + }, + "url": { + "type": "string" + }, + "status": { + "type": "string" + } + } + } + }, + "application/scim+json": { + "schema": { + "title": "Scim Error", + "description": "Scim Error", + "type": "object", + "properties": { + "message": { + "type": "string", + "nullable": true + }, + "documentation_url": { + "type": "string", + "nullable": true + }, + "detail": { + "type": "string", + "nullable": true + }, + "status": { + "type": "integer" + }, + "scimType": { + "type": "string", + "nullable": true + }, + "schemas": { + "type": "array", + "items": { + "type": "string" + } + } + } + } + } + } + }, + "422": { + "description": "Validation failed", + "content": { + "application/json": { + "schema": { + "title": "Validation Error", + "description": "Validation Error", + "type": "object", + "required": [ + "message", + "documentation_url" + ], + "properties": { + "message": { + "type": "string" + }, + "documentation_url": { + "type": "string" + }, + "errors": { + "type": "array", + "items": { + "type": "object", + "required": [ + "code" + ], + "properties": { + "resource": { + "type": "string" + }, + "field": { + "type": "string" + }, + "message": { + "type": "string" + }, + "code": { + "type": "string" + }, + "index": { + "type": "integer" + }, + "value": { + "oneOf": [ + { + "type": "string", + "nullable": true + }, + { + "type": "integer", + "nullable": true + }, + { + "type": "array", + "nullable": true, + "items": { + "type": "string" + } + } + ] + } + } + } + } + } + } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [ + + ], + "category": "orgs", + "subcategory": "webhooks" + } + } + }, + "/orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}/attempts": { + "post": { + "summary": "Redeliver a delivery for an organization webhook", + "description": "Redeliver a delivery for a webhook configured in an organization.", + "tags": [ + "orgs" + ], + "operationId": "orgs/redeliver-webhook-delivery", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/github-ae@latest/rest/reference/orgs#redeliver-a-delivery-for-an-organization-webhook" + }, + "parameters": [ + { + "name": "org", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "hook_id", + "in": "path", + "required": true, + "schema": { + "type": "integer" + } + }, + { + "name": "delivery_id", + "in": "path", + "required": true, + "schema": { + "type": "integer" + } + } + ], + "responses": { + "202": { + "description": "Accepted", + "content": { + "application/json": { + "schema": { + "type": "object" + } + } + } + }, + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "title": "Basic Error", + "description": "Basic Error", + "type": "object", + "properties": { + "message": { + "type": "string" + }, + "documentation_url": { + "type": "string" + }, + "url": { + "type": "string" + }, + "status": { + "type": "string" + } + } + } + }, + "application/scim+json": { + "schema": { + "title": "Scim Error", + "description": "Scim Error", + "type": "object", + "properties": { + "message": { + "type": "string", + "nullable": true + }, + "documentation_url": { + "type": "string", + "nullable": true + }, + "detail": { + "type": "string", + "nullable": true + }, + "status": { + "type": "integer" + }, + "scimType": { + "type": "string", + "nullable": true + }, + "schemas": { + "type": "array", + "items": { + "type": "string" + } + } + } + } + } + } + }, + "422": { + "description": "Validation failed", + "content": { + "application/json": { + "schema": { + "title": "Validation Error", + "description": "Validation Error", + "type": "object", + "required": [ + "message", + "documentation_url" + ], + "properties": { + "message": { + "type": "string" + }, + "documentation_url": { + "type": "string" + }, + "errors": { + "type": "array", + "items": { + "type": "object", + "required": [ + "code" + ], + "properties": { + "resource": { + "type": "string" + }, + "field": { + "type": "string" + }, + "message": { + "type": "string" + }, + "code": { + "type": "string" + }, + "index": { + "type": "integer" + }, + "value": { + "oneOf": [ + { + "type": "string", + "nullable": true + }, + { + "type": "integer", + "nullable": true + }, + { + "type": "array", + "nullable": true, + "items": { + "type": "string" + } + } + ] + } + } + } + } + } + } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [ + + ], + "category": "orgs", + "subcategory": "webhooks" + } + } + }, "/orgs/{org}/hooks/{hook_id}/pings": { "post": { "summary": "Ping an organization webhook", @@ -168723,6 +170096,11 @@ "format": "uri", "example": "https://api.github.com/repos/octocat/Hello-World/hooks/1/pings" }, + "deliveries_url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/repos/octocat/Hello-World/hooks/1/deliveries" + }, "last_response": { "title": "Hook Response", "type": "object", @@ -169079,6 +170457,11 @@ "format": "uri", "example": "https://api.github.com/repos/octocat/Hello-World/hooks/1/pings" }, + "deliveries_url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/repos/octocat/Hello-World/hooks/1/deliveries" + }, "last_response": { "title": "Hook Response", "type": "object", @@ -169450,6 +170833,11 @@ "format": "uri", "example": "https://api.github.com/repos/octocat/Hello-World/hooks/1/pings" }, + "deliveries_url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/repos/octocat/Hello-World/hooks/1/deliveries" + }, "last_response": { "title": "Hook Response", "type": "object", @@ -169807,6 +171195,11 @@ "format": "uri", "example": "https://api.github.com/repos/octocat/Hello-World/hooks/1/pings" }, + "deliveries_url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/repos/octocat/Hello-World/hooks/1/deliveries" + }, "last_response": { "title": "Hook Response", "type": "object", @@ -170313,6 +171706,886 @@ } } }, + "/repos/{owner}/{repo}/hooks/{hook_id}/deliveries": { + "get": { + "summary": "List deliveries for a repository webhook", + "description": "Returns a list of webhook deliveries for a webhook configured in a repository.", + "tags": [ + "repos" + ], + "operationId": "repos/list-webhook-deliveries", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/github-ae@latest/rest/reference/repos#list-deliveries-for-a-repository-webhook" + }, + "parameters": [ + { + "name": "owner", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "repo", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "hook_id", + "in": "path", + "required": true, + "schema": { + "type": "integer" + } + }, + { + "name": "per_page", + "description": "Results per page (max 100).", + "in": "query", + "schema": { + "type": "integer", + "default": 30 + } + }, + { + "name": "cursor", + "description": "Used for pagination: the starting delivery from which the page of deliveries is fetched. Refer to the `link` header for the next and previous page cursors.", + "in": "query", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "title": "Simple webhook delivery", + "description": "Delivery made by a webhook, without request and response information.", + "type": "object", + "properties": { + "id": { + "description": "Unique identifier of the webhook delivery.", + "type": "integer", + "example": 42 + }, + "guid": { + "description": "Unique identifier for the event (shared with all deliveries for all webhooks that subscribe to this event).", + "type": "string", + "example": "58474f00-b361-11eb-836d-0e4f3503ccbe" + }, + "delivered_at": { + "description": "Time when the webhook delivery occurred.", + "type": "string", + "format": "date-time", + "example": "2021-05-12T20:33:44Z" + }, + "redelivery": { + "description": "Whether the webhook delivery is a redelivery.", + "type": "boolean", + "example": false + }, + "duration": { + "description": "Time spent delivering.", + "type": "number", + "example": 0.03 + }, + "status": { + "description": "Describes the response returned after attempting the delivery.", + "type": "string", + "example": "failed to connect" + }, + "status_code": { + "description": "Status code received when delivery was made.", + "type": "integer", + "example": 502 + }, + "event": { + "description": "The event that triggered the delivery.", + "type": "string", + "example": "issues" + }, + "action": { + "description": "The type of activity for the event that triggered the delivery.", + "type": "string", + "example": "opened", + "nullable": true + }, + "installation_id": { + "description": "The id of the GitHub App installation associated with this event.", + "type": "integer", + "example": 123, + "nullable": true + }, + "repository_id": { + "description": "The id of the repository associated with this event.", + "type": "integer", + "example": 123, + "nullable": true + } + }, + "required": [ + "id", + "guid", + "delivered_at", + "redelivery", + "duration", + "status", + "status_code", + "event", + "action", + "installation_id", + "repository_id" + ] + } + }, + "examples": { + "default": { + "value": [ + { + "id": 12345678, + "guid": "0b989ba4-242f-11e5-81e1-c7b6966d2516", + "delivered_at": "2019-06-03T00:57:16Z", + "redelivery": false, + "duration": 0.27, + "status": "OK", + "status_code": 200, + "event": "issues", + "action": "opened", + "installation_id": 123, + "repository_id": 456 + }, + { + "id": 123456789, + "guid": "0b989ba4-242f-11e5-81e1-c7b6966d2516", + "delivered_at": "2019-06-04T00:57:16Z", + "redelivery": true, + "duration": 0.28, + "status": "OK", + "status_code": 200, + "event": "issues", + "action": "opened", + "installation_id": 123, + "repository_id": 456 + } + ] + } + } + } + } + }, + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "title": "Basic Error", + "description": "Basic Error", + "type": "object", + "properties": { + "message": { + "type": "string" + }, + "documentation_url": { + "type": "string" + }, + "url": { + "type": "string" + }, + "status": { + "type": "string" + } + } + } + }, + "application/scim+json": { + "schema": { + "title": "Scim Error", + "description": "Scim Error", + "type": "object", + "properties": { + "message": { + "type": "string", + "nullable": true + }, + "documentation_url": { + "type": "string", + "nullable": true + }, + "detail": { + "type": "string", + "nullable": true + }, + "status": { + "type": "integer" + }, + "scimType": { + "type": "string", + "nullable": true + }, + "schemas": { + "type": "array", + "items": { + "type": "string" + } + } + } + } + } + } + }, + "422": { + "description": "Validation failed", + "content": { + "application/json": { + "schema": { + "title": "Validation Error", + "description": "Validation Error", + "type": "object", + "required": [ + "message", + "documentation_url" + ], + "properties": { + "message": { + "type": "string" + }, + "documentation_url": { + "type": "string" + }, + "errors": { + "type": "array", + "items": { + "type": "object", + "required": [ + "code" + ], + "properties": { + "resource": { + "type": "string" + }, + "field": { + "type": "string" + }, + "message": { + "type": "string" + }, + "code": { + "type": "string" + }, + "index": { + "type": "integer" + }, + "value": { + "oneOf": [ + { + "type": "string", + "nullable": true + }, + { + "type": "integer", + "nullable": true + }, + { + "type": "array", + "nullable": true, + "items": { + "type": "string" + } + } + ] + } + } + } + } + } + } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [ + + ], + "category": "repos", + "subcategory": "webhooks" + } + } + }, + "/repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}": { + "get": { + "summary": "Get a delivery for a repository webhook", + "description": "Returns a delivery for a webhook configured in a repository.", + "tags": [ + "repos" + ], + "operationId": "repos/get-webhook-delivery", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/github-ae@latest/rest/reference/repos#get-a-delivery-for-a-repository-webhook" + }, + "parameters": [ + { + "name": "owner", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "repo", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "hook_id", + "in": "path", + "required": true, + "schema": { + "type": "integer" + } + }, + { + "name": "delivery_id", + "in": "path", + "required": true, + "schema": { + "type": "integer" + } + } + ], + "responses": { + "200": { + "description": "Response", + "content": { + "application/json": { + "schema": { + "title": "Webhook delivery", + "description": "Delivery made by a webhook.", + "type": "object", + "properties": { + "id": { + "description": "Unique identifier of the delivery.", + "type": "integer", + "example": 42 + }, + "guid": { + "description": "Unique identifier for the event (shared with all deliveries for all webhooks that subscribe to this event).", + "type": "string", + "example": "58474f00-b361-11eb-836d-0e4f3503ccbe" + }, + "delivered_at": { + "description": "Time when the delivery was delivered.", + "type": "string", + "format": "date-time", + "example": "2021-05-12T20:33:44Z" + }, + "redelivery": { + "description": "Whether the delivery is a redelivery.", + "type": "boolean", + "example": false + }, + "duration": { + "description": "Time spent delivering.", + "type": "number", + "example": 0.03 + }, + "status": { + "description": "Description of the status of the attempted delivery", + "type": "string", + "example": "failed to connect" + }, + "status_code": { + "description": "Status code received when delivery was made.", + "type": "integer", + "example": 502 + }, + "event": { + "description": "The event that triggered the delivery.", + "type": "string", + "example": "issues" + }, + "action": { + "description": "The type of activity for the event that triggered the delivery.", + "type": "string", + "example": "opened", + "nullable": true + }, + "installation_id": { + "description": "The id of the GitHub App installation associated with this event.", + "type": "integer", + "example": 123, + "nullable": true + }, + "repository_id": { + "description": "The id of the repository associated with this event.", + "type": "integer", + "example": 123, + "nullable": true + }, + "request": { + "type": "object", + "properties": { + "headers": { + "description": "The request headers sent with the webhook delivery.", + "type": "object", + "nullable": true, + "additionalProperties": true + }, + "payload": { + "description": "The webhook payload.", + "type": "object", + "nullable": true, + "additionalProperties": true + } + }, + "required": [ + "headers", + "payload" + ] + }, + "response": { + "type": "object", + "properties": { + "headers": { + "description": "The response headers received when the delivery was made.", + "type": "object", + "nullable": true, + "additionalProperties": true + }, + "payload": { + "description": "The response payload received.", + "type": "string", + "nullable": true, + "additionalProperties": true + } + }, + "required": [ + "headers", + "payload" + ] + } + }, + "required": [ + "id", + "guid", + "delivered_at", + "redelivery", + "duration", + "status", + "status_code", + "event", + "action", + "installation_id", + "repository_id", + "request", + "response" + ] + }, + "examples": { + "default": { + "value": { + "id": 12345678, + "guid": "0b989ba4-242f-11e5-81e1-c7b6966d2516", + "delivered_at": "2019-06-03T00:57:16Z", + "redelivery": false, + "duration": 0.27, + "status": "OK", + "status_code": 200, + "event": "issues", + "action": "opened", + "installation_id": 123, + "repository_id": 456, + "request": { + "headers": { + "X-GitHub-Delivery": "0b989ba4-242f-11e5-81e1-c7b6966d2516", + "X-Hub-Signature-256": "sha256=6dcb09b5b57875f334f61aebed695e2e4193db5e", + "Accept": "*/*", + "X-GitHub-Hook-ID": "42", + "User-Agent": "GitHub-Hookshot/b8c71d8", + "X-GitHub-Event": "issues", + "X-GitHub-Hook-Installation-Target-ID": "123", + "X-GitHub-Hook-Installation-Target-Type": "repository", + "content-type": "application/json" + }, + "payload": { + "action": "opened", + "issue": { + "body": "foo" + }, + "repository": { + "id": 123 + } + } + }, + "response": { + "headers": { + "Content-Type": "text/html;charset=utf-8" + }, + "payload": "ok" + } + } + } + } + } + } + }, + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "title": "Basic Error", + "description": "Basic Error", + "type": "object", + "properties": { + "message": { + "type": "string" + }, + "documentation_url": { + "type": "string" + }, + "url": { + "type": "string" + }, + "status": { + "type": "string" + } + } + } + }, + "application/scim+json": { + "schema": { + "title": "Scim Error", + "description": "Scim Error", + "type": "object", + "properties": { + "message": { + "type": "string", + "nullable": true + }, + "documentation_url": { + "type": "string", + "nullable": true + }, + "detail": { + "type": "string", + "nullable": true + }, + "status": { + "type": "integer" + }, + "scimType": { + "type": "string", + "nullable": true + }, + "schemas": { + "type": "array", + "items": { + "type": "string" + } + } + } + } + } + } + }, + "422": { + "description": "Validation failed", + "content": { + "application/json": { + "schema": { + "title": "Validation Error", + "description": "Validation Error", + "type": "object", + "required": [ + "message", + "documentation_url" + ], + "properties": { + "message": { + "type": "string" + }, + "documentation_url": { + "type": "string" + }, + "errors": { + "type": "array", + "items": { + "type": "object", + "required": [ + "code" + ], + "properties": { + "resource": { + "type": "string" + }, + "field": { + "type": "string" + }, + "message": { + "type": "string" + }, + "code": { + "type": "string" + }, + "index": { + "type": "integer" + }, + "value": { + "oneOf": [ + { + "type": "string", + "nullable": true + }, + { + "type": "integer", + "nullable": true + }, + { + "type": "array", + "nullable": true, + "items": { + "type": "string" + } + } + ] + } + } + } + } + } + } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [ + + ], + "category": "repos", + "subcategory": "webhooks" + } + } + }, + "/repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}/attempts": { + "post": { + "summary": "Redeliver a delivery for a repository webhook", + "description": "Redeliver a webhook delivery for a webhook configured in a repository.", + "tags": [ + "repos" + ], + "operationId": "repos/redeliver-webhook-delivery", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/github-ae@latest/rest/reference/repos#redeliver-a-delivery-for-a-repository-webhook" + }, + "parameters": [ + { + "name": "owner", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "repo", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "hook_id", + "in": "path", + "required": true, + "schema": { + "type": "integer" + } + }, + { + "name": "delivery_id", + "in": "path", + "required": true, + "schema": { + "type": "integer" + } + } + ], + "responses": { + "202": { + "description": "Accepted", + "content": { + "application/json": { + "schema": { + "type": "object" + } + } + } + }, + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "title": "Basic Error", + "description": "Basic Error", + "type": "object", + "properties": { + "message": { + "type": "string" + }, + "documentation_url": { + "type": "string" + }, + "url": { + "type": "string" + }, + "status": { + "type": "string" + } + } + } + }, + "application/scim+json": { + "schema": { + "title": "Scim Error", + "description": "Scim Error", + "type": "object", + "properties": { + "message": { + "type": "string", + "nullable": true + }, + "documentation_url": { + "type": "string", + "nullable": true + }, + "detail": { + "type": "string", + "nullable": true + }, + "status": { + "type": "integer" + }, + "scimType": { + "type": "string", + "nullable": true + }, + "schemas": { + "type": "array", + "items": { + "type": "string" + } + } + } + } + } + } + }, + "422": { + "description": "Validation failed", + "content": { + "application/json": { + "schema": { + "title": "Validation Error", + "description": "Validation Error", + "type": "object", + "required": [ + "message", + "documentation_url" + ], + "properties": { + "message": { + "type": "string" + }, + "documentation_url": { + "type": "string" + }, + "errors": { + "type": "array", + "items": { + "type": "object", + "required": [ + "code" + ], + "properties": { + "resource": { + "type": "string" + }, + "field": { + "type": "string" + }, + "message": { + "type": "string" + }, + "code": { + "type": "string" + }, + "index": { + "type": "integer" + }, + "value": { + "oneOf": [ + { + "type": "string", + "nullable": true + }, + { + "type": "integer", + "nullable": true + }, + { + "type": "array", + "nullable": true, + "items": { + "type": "string" + } + } + ] + } + } + } + } + } + } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [ + + ], + "category": "repos", + "subcategory": "webhooks" + } + } + }, "/repos/{owner}/{repo}/hooks/{hook_id}/pings": { "post": { "summary": "Ping a repository webhook",