|
44170 | 44170 | "httpStatusCode": "200",
|
44171 | 44171 | "httpStatusMessage": "OK",
|
44172 | 44172 | "description": "Response",
|
44173 |
| - "payload": "<pre><code class=\"hljs language-json\">{\n <span class=\"hljs-attr\">\"url\"</span>: <span class=\"hljs-string\">\"https://api.github.com/repos/github/developer.github.com/pages\"</span>,\n <span class=\"hljs-attr\">\"status\"</span>: <span class=\"hljs-string\">\"built\"</span>,\n <span class=\"hljs-attr\">\"cname\"</span>: <span class=\"hljs-string\">\"developer.github.com\"</span>,\n <span class=\"hljs-attr\">\"custom_404\"</span>: <span class=\"hljs-literal\">false</span>,\n <span class=\"hljs-attr\">\"html_url\"</span>: <span class=\"hljs-string\">\"https://developer.github.com\"</span>,\n <span class=\"hljs-attr\">\"source\"</span>: {\n <span class=\"hljs-attr\">\"branch\"</span>: <span class=\"hljs-string\">\"master\"</span>,\n <span class=\"hljs-attr\">\"path\"</span>: <span class=\"hljs-string\">\"/\"</span>\n },\n <span class=\"hljs-attr\">\"public\"</span>: <span class=\"hljs-literal\">true</span>\n}\n</code></pre>" |
| 44173 | + "payload": "<pre><code class=\"hljs language-json\">{\n <span class=\"hljs-attr\">\"url\"</span>: <span class=\"hljs-string\">\"https://api.github.com/repos/github/developer.github.com/pages\"</span>,\n <span class=\"hljs-attr\">\"status\"</span>: <span class=\"hljs-string\">\"built\"</span>,\n <span class=\"hljs-attr\">\"cname\"</span>: <span class=\"hljs-string\">\"developer.github.com\"</span>,\n <span class=\"hljs-attr\">\"custom_404\"</span>: <span class=\"hljs-literal\">false</span>,\n <span class=\"hljs-attr\">\"html_url\"</span>: <span class=\"hljs-string\">\"https://developer.github.com\"</span>,\n <span class=\"hljs-attr\">\"source\"</span>: {\n <span class=\"hljs-attr\">\"branch\"</span>: <span class=\"hljs-string\">\"master\"</span>,\n <span class=\"hljs-attr\">\"path\"</span>: <span class=\"hljs-string\">\"/\"</span>\n },\n <span class=\"hljs-attr\">\"public\"</span>: <span class=\"hljs-literal\">true</span>,\n <span class=\"hljs-attr\">\"https_certificate\"</span>: {\n <span class=\"hljs-attr\">\"state\"</span>: <span class=\"hljs-string\">\"approved\"</span>,\n <span class=\"hljs-attr\">\"description\"</span>: <span class=\"hljs-string\">\"Certificate is approved\"</span>,\n <span class=\"hljs-attr\">\"domains\"</span>: [\n <span class=\"hljs-string\">\"developer.github.com\"</span>\n ],\n <span class=\"hljs-attr\">\"expires_at\"</span>: <span class=\"hljs-string\">\"2021-05-22\"</span>\n },\n <span class=\"hljs-attr\">\"https_enforced\"</span>: <span class=\"hljs-literal\">true</span>\n}\n</code></pre>" |
44174 | 44174 | },
|
44175 | 44175 | {
|
44176 | 44176 | "httpStatusCode": "404",
|
|
44355 | 44355 | "httpStatusCode": "201",
|
44356 | 44356 | "httpStatusMessage": "Created",
|
44357 | 44357 | "description": "Response",
|
44358 |
| - "payload": "<pre><code class=\"hljs language-json\">{\n <span class=\"hljs-attr\">\"url\"</span>: <span class=\"hljs-string\">\"https://api.github.com/repos/github/developer.github.com/pages\"</span>,\n <span class=\"hljs-attr\">\"status\"</span>: <span class=\"hljs-string\">\"built\"</span>,\n <span class=\"hljs-attr\">\"cname\"</span>: <span class=\"hljs-string\">\"developer.github.com\"</span>,\n <span class=\"hljs-attr\">\"custom_404\"</span>: <span class=\"hljs-literal\">false</span>,\n <span class=\"hljs-attr\">\"html_url\"</span>: <span class=\"hljs-string\">\"https://developer.github.com\"</span>,\n <span class=\"hljs-attr\">\"source\"</span>: {\n <span class=\"hljs-attr\">\"branch\"</span>: <span class=\"hljs-string\">\"master\"</span>,\n <span class=\"hljs-attr\">\"path\"</span>: <span class=\"hljs-string\">\"/\"</span>\n },\n <span class=\"hljs-attr\">\"public\"</span>: <span class=\"hljs-literal\">true</span>\n}\n</code></pre>" |
| 44358 | + "payload": "<pre><code class=\"hljs language-json\">{\n <span class=\"hljs-attr\">\"url\"</span>: <span class=\"hljs-string\">\"https://api.github.com/repos/github/developer.github.com/pages\"</span>,\n <span class=\"hljs-attr\">\"status\"</span>: <span class=\"hljs-string\">\"built\"</span>,\n <span class=\"hljs-attr\">\"cname\"</span>: <span class=\"hljs-string\">\"developer.github.com\"</span>,\n <span class=\"hljs-attr\">\"custom_404\"</span>: <span class=\"hljs-literal\">false</span>,\n <span class=\"hljs-attr\">\"html_url\"</span>: <span class=\"hljs-string\">\"https://developer.github.com\"</span>,\n <span class=\"hljs-attr\">\"source\"</span>: {\n <span class=\"hljs-attr\">\"branch\"</span>: <span class=\"hljs-string\">\"master\"</span>,\n <span class=\"hljs-attr\">\"path\"</span>: <span class=\"hljs-string\">\"/\"</span>\n },\n <span class=\"hljs-attr\">\"public\"</span>: <span class=\"hljs-literal\">true</span>,\n <span class=\"hljs-attr\">\"https_certificate\"</span>: {\n <span class=\"hljs-attr\">\"state\"</span>: <span class=\"hljs-string\">\"approved\"</span>,\n <span class=\"hljs-attr\">\"description\"</span>: <span class=\"hljs-string\">\"Certificate is approved\"</span>,\n <span class=\"hljs-attr\">\"domains\"</span>: [\n <span class=\"hljs-string\">\"developer.github.com\"</span>\n ],\n <span class=\"hljs-attr\">\"expires_at\"</span>: <span class=\"hljs-string\">\"2021-05-22\"</span>\n },\n <span class=\"hljs-attr\">\"https_enforced\"</span>: <span class=\"hljs-literal\">true</span>\n}\n</code></pre>" |
44359 | 44359 | },
|
44360 | 44360 | {
|
44361 | 44361 | "httpStatusCode": "409",
|
@@ -44479,13 +44479,13 @@
|
44479 | 44479 | "x-codeSamples": [
|
44480 | 44480 | {
|
44481 | 44481 | "lang": "Shell",
|
44482 |
| - "source": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/pages \\\n -d '{\"public\":true}'", |
44483 |
| - "html": "<pre><code class=\"hljs language-shell\">curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/pages \\\n -d '{\"public\":true}'</code></pre>" |
| 44482 | + "source": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/pages \\\n -d '{\"https_enforced\":true}'", |
| 44483 | + "html": "<pre><code class=\"hljs language-shell\">curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/pages \\\n -d '{\"https_enforced\":true}'</code></pre>" |
44484 | 44484 | },
|
44485 | 44485 | {
|
44486 | 44486 | "lang": "JavaScript",
|
44487 |
| - "source": "await octokit.request('PUT /repos/{owner}/{repo}/pages', {\n owner: 'octocat',\n repo: 'hello-world',\n 'public': true\n})", |
44488 |
| - "html": "<pre><code class=\"hljs language-javascript\"><span class=\"hljs-keyword\">await</span> octokit.request(<span class=\"hljs-string\">'PUT /repos/{owner}/{repo}/pages'</span>, {\n <span class=\"hljs-attr\">owner</span>: <span class=\"hljs-string\">'octocat'</span>,\n <span class=\"hljs-attr\">repo</span>: <span class=\"hljs-string\">'hello-world'</span>,\n <span class=\"hljs-string\">'public'</span>: <span class=\"hljs-literal\">true</span>\n})\n</code></pre>" |
| 44487 | + "source": "await octokit.request('PUT /repos/{owner}/{repo}/pages', {\n owner: 'octocat',\n repo: 'hello-world',\n https_enforced: true\n})", |
| 44488 | + "html": "<pre><code class=\"hljs language-javascript\"><span class=\"hljs-keyword\">await</span> octokit.request(<span class=\"hljs-string\">'PUT /repos/{owner}/{repo}/pages'</span>, {\n <span class=\"hljs-attr\">owner</span>: <span class=\"hljs-string\">'octocat'</span>,\n <span class=\"hljs-attr\">repo</span>: <span class=\"hljs-string\">'hello-world'</span>,\n <span class=\"hljs-attr\">https_enforced</span>: <span class=\"hljs-literal\">true</span>\n})\n</code></pre>" |
44489 | 44489 | }
|
44490 | 44490 | ],
|
44491 | 44491 | "summary": "Update information about a GitHub Pages site",
|
|
44504 | 44504 | "schema": {
|
44505 | 44505 | "type": "object",
|
44506 | 44506 | "properties": {
|
| 44507 | + "https_enforced": { |
| 44508 | + "type": "boolean", |
| 44509 | + "description": "<p>Specify whether HTTPS should be enforced for the repository.</p>", |
| 44510 | + "name": "https_enforced", |
| 44511 | + "in": "body", |
| 44512 | + "rawType": "boolean", |
| 44513 | + "rawDescription": "Specify whether HTTPS should be enforced for the repository.", |
| 44514 | + "childParamsGroups": [] |
| 44515 | + }, |
44507 | 44516 | "public": {
|
44508 | 44517 | "type": "boolean",
|
44509 | 44518 | "description": "<p>Configures access controls for the GitHub Pages site. If public is set to <code>true</code>, the site is accessible to anyone on the internet. If set to <code>false</code>, the site will only be accessible to users who have at least <code>read</code> access to the repository that published the site. This includes anyone in your Enterprise if the repository is set to <code>internal</code> visibility. This feature is only available to repositories in an organization on an Enterprise plan.</p>",
|
|
44576 | 44585 | "required": [
|
44577 | 44586 | "public"
|
44578 | 44587 | ]
|
| 44588 | + }, |
| 44589 | + { |
| 44590 | + "required": [ |
| 44591 | + "https_enforced" |
| 44592 | + ] |
44579 | 44593 | }
|
44580 | 44594 | ]
|
44581 | 44595 | },
|
|
44624 | 44638 | ],
|
44625 | 44639 | "descriptionHTML": "<p>Updates information for a GitHub Enterprise Server Pages site. For more information, see \"<a href=\"/github/working-with-github-pages/about-github-pages\">About GitHub Pages</a>.</p>",
|
44626 | 44640 | "bodyParameters": [
|
| 44641 | + { |
| 44642 | + "type": "boolean", |
| 44643 | + "description": "<p>Specify whether HTTPS should be enforced for the repository.</p>", |
| 44644 | + "name": "https_enforced", |
| 44645 | + "in": "body", |
| 44646 | + "rawType": "boolean", |
| 44647 | + "rawDescription": "Specify whether HTTPS should be enforced for the repository.", |
| 44648 | + "childParamsGroups": [] |
| 44649 | + }, |
44627 | 44650 | {
|
44628 | 44651 | "type": "boolean",
|
44629 | 44652 | "description": "<p>Configures access controls for the GitHub Pages site. If public is set to <code>true</code>, the site is accessible to anyone on the internet. If set to <code>false</code>, the site will only be accessible to users who have at least <code>read</code> access to the repository that published the site. This includes anyone in your Enterprise if the repository is set to <code>internal</code> visibility. This feature is only available to repositories in an organization on an Enterprise plan.</p>",
|
|
0 commit comments