Skip to main content
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

Authorization
string
header
required

Personal access token. Use format: token {YOUR_ACCESS_TOKEN}

Path Parameters

owner
string
required

Owner of the repository

repo
string
required

Name of the repository

Body

application/json
enable_wiki
boolean

Whether to enable the wiki

allow_public_wiki
boolean

Whether the wiki is publicly accessible

enable_external_wiki
boolean

Whether to use an external wiki

external_wiki_url
string

URL of the external wiki

Response

Wiki settings updated successfully.