GitLab API

GitlabTool

Actions1095

Pypi_packages → postApiV4ProjectsIdPackagesPypi

AI-generated

Summary

Upload a PyPI package to a specified GitLab project by sending a POST request to the project's PyPI packages endpoint.

Inputs

  • id (required) — The ID or URL-encoded path of the target GitLab project.
  • Request Body (required) — The PyPI package data and metadata to upload, matching the expected request schema for the POST /api/v4/projects/{id}/packages/pypi endpoint.
  • Skip Authentication — Whether to bypass authentication for this request (default false).
  • Base URL — Override the GitLab instance base URL; defaults to https://gitlab.com.

Output shape

a single JSON object representing the uploaded PyPI package details returned by GitLab upon successful upload

Requires authentication by default; the output follows the GitLab API schema for created PyPI packages in the project. The project is identified via the 'id' path parameter.

Links

Discussion