GitLab API

GitlabTool

Actions1095

Nuget_packages → putApiV4ProjectsIdPackagesNugetV2Authorize

AI-generated

Summary

Authorize a NuGet package upload by sending a PUT request to the GitLab API endpoint for NuGet package authorization in a specific project.

Inputs

  • id (required) — The ID or URL-encoded path of the project for which the NuGet package authorization is requested.
  • skipAuthentication — Optionally skip authentication for this request (default is false).
  • baseUrl — The base URL of the GitLab instance, defaults to 'https://gitlab.com'.

Output shape

a single JSON response object from the GitLab API, typically containing authorization details for NuGet package upload; no explicit schema provided.

The output corresponds to the response from the PUT request to '/api/v4/projects/{id}/packages/nuget/v2/authorize'. The request requires the project ID in the path parameters and uses GitLab API credentials unless 'Skip Authentication' is enabled.

Examples

Example 1: Authorize NuGet package upload for a specific project

Set the 'id' path parameter to the project's ID or path, leave Skip Authentication off to use GitLab credentials, and execute this operation to receive authorization information used for NuGet package uploads.

Links

Discussion