GitLab API

GitlabTool

Actions1095

Deploy_tokens → postApiV4ProjectsIdDeployTokens

AI-generated

Summary

Create a new deploy token for a specified GitLab project by providing the project ID or URL-encoded path along with the deploy token details in the request body.

Inputs

  • id (required) — The ID or URL-encoded path of the GitLab project to which the deploy token will be added.
  • postApiV4ProjectsIdDeployTokens (required) — The request body object containing the parameters for creating the deploy token, as defined by the GitLab API schema for deploy tokens.
  • baseUrl — Optional base URL of the GitLab instance, defaults to https://gitlab.com.
  • skipAuthentication — Whether to skip using stored authentication credentials for the API call.

Output shape

a single JSON object representing the created deploy token's details as returned by the GitLab API

Returns the full response from the GitLab API upon successful creation. Requires authentication unless skipAuthentication is set to true. The operation expects authentication credentials to be provided via the gitlabApi credential unless skipping authentication.

Links

Discussion