curl --location --request PUT 'https://api.github.com/repos///pages' \
--header 'Content-Type: application/json' \
--data-raw '{
"cname": "octocatblog.com",
"source": {
"branch": "main",
"path": "/"
}
}'
{}
Authorization: Bearer ********************
null
value will remove the custom domain. For more about custom domains, see "Using a custom domain with GitHub Pages."true
, the site is accessible to anyone on the internet. If set to false
, the site will only be accessible to users who have at least read
access to the repository that published the site. This includes anyone in your Enterprise if the repository is set to internal
visibility. This feature is only available to repositories in an organization on an Enterprise plan.【GitHub】API开发者 微信交流群
用微信扫右侧二维码,加入【GitHub】API开发者 交流群,互助沟通