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": "/"
}
}'
{}