GitLab API icon

GitLab API

Gitlab

Actions1062

Deploy_tokens → postApiV4GroupsIdDeployTokens

AI-generated

Summary

Create a new deploy token for a specified GitLab group by providing the group ID and deployment token details in the request body.

Inputs

  • id (required) — The ID or URL-encoded path of the group owned by the authenticated user for which the deploy token will be created.
  • postApiV4GroupsIdDeployTokens (required) — An object containing the details of the deploy token to create, matching the GitLab postApiV4GroupsIdDeployTokens schema.
  • baseUrl — The base URL of the GitLab instance to target; defaults to https://gitlab.com.
  • skipAuthentication — Optionally skip authentication if set to true, otherwise default GitLab API credentials are used.

Output shape

a JSON object representing the newly created deploy token returned by the GitLab API.

The operation returns the deploy token resource as defined by the GitLab API after successful creation. Authentication is required unless explicitly skipped. The group ID must identify a group owned by the authenticated user.

Links

Discussion