---
title: "Set the estimated time for an issue"
method: POST
path: "/api/v4/projects/{id}/issues/{issue_iid}/time_estimate"
tags: ["issues"]
---

# Set the estimated time for an issue

`POST /api/v4/projects/{id}/issues/{issue_iid}/time_estimate`

## Request

- Base URL: `https://gitlab.com`
- URL: `https://gitlab.com/api/v4/projects/{id}/issues/{issue_iid}/time_estimate`
- Auth: none declared

Sets an estimated time of work for a specified issue.

## Path parameters

- `id` string, required
- `issue_iid` integer, required

## Request body

- PostApiV4ProjectsIdIssuesIssueIidTimeEstimate: Set the estimated time for an issue
  - `duration` string, required: The duration in human format.

## Response `201`

Set the estimated time for an issue

- APIEntitiesIssuableTimeStats: API_Entities_IssuableTimeStats model
  - `time_estimate` integer, required
  - `total_time_spent` integer, required
  - `human_time_estimate` string, required
  - `human_total_time_spent` string, required

## Other responses

- `400`: Bad request
- `401`: Unauthorized
- `404`: Not found

---

[API](https://skmtc.dev/gitlab/apis/gitlab-api.md) - [All operations](https://skmtc.dev/gitlab/apis/gitlab-api/llms.txt) - [OpenAPI document](https://skmtc.dev/gitlab/apis/gitlab-api/revisions/b234947ef3f2?raw)
