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
const url = 'https://gitea.com/api/v1/repos/example/example/issues/1/deadline';const options = { method: 'POST', headers: {Authorization: 'Basic <credentials>', 'Content-Type': 'application/json'}, body: '{"due_date":"2026-04-15T12:00:00Z"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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" }'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”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
Request Body
Section titled “Request Body”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"}Responses
Section titled “Responses”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
Headers
Section titled “Headers”message
string
url
string
APINotFound is a not found empty response