repo
scope or Pages write permission is required. GitHub Apps must have the administration:write
and pages:write
permissions.curl --location --request PUT 'https://api.github.com/repos///pages' \
--header 'Content-Type: application/json' \
--data-raw '{
"cname": "octocatblog.com",
"source": {
"branch": "main",
"path": "/"
}
}'
{}
workflow
means that the site is built by a custom GitHub Actions workflow. legacy
means that the site is built by GitHub when changes are pushed to a specific branch.null
value will remove the custom domain. For more about custom domains, see "Using a custom domain with GitHub Pages."