GitLab API icon

GitLab API

Gitlab

Actions1062

Projects → putApiV4ProjectsIdTriggersTriggerId

AI-generated

Summary

Update a specific trigger for a GitLab project by providing the project ID or URL-encoded path and the trigger ID, along with the updated trigger details in the request body.

Inputs

  • id (required) — The ID or URL-encoded path of the GitLab project whose trigger is to be updated.
  • trigger_id (required) — The ID of the trigger token to update within the specified project.
  • putApiV4ProjectsIdTriggersTriggerId (required) — An object containing the fields to update the trigger with, as specified by the GitLab API schema for project triggers.
  • baseUrl — The base URL of the GitLab instance; defaults to 'https://gitlab.com'.
  • skipAuthentication — Option to skip authentication for this request; defaults to false.

Output shape

the updated trigger object as returned by the GitLab API

The response contains the updated trigger data. Authentication is required unless explicitly skipped. The request is sent via HTTP PUT to the path '/api/v4/projects/{id}/triggers/{trigger_id}' with path parameters and the request body.

Links

Discussion