Commit 9bc1de5b authored by Russell Dickenson's avatar Russell Dickenson

Merge branch 'msj-update-boards-api-example' into 'master'

Update example to create a new issue board list

See merge request gitlab-org/gitlab!24297
parents 7cafe597 a98b4580
...@@ -484,20 +484,29 @@ POST /groups/:id/boards/:board_id/lists ...@@ -484,20 +484,29 @@ POST /groups/:id/boards/:board_id/lists
| `label_id` | integer | yes | The ID of a label | | `label_id` | integer | yes | The ID of a label |
```shell ```shell
curl --request POST --header "PRIVATE-TOKEN: <your_access_token>" https://gitlab.example.com/api/v4/groups/5/boards/1/lists?label_id=5 curl --request POST --header "PRIVATE-TOKEN: <your_access_token>" https://gitlab.example.com/api/v4/groups/4/boards/12/lists?milestone_id=7
``` ```
Example response: Example response:
```json ```json
{ {
"id" : 1, "id": 9,
"label" : { "label": null,
"name" : "Testing", "position": 0,
"color" : "#F0AD4E", "milestone": {
"description" : null "id": 7,
}, "iid": 3,
"position" : 1 "group_id": 12,
"title": "Milestone with due date",
"description": "",
"state": "active",
"created_at": "2017-09-03T07:16:28.596Z",
"updated_at": "2017-09-03T07:16:49.521Z",
"due_date": null,
"start_date": null,
"web_url": "https://gitlab.example.com/groups/issue-reproduce/-/milestones/3"
}
} }
``` ```
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment