Edit wiki settings
curl --request PATCH \
--url https://gogs.example.com/api/v1/repos/{owner}/{repo}/wiki \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"enable_wiki": true,
"allow_public_wiki": true,
"enable_external_wiki": true,
"external_wiki_url": "<string>"
}
'Repositories
Edit wiki settings
PATCH
/
repos
/
{owner}
/
{repo}
/
wiki
Edit wiki settings
curl --request PATCH \
--url https://gogs.example.com/api/v1/repos/{owner}/{repo}/wiki \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"enable_wiki": true,
"allow_public_wiki": true,
"enable_external_wiki": true,
"external_wiki_url": "<string>"
}
'Authorizations
Personal access token. Use format: token {YOUR_ACCESS_TOKEN}
Body
application/json
Response
Wiki settings updated successfully.