summaryrefslogtreecommitdiff
path: root/doc/ci/api/forks.md
blob: 8f32e2d3b40c0b18afa78beb9b85df260ecc61d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Forks API

This API is intended to aid in the setup and configuration of
forked projects on Gitlab CI. 

__Authentication is done by GitLab user token & GitLab project token__

## Forks

### Create fork for project



```
POST /ci/forks
```

Parameters:

    project_id (required) - The ID of a project
    project_token (requires) - Project token
    private_token(required) - User private token
    data (required) - GitLab project data (name_with_namespace, web_url, default_branch, ssh_url_to_repo)