repository

Create a release

Changed on
post/repos/{owner}/{repo}/releases

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

bodystring

The release notes or description

draftboolean

Whether to create the release as a draft

namestring

The display title of the release

prereleaseboolean

Whether to mark the release as a prerelease

tag_messagestring

The message for the git tag

tag_namestring required
target_commitishstring

The target commitish for the release

Response

Release

bodystring

The release notes or description

created_atstring date-time
draftboolean

Whether the release is a draft

html_urlstring

The HTML URL to view the release

idinteger

The unique identifier of the release

namestring

The display title of the release

prereleaseboolean

Whether the release is a prerelease

published_atstring date-time
tag_namestring

The name of the git tag associated with the release

tarball_urlstring

The URL to download the tarball archive

target_commitishstring

The target commitish for the release

upload_urlstring

The URL template for uploading release assets

urlstring

The API URL of the release

zipball_urlstring

The URL to download the zip archive

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