Skip to content
Try Gitea Cloud ☁️ for 30 days → Accelerate your Development & Deploys!
This is the documentation of 1.24.7, which is no longer the latest release. See the latest release.

Set an issue deadline. If set to null, the deadline is deleted. If using deadline only the date will be taken into account, and time of day ignored.

POST
/repos/{owner}/{repo}/issues/{index}/deadline
curl --request POST \
--url https://gitea.com/api/v1/repos/example/example/issues/1/deadline \
--header 'Authorization: Basic <credentials>' \
--header 'Content-Type: application/json' \
--data '{ "due_date": "2026-04-15T12:00:00Z" }'
owner
required
string

Owner of the repo

repo
required
string

Name of the repo

index
required
integer format: int64

Index of the issue to create or update a deadline on

Media typeapplication/json

EditDeadlineOption options for creating a deadline

object
due_date
required
string format: date-time
Examplegenerated
{
"due_date": "2026-04-15T12:00:00Z"
}

IssueDeadline

Media typeapplication/json

IssueDeadline represents an issue deadline

object
due_date
string format: date-time
Examplegenerated
{
"due_date": "2026-04-15T12:00:00Z"
}

APIForbiddenError is a forbidden error response

Media typeapplication/json
message
string
url
string

APINotFound is a not found empty response

Media typeapplication/json