GitLab API icon

GitLab API

Gitlab

Actions1062

Projects_job_token_scope → postApiV4ProjectsIdJobTokenScopeGroupsAllowlist

AI-generated

Summary

Adds groups to the job token scope allowlist for a GitLab project.

Inputs

  • projectId (required) — ID of the GitLab project (integer). Supports number or string.
  • requestBody (required) — Object defining the groups to add to the allowlist, conforming to the GitLab API schema for POST /api/v4/projects/:id/job_token_scope/groups_allowlist.
  • skipAuthentication — If set to true, skips authentication; otherwise uses the gitlabApi credential.
  • authentication — Authentication method to use. Only 'gitlabApi' is available.
  • baseUrl — Base URL of the GitLab instance. Defaults to https://gitlab.com.

Output shape

object

Returns the response from the GitLab API, typically the updated allowlist or a success status.

Examples

Example 1: Add group with ID 42 to the allowlist of project 123

Set projectId to 123, requestBody to { "group_ids": [42] } (exact structure depends on GitLab spec), leave authentication and baseUrl at defaults.

Links

Discussion