GitLab API icon

GitLab API

Gitlab

Actions1062

Remote_mirrors → postApiV4ProjectsIdRemoteMirrors

AI-generated

Summary

Creates a new remote mirror for a GitLab project via POST /api/v4/projects/{id}/remote_mirrors.

Inputs

  • Project ID (required) — The ID or URL-encoded path of the project for which the remote mirror is created.
  • Request Body (required) — The remote mirror definition as defined by the GitLab API schema (#/definitions/postApiV4ProjectsIdRemoteMirrors).
  • Skip Authentication — When true, the request is sent without using the GitLab API credential.
  • Base URL — Alternate base URL for the GitLab instance (defaults to https://gitlab.com).

Output shape

object

Returns the created remote mirror object as returned by the GitLab API.

Examples

Example 1: Create a remote mirror

Supply the Project ID and a request body containing at least the 'url' of the remote repository.

Links

Discussion