diff options
author | Rémy Coutable <remy@rymai.me> | 2017-02-22 11:47:13 +0000 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2017-02-22 11:47:13 +0000 |
commit | 87411889b9c8a778bebafeaa381e1d736af7329a (patch) | |
tree | 338e2628a8b7b95572fb1bacf3ea8b8272c3929c /doc/api/branches.md | |
parent | 99d0bc3d5521785f14330ef8cb2160c2bececeee (diff) | |
parent | c79bbe26ab1e16facddaf159d4d074937586d742 (diff) | |
download | gitlab-ce-87411889b9c8a778bebafeaa381e1d736af7329a.tar.gz |
Merge branch '22132-rename-branch-name-params-to-branch' into 'master'
Standardize branch name params as `branch` on V4 API
Closes #22132
See merge request !8936
Diffstat (limited to 'doc/api/branches.md')
-rw-r--r-- | doc/api/branches.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/api/branches.md b/doc/api/branches.md index 5eaa8d2e920..765ca439720 100644 --- a/doc/api/branches.md +++ b/doc/api/branches.md @@ -193,11 +193,11 @@ POST /projects/:id/repository/branches | Attribute | Type | Required | Description | | --------- | ---- | -------- | ----------- | | `id` | integer | yes | The ID of a project | -| `branch_name` | string | yes | The name of the branch | +| `branch` | string | yes | The name of the branch | | `ref` | string | yes | The branch name or commit SHA to create branch from | ```bash -curl --request POST --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" "https://gitlab.example.com/api/v3/projects/5/repository/branches?branch_name=newbranch&ref=master" +curl --request POST --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" "https://gitlab.example.com/api/v3/projects/5/repository/branches?branch=newbranch&ref=master" ``` Example response: |