GitLab API

GitlabTool

Actions1095

Merge_requests → postApiV4ProjectsIdMergeRequestsMergeRequestIidResetSpentTime

AI-generated

Summary

Reset the spent time of a specified merge request within a GitLab project by making a POST request to the relevant GitLab API endpoint.

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 merge request whose spent time is to be reset.
  • skipAuthentication — Optional flag to skip authentication; defaults to false.
  • baseUrl — Optional base URL of the GitLab instance; defaults to 'https://gitlab.com'.

Output shape

a single JSON response object from the GitLab API, typically empty or indicating success or failure for the reset_spent_time operation

The operation sends a POST request to '/api/v4/projects/{id}/merge_requests/{merge_request_iid}/reset_spent_time'. The output reflects the API's response; no pagination is involved. Errors from the API will be surfaced accordingly.

Examples

Example 1: Resetting spent time

Set 'id' to the project's ID/path and 'merge_request_iid' to the merge request number; execute operation to clear tracked spent time on that merge request.

Links

Discussion