GitLab API

GitlabTool

Actions1095

Projects → postApiV4ProjectsIdRunners

AI-generated

Summary

Add a specific runner to a GitLab project by providing the project ID and the 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) — The request body object containing the runner information to be added to the project.

Output shape

a single JSON object representing the runner added to the project, or an error response if unsuccessful

The operation uses POST on the path /api/v4/projects/{id}/runners and requires authentication unless 'Skip Authentication' is enabled.

Examples

Example 1: Add a runner to project with ID '1234'.

Set 'Id' parameter to '1234' and provide the runner details in the request body under 'postApiV4ProjectsIdRunners'.

Links

Discussion