| PUT | /distribution/merchandising/questiongroups/questions | ||
|---|---|---|---|
| PUT | /distribution/merchandising/questiongroups/{GroupId}/questions |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| GroupId | path | int? | No | |
| Question | body | MerchQuestion | No | |
| SortId | body | int? | No | |
| CanSkip | body | bool? | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Id | form | int | No | |
| Title | form | string | No | |
| Description | form | string | No | |
| QuestionType | form | int | No | |
| AnswerType | form | int | No | |
| Params | form | Dictionary<string, string> | No | |
| Choices | form | List<MerchQuestionChoice> | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Id | form | int | No | |
| Title | form | string | No | |
| Description | form | string | No | |
| Value | form | string | No | |
| SortId | form | int? | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| ResponseStatus | form | ResponseStatus | No | |
| NewId | form | int? | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
PUT /distribution/merchandising/questiongroups/questions HTTP/1.1
Host: 10.10.0.107
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
GroupId: 0,
Question:
{
Id: 0,
Title: String,
Description: String,
QuestionType: 0,
AnswerType: 0,
Params:
{
String: String
},
Choices:
[
{
Id: 0,
Title: String,
Description: String,
Value: String,
SortId: 0
}
]
},
SortId: 0,
CanSkip: False
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
ResponseStatus:
{
ErrorCode: String,
Message: String,
StackTrace: String,
Errors:
[
{
ErrorCode: String,
FieldName: String,
Message: String,
Meta:
{
String: String
}
}
],
Meta:
{
String: String
}
},
NewId: 0
}