GitLab API

GitlabTool

Actions1095

Projects → postApiV4ProjectsUserUserId

AI-generated

Summary

Create a new project for the specified user by making a POST request to the GitLab API endpoint /api/v4/projects/user/{user_id}.

Inputs

  • user_id (required) — The ID of the user for whom the project will be created, provided as a path parameter.
  • postApiV4ProjectsUserUserId (required) — The request body object containing the details of the project to be created, following the GitLab API schema for project creation.
  • baseUrl — The base URL of the GitLab instance; defaults to https://gitlab.com.
  • skipAuthentication — Optional boolean to skip authentication; defaults to false.

Output shape

a single JSON object representing the newly created project as returned by the GitLab API

The response contains the full project details according to GitLab's API schema. Authentication is required unless skipAuthentication is set to true. The operation uses a POST HTTP method to create the resource.

Examples

Example 1: Create a new project for user with ID 1 with a specified project body

Provide user_id=1 and a structured request body with project details.

Links

Discussion