Update a Question group
put
/spms/v1/questionnaires/templates/{templateId}/questionGroups/{groupId}
This is to update the Question group properties by passing in a json object.
Request
Supported Media Types
- application/json
Path Parameters
-
groupId: integer
Primary key that can be obtain from Questionnaire Question Group Table Primary Key
-
templateId: integer
Primary key that can be obtain from Questionnaire Template Table Primary Key
Required to update Question Group
Root Schema : UpdateQuestionGroup
Type:
object
Questionnaire Question Group
Show Source
-
group(optional):
object group
-
id(optional):
integer
Minimum Value:
1
Maximum Value:9999
This value is the primary id value obtained from Question Group tableExample:1
-
templateId(optional):
integer
Minimum Value:
1
Maximum Value:9999
This value is the primary id value obtained from Questionnaire Template tableExample:1
Nested Schema : group
Type:
Show Source
object
-
default(optional):
string
Minimum Length:
1
Maximum Length:255
Example:Oracle Cruise Group
-
zh(optional):
string
Minimum Length:
1
Maximum Length:255
Example:甲骨文克鲁斯集团
Response
Supported Media Types
- application/json
200 Response
OK
Root Schema : QuestionGroup
Type:
object
Questionnaire that is group together under a group
Show Source
-
group(optional):
object group
-
id(optional):
integer
Minimum Value:
1
Maximum Value:1
This value is the primary id for Question GroupExample:1
-
orderNumber(optional):
integer
Minimum Value:
1
Maximum Value:1
This value is order number for Question GroupExample:1
-
viewOnly(optional):
boolean
true = this Question Group cannot be modified
Nested Schema : group
Type:
Show Source
object
-
default(optional):
string
Minimum Length:
1
Maximum Length:255
Example:Oracle Cruise Group
-
zh(optional):
string
Minimum Length:
1
Maximum Length:255
Example:甲骨文克鲁斯集团
204 Response
No Content
400 Response
Bad Request
Root Schema : schema
Match All
Show Source
-
object
Error Response
Title:
Error Response
Error Response returned when encountered error
Example:
{
"type":"HTTP://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.1",
"title":"Bad Request",
"detail":"Constraint Violation Exception:Invalid parameter"
}
Nested Schema : Error Response
Type:
object
Title:
Error Response
Error Response returned when encountered error
Show Source
403 Response
Forbidden
Root Schema : schema
Match All
Show Source
-
object
Error Response
Title:
Error Response
Error Response returned when encountered error
Example:
{
"type":"HTTP://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.4",
"title":"Forbidden",
"detail":"Access to this resource was forbidden"
}
Nested Schema : Error Response
Type:
object
Title:
Error Response
Error Response returned when encountered error
Show Source
404 Response
Not Found
Root Schema : schema
Match All
Show Source
-
object
Error Response
Title:
Error Response
Error Response returned when encountered error
Example:
{
"type":"HTTP://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.2",
"title":"Not Found",
"detail":"Template not found."
}
Nested Schema : Error Response
Type:
object
Title:
Error Response
Error Response returned when encountered error
Show Source
405 Response
Method Not Allowed
Root Schema : schema
Match All
Show Source
-
object
Error Response
Title:
Error Response
Error Response returned when encountered error
Example:
{
"type":"https://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.6",
"title":"Method Not Supported",
"detail":"HTTP method not supported for this resource"
}
Nested Schema : Error Response
Type:
object
Title:
Error Response
Error Response returned when encountered error
Show Source
415 Response
Unsupported Media Type
Root Schema : schema
Match All
Show Source
-
object
Error Response
Title:
Error Response
Error Response returned when encountered error
Example:
{
"type":"HTTP://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.16",
"title":"Invalid content",
"detail":"Content type Not supported"
}
Nested Schema : Error Response
Type:
object
Title:
Error Response
Error Response returned when encountered error
Show Source
500 Response
Internal Server Error
Root Schema : schema
Match All
Show Source
-
object
Error Response
Title:
Error Response
Error Response returned when encountered error
Example:
{
"type":"https://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.5.1",
"title":"Internal Server Error",
"detail":"Issue fulfilling request. Please retry or contact support"
}
Nested Schema : Error Response
Type:
object
Title:
Error Response
Error Response returned when encountered error
Show Source