GitLab API icon

GitLab API

Gitlab

Actions1062

Projects → postApiV4ProjectsIdRunners

AI-generated

Summary

Add a runner to a GitLab project by specifying the project ID or URL-encoded path and providing runner details in the request body.

Inputs

  • id (required) — The ID or URL-encoded path of the project owned by the authenticated user.
  • postApiV4ProjectsIdRunners (required) — Runner details provided in the request body as defined by the GitLab API schema for adding a runner to a project.

Output shape

a single JSON object representing the runner added to the project or an error response from the GitLab API

The response follows the GitLab API format for the runner resource. Authentication is required unless 'Skip Authentication' is set to true. The base URL defaults to https://gitlab.com but can be configured.

Examples

Example 1: Add a specific runner to project with ID '123'

Set 'id' to '123' and provide details of the runner in 'postApiV4ProjectsIdRunners' in the request body.

Links

Discussion