GitLab API icon

GitLab API

Gitlab

Actions880

Overview

This node operation updates a specific freeze period for a project in GitLab using the GitLab API. It is useful for managing project freeze periods programmatically, such as modifying the start or end dates of a freeze period to control when changes can be made to the project. For example, a DevOps engineer might use this node to update freeze periods during critical release phases to prevent changes.

Use Case Examples

  1. Update the freeze period dates for a project to restrict changes during a release window.
  2. Modify freeze period details to reflect new project timelines.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request.
baseUrl Base URL of the GitLab instance, defaulting to https://gitlab.com.
Method HTTP method to use for the request, default is GET but can be set to PUT for this operation.
Path Parameters Parameters for the API path including project ID and freeze period ID to identify the resource to update.

Output

JSON

  • id - The ID of the updated freeze period.
  • start_date - The start date of the freeze period.
  • end_date - The end date of the freeze period.
  • created_at - Timestamp when the freeze period was created.
  • updated_at - Timestamp when the freeze period was last updated.

Dependencies

  • GitLab API authentication token

Troubleshooting

  • Ensure the project ID and freeze period ID are correct and exist in GitLab to avoid 404 errors.
  • Verify that the authentication token has sufficient permissions to update freeze periods.
  • Check the request body schema matches the expected format to prevent validation errors.

Links

Discussion