From a76b451c218750c147e656b0fcd8975c1e1f7498 Mon Sep 17 00:00:00 2001 From: Adam Mulvany Date: Mon, 4 Dec 2017 10:09:57 +1100 Subject: Refine deploy_key request in docs --- doc/api/deploy_keys.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/api/deploy_keys.md b/doc/api/deploy_keys.md index 566ff75bbe2..ffb486173e0 100644 --- a/doc/api/deploy_keys.md +++ b/doc/api/deploy_keys.md @@ -147,8 +147,8 @@ PUT /projects/:id/deploy_keys/:id | --------- | ---- | -------- | ----------- | | `id` | integer/string | yes | The ID or [URL-encoded path of the project](README.md#namespaced-path-encoding) owned by the authenticated user | | `key_id` | integer/string | yes | The ID of the deploy key | -| `title` | string | optional | New deploy key's title | -| `can_push` | boolean | no | Can deploy key push to the project's repository | +| `title` | string | optional | The title of the deploy key | +| `can_push` | boolean | no | Whether the deploy key will have write permissions to the repository | ```bash curl --request PUT --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" --header "Content-Type: application/json" --data '{"key_id":"3", "title": "My updated key", "can_push": "true"}' "https://gitlab.example.com/api/v4/projects/5/deploy_keys/3" -- cgit v1.2.1