From 12f2d8d2adb3e2e7df61e8d21aa72a9de2318e59 Mon Sep 17 00:00:00 2001 From: rito528 <39003544+rito528@users.noreply.github.com> Date: Wed, 8 May 2024 20:12:20 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20questions=E3=82=92=E7=BD=AE=E3=81=8D?= =?UTF-8?q?=E6=8F=9B=E3=81=88=E3=82=8B=E5=AE=9A=E7=BE=A9=E3=82=92=E8=BF=BD?= =?UTF-8?q?=E5=8A=A0=E3=81=99=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- schema/paths/forms/questions/index.yml | 27 ++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/schema/paths/forms/questions/index.yml b/schema/paths/forms/questions/index.yml index 9b11651..fded612 100644 --- a/schema/paths/forms/questions/index.yml +++ b/schema/paths/forms/questions/index.yml @@ -54,3 +54,30 @@ delete: description: question_idが見つからなかった "500": description: サーバーエラー + +put: + tags: + - forms + operationId: updateQuestion + summary: 質問の値を更新する + description: 指定したフォームの質問を上書きする + requestBody: + description: 更新するフォーム質問IDと更新内容 + required: true + content: + application/json: + schema: + $ref: "../../../types/forms/definitions.yml#/definitions/questions" + responses: + "200": + description: 質問編集成功 + "400": + description: リクエストの構文が間違っている + "401": + description: 認証されていない + "403": + description: 権限が不足している + "404": + description: 質問IDが見つからなかった + "500": + description: サーバーエラー