From 692c98895f586b5e334c8a9bf9b679778f37d1d1 Mon Sep 17 00:00:00 2001 From: Josh Hawn Date: Tue, 29 Nov 2016 17:33:45 -0800 Subject: [PATCH] Add SecretUpdate docs to api/swagger.yaml Docker-DCO-1.1-Signed-off-by: Josh Hawn (github: jlhawn) (cherry picked from commit 1cd5af59bffb6ee38f3599443abdcc30359bd521) Signed-off-by: Victor Vieux --- api/swagger.yaml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/api/swagger.yaml b/api/swagger.yaml index ad97bb221b..2f5b975f56 100644 --- a/api/swagger.yaml +++ b/api/swagger.yaml @@ -7678,3 +7678,36 @@ paths: type: "string" description: "ID of the secret" tags: ["Secret"] + /secrets/{id}/update: + post: + summary: "Update a Secret" + operationId: "SecretUpdate" + responses: + 200: + description: "no error" + 404: + description: "no such secret" + schema: + $ref: "#/definitions/ErrorResponse" + 500: + description: "server error" + schema: + $ref: "#/definitions/ErrorResponse" + parameters: + - name: "id" + in: "path" + description: "The ID of the secret" + type: "string" + required: true + - name: "body" + in: "body" + schema: + $ref: "#/definitions/SecretSpec" + description: "The spec of the secret to update. Currently, only the Labels field can be updated. All other fields must remain unchanged from the [SecretInspect endpoint](#operation/SecretInspect) response values." + - name: "version" + in: "query" + description: "The version number of the secret object being updated. This is required to avoid conflicting writes." + type: "integer" + format: "int64" + required: true + tags: ["Secret"]