---
title: "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."
method: POST
path: "/repos/{owner}/{repo}/issues/{index}/deadline"
tags: ["issue"]
---

# 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`

## Path parameters

- `owner` string, required
- `repo` string, required
- `index` integer, required

## Request body

- EditDeadlineOption — EditDeadlineOption options for creating a deadline
  - `due_date` string, date-time, required

## Response `201`

IssueDeadline

- IssueDeadline — IssueDeadline represents an issue deadline
  - `due_date` string, date-time

## Other responses

- `403` — APIForbiddenError is a forbidden error response
- `404` — APINotFound is a not found empty response

---

[API](https://skmtc.net/gitea/apis/gitea-api.md) · [All operations](https://skmtc.net/gitea/apis/gitea-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/gitea/gitea-api/versions/350de506cefa/schema)
