issue

Create an issue. If using deadline only the date will be taken into account, and time of day ignored.

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

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

assigneestring

deprecated

assigneesstring[]
bodystring
closedboolean
due_datestring date-time
labelsinteger[]

list of label ids

milestoneinteger

milestone id

projectsinteger[]

list of project ids

refstring
titlestring required

Response

Issue

bodystring
closed_atstring date-time
commentsinteger
content_versioninteger

The version of the issue content for optimistic locking

created_atstring date-time
due_datestring date-time
html_urlstring
idinteger
is_lockedboolean
numberinteger
pin_orderinteger
refstring
state'open' | 'closed'
time_estimateinteger
titlestring
updated_atstring date-time
urlstring

Example response

{
  "labels": [
    {
      "color": "00aabb"
    }
  ]
}

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

    • info

      removed the non-success response with the status