summaryrefslogtreecommitdiff
path: root/doc/api/forks.md
blob: 1a5ea8041d84c125667361c6716fc8e0ed033d16 (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 /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)