GitLab API icon

GitLab API

Gitlab

Actions1062

Badges → postApiV4ProjectsIdBadges

AI-generated

Summary

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

Inputs

  • id (required) — The ID or URL-encoded path of the project owned by the authenticated user.
  • postApiV4ProjectsIdBadges (required) — The request body containing the badge information to be created.
  • skipAuthentication — Optionally skip authentication; defaults to false.
  • baseUrl — The base URL of the GitLab instance; defaults to https://gitlab.com.

Output shape

a JSON object representing the newly created badge

Requires authentication unless 'Skip Authentication' is enabled; operation sends a POST request to '/api/v4/projects/{id}/badges' with path parameter 'id' and body containing badge details.

Links

Discussion