GitLab API icon

GitLab API

Gitlab

Actions1062

Merge_requests → postApiV4ProjectsIdMergeRequestsMergeRequestIidAddSpentTime

AI-generated

Summary

Add spent time to a specific merge request within a GitLab project by providing the project ID, merge request IID, and the time to add.

Inputs

  • id (required) — The ID or URL-encoded path of the project containing the merge request.
  • merge_request_iid (required) — The internal ID of the merge request to which spent time will be added.
  • postApiV4ProjectsIdMergeRequestsMergeRequestIidAddSpentTime (required) — The request body containing the amount of time to add as spent time on the merge request.
  • skipAuthentication — Optionally skip authentication; defaults to false.
  • baseUrl — The base URL for the GitLab instance; defaults to https://gitlab.com if not specified.

Output shape

a JSON object representing the result of adding spent time to the specified merge request, typically including updated merge request data or confirmation.

The output format directly mirrors the GitLab API response from the add spent time endpoint. Authentication usage depends on the skipAuthentication flag. No pagination applies to this operation.

Links

Discussion