CreateRepoIssue
create repo issue
Path Parameters
- owner required
The owner of the repository, generally called "username". The name is not case sensitive.
 - repo required
repository name, the name is not case sensitive
 
Header Parameters
- Authorization required
Private token | app token(ats) (needs to start with Bearer plus a space)
 
- application/json
 
Request Body
- title string
issue title
 - body string
Issue content (use markdown format to write content)
 
Responses
- 200
 - 401
 - 403
 
Success
- application/json
 
- Schema
 - Example (from schema)
 
Schema
- id string
id
 - url string
url
 - number int
number
 - state string
state
 - title string
title
 - body string
Issue text (use MD format to write content)
 user object
id stringid
login stringusername
url stringuser url
avatar_url stringavatar_url
html_url stringhtml_url
type stringuser type - User | Bot
assignee object
id stringid
login stringusername
url stringuser url
avatar_url stringavatar_url
html_url stringhtml_url
type stringuser type - User | Bot
- locked boolean
lock status
 - repository_url string
repository_url
 - html_url string
issue web url
 - closed_at string
closed_at
 - created_at string
created_at
 - updated_at string
updated_at
 
{
  "id": "64a2791c36ca86246aed3612",
  "url": "https://api.atomgit.com/repos/test/public01/issues/6",
  "number": 1,
  "state": "closed",
  "title": "test title",
  "body": "issue content",
  "user": {
    "id": "62c791bede9059102516aa8f",
    "login": "lik0914",
    "url": "https://api.atomgit.com/users/lik0914",
    "avatar_url": "https://xxx.com/uploads/user/1657265547983_3769.png",
    "html_url": "https://atomgit.com/lik0914",
    "type": "User"
  },
  "assignee": {
    "id": "62c791bede9059102516aa8f",
    "login": "lik0914",
    "url": "https://api.atomgit.com/users/lik0914",
    "avatar_url": "https://xxx.com/uploads/user/1657265547983_3769.png",
    "html_url": "https://atomgit.com/lik0914",
    "type": "User"
  },
  "locked": false,
  "repository_url": "https://api.atomgit.com/repos/test/public01",
  "html_url": "https://atomgit.com/test/public01/issues/1",
  "closed_at": "2023-07-04T17:03:05+08:00",
  "created_at": "2023-07-04T17:03:05+08:00",
  "updated_at": "2023-07-04T17:03:05+08:00"
}
Invalid token, please check if the token is correct.
- application/json
 - application/xml
 
- Schema
 - Example (from schema)
 
Schema
- error string
error name
 - error_description string
wrong description
 
{
  "error": "invalid_token",
  "error_description": "Invalid token, please provide correct token"
}
- Schema
 - Example (from schema)
 
Schema
- error string
error name
 - error_description string
wrong description
 
<root>
  <error>invalid_token</error>
  <error_description>Invalid token, please provide correct token</error_description>
</root>
Permission exception
- application/json
 
- Schema
 - Example (from schema)
 
Schema
- error_code string
error name
 - error_message string
wrong description
 
{
  "error_code": "string",
  "error_message": "string"
}
Loading...