summaryrefslogtreecommitdiff
path: root/doc/api/deployments.md
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-03-08 12:20:17 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2022-03-08 12:20:17 +0000
commit6728ed6fe203d0613ee63c89a08a70fffb93405c (patch)
tree9eddfee7a854efd47d85899c1524fd4bd10ce8e4 /doc/api/deployments.md
parent60028378dd5e5e7844810e4a2aa2934a58f738ca (diff)
downloadgitlab-ce-6728ed6fe203d0613ee63c89a08a70fffb93405c.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'doc/api/deployments.md')
-rw-r--r--doc/api/deployments.md6
1 files changed, 4 insertions, 2 deletions
diff --git a/doc/api/deployments.md b/doc/api/deployments.md
index 87ff6549540..4a09f9a6605 100644
--- a/doc/api/deployments.md
+++ b/doc/api/deployments.md
@@ -465,9 +465,10 @@ POST /projects/:id/deployments/:deployment_id/approval
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](index.md#namespaced-path-encoding) owned by the authenticated user. |
| `deployment_id` | integer | yes | The ID of the deployment. |
| `status` | string | yes | The status of the approval (either `approved` or `rejected`). |
+| `comment` | string | no | A comment to go with the approval |
```shell
-curl --data "status=approved" \
+curl --data "status=approved&comment=Looks good to me" \
--header "PRIVATE-TOKEN: <your_access_token>" "https://gitlab.example.com/api/v4/projects/1/deployments/1/approval"
```
@@ -484,6 +485,7 @@ Example response:
"web_url": "http://localhost:3000/root"
},
"status": "approved",
- "created_at": "2022-02-24T20:22:30.097Z"
+ "created_at": "2022-02-24T20:22:30.097Z",
+ "comment":"Looks good to me"
}
```