GitLab API

GitlabTool

Actions1095

Merge_requests → postApiV4ProjectsIdMergeRequestsMergeRequestIidTimeEstimate

AI-generated

Summary

Set a time estimate for a specific GitLab merge request by providing the project ID and the merge request's internal ID along with the time estimate details in the request body.

Inputs

  • id (required) — The ID or URL-encoded path of the GitLab project containing the merge request.
  • merge_request_iid (required) — The internal ID of the specific merge request to update with the time estimate.
  • postApiV4ProjectsIdMergeRequestsMergeRequestIidTimeEstimate (required) — The request body containing the time estimate to assign to the merge request.

Output shape

a single JSON object containing the API response which confirms the time estimate update or reports an error

The response shape depends on the GitLab API output for this endpoint; typical success response includes updated time estimate details. No pagination or batch processing is involved.

Examples

Example 1: Set a 2-hour time estimate on merge request 15 in project 'my-project'

Provide 'my-project' as 'id', 15 as 'merge_request_iid', and a body with 'duration' set to '2h' or equivalent time format.

Links

Discussion