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
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 type application/json
EditDeadlineOption options for creating a deadline
object
due_date
required
string format: date-time
Example generated
{ "due_date": "2026-04-15T12:00:00Z"}Responses
Section titled “ Responses ”IssueDeadline
Media type application/json
IssueDeadline represents an issue deadline
object
due_date
string format: date-time
Example generated
{ "due_date": "2026-04-15T12:00:00Z"}APIForbiddenError is a forbidden error response
Media type application/json
object
message
string
url
string
Example generated
{ "message": "example", "url": "example"}APINotFound is a not found error response
Media type application/json
object
errors
Array<string>
message
string
url
string
Example generated
{ "errors": [ "example" ], "message": "example", "url": "example"}