GitLab API

GitlabTool

Actions1095

Personal_access_tokens → postApiV4ProjectsIdAccessTokensSelfRotate

AI-generated

Summary

Rotate the personal access token for a specific GitLab project by making a POST request to the /api/v4/projects/{id}/access_tokens/self/rotate endpoint.

Inputs

  • id (required) — The ID of the GitLab project for which to rotate the personal access token.
  • postApiV4ProjectsIdAccessTokensSelfRotate (required) — Request body schema object containing data required to perform the token rotation.
  • baseUrl — The base URL of the GitLab instance; defaults to https://gitlab.com.
  • skipAuthentication — Whether to skip the node's usual authentication; defaults to false.

Output shape

A single JSON object representing the result of the token rotation operation returned by the GitLab API.

The operation uses the GitLab API credential to authenticate by default unless 'Skip Authentication' is set to true. The path parameter 'id' is required to specify the target project. The request body must conform to the expected schema for this API endpoint as defined in the node's OpenAPI specification.

Links

Discussion