curl --request POST \
--url https://gogs.example.com/api/v1/repos/{owner}/{repo}/issues \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"title": "<string>",
"body": "<string>",
"assignee": "<string>",
"milestone": 123,
"labels": [
123
],
"closed": false
}
'{
"id": 123,
"number": 123,
"state": "open",
"title": "<string>",
"body": "<string>",
"user": {
"id": 123,
"username": "<string>",
"login": "<string>",
"full_name": "<string>",
"email": "[email protected]",
"avatar_url": "<string>"
},
"labels": [
{
"id": 123,
"name": "<string>",
"color": "<string>",
"url": "<string>"
}
],
"assignee": {
"id": 123,
"username": "<string>",
"login": "<string>",
"full_name": "<string>",
"email": "[email protected]",
"avatar_url": "<string>"
},
"milestone": {
"id": 123,
"state": "open",
"title": "<string>",
"description": "<string>",
"open_issues": 123,
"closed_issues": 123,
"closed_at": "2023-11-07T05:31:56Z",
"due_on": "2023-11-07T05:31:56Z"
},
"comments": 123,
"pull_request": {},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}curl --request POST \
--url https://gogs.example.com/api/v1/repos/{owner}/{repo}/issues \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"title": "<string>",
"body": "<string>",
"assignee": "<string>",
"milestone": 123,
"labels": [
123
],
"closed": false
}
'{
"id": 123,
"number": 123,
"state": "open",
"title": "<string>",
"body": "<string>",
"user": {
"id": 123,
"username": "<string>",
"login": "<string>",
"full_name": "<string>",
"email": "[email protected]",
"avatar_url": "<string>"
},
"labels": [
{
"id": 123,
"name": "<string>",
"color": "<string>",
"url": "<string>"
}
],
"assignee": {
"id": 123,
"username": "<string>",
"login": "<string>",
"full_name": "<string>",
"email": "[email protected]",
"avatar_url": "<string>"
},
"milestone": {
"id": 123,
"state": "open",
"title": "<string>",
"description": "<string>",
"open_issues": 123,
"closed_issues": 123,
"closed_at": "2023-11-07T05:31:56Z",
"due_on": "2023-11-07T05:31:56Z"
},
"comments": 123,
"pull_request": {},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}Personal access token. Use format: token {YOUR_ACCESS_TOKEN}
Created
open, closed Show child attributes
Show child attributes
Show child attributes
Show child attributes