repository

Create a wiki page

Changed on
post/repos/{owner}/{repo}/wiki/new

Request

  • Base URL
    https://demo.gitea.com/api/v1
  • Auth
    • HTTP basic
    • or API key in query parameter token
    • or API key in query parameter access_token
    • or API key in header Authorization
    • or API key in query parameter sudo
    • or API key in header Sudo
    • or API key in header X-GITEA-OTP
  • TypeScript
    A function with typed inputs. Its response is checked against the schema.

Path parameters

ownerstring required

owner of the repo

repostring required

name of the repo

Request body

content_base64string

content must be base64 encoded

messagestring

optional commit message summarizing the change

titlestring

page title. leave empty to keep unchanged

Response

WikiPage

commit_countinteger

The number of commits that modified this page

content_base64string

Page content, base64 encoded

footerstring

The footer content for the wiki page

html_urlstring

The HTML URL to view the wiki page

sidebarstring

The sidebar content for the wiki page

sub_urlstring

The sub URL path for the wiki page

titlestring

The title of the wiki page

Changes

    • info

      removed the non-success response with the status

    • info

      removed the non-success response with the status

    • info

      removed the non-success response with the status

    • info

      removed the non-success response with the status