From 07624e533c37218dfa3aac8f2745d702673dde07 Mon Sep 17 00:00:00 2001 From: "jeremy.zhang" Date: Wed, 6 Dec 2017 11:59:48 +0800 Subject: [PATCH] Fix api-ref for v3 group type specs This patch aims to make some trivial fix on api-ref for v3 group type specs. Change-Id: If59c491446a7bf7b928ca2219092ed9561501cd9 --- api-ref/source/v3/group-type-specs.inc | 11 ++++++++--- .../v3/samples/group-type-specs-update-request.json | 3 +++ 2 files changed, 11 insertions(+), 3 deletions(-) create mode 100644 api-ref/source/v3/samples/group-type-specs-update-request.json diff --git a/api-ref/source/v3/group-type-specs.inc b/api-ref/source/v3/group-type-specs.inc index 22c3826c5c6..11d6ecdbaac 100644 --- a/api-ref/source/v3/group-type-specs.inc +++ b/api-ref/source/v3/group-type-specs.inc @@ -3,8 +3,8 @@ Group type specs ================ -Create group specs for a group type -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Create or update group specs for a group type +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. rest_method:: POST /v3/{project_id}/group_types/{group_type_id}/group_specs @@ -131,7 +131,7 @@ Update one specific group spec for a group type Update a group spec for a group type, -Normal response codes: 202 +Normal response codes: 200 Error response codes: itemNotFound(404), forbidden(403) @@ -146,6 +146,11 @@ Request - spec_id: spec_id - spec: spec_value +Request Example +--------------- + +.. literalinclude:: ./samples/group-type-specs-update-request.json + :language: javascript Response Parameters ------------------- diff --git a/api-ref/source/v3/samples/group-type-specs-update-request.json b/api-ref/source/v3/samples/group-type-specs-update-request.json new file mode 100644 index 00000000000..513df0922ff --- /dev/null +++ b/api-ref/source/v3/samples/group-type-specs-update-request.json @@ -0,0 +1,3 @@ +{ + "key1": "value1" +}