PUT 3dCartWebAPI/v1/Orders/{orderid}/Questions/{questionanswerindexid}


Updates a specific question from a specific Product

Request Information

URI Parameters

NameDescriptionTypeAdditional information
orderid

OrderID

integer

Required

questionanswerindexid

QuestionID

integer

Required

Body Parameters

A Json or XML object containing the new question

Question
NameDescriptionTypeAdditional information
QuestionAnswerIndexID

database reference = order_questions.id

integer

None.

OrderID

database reference = order_questions.orderid

integer

None.

QuestionID

database reference = order_questions.questionid

integer

None.

QuestionTitle

database reference = checkout_questions.Question

string

String length: inclusive between 0 and 65535

QuestionAnswer

database reference = order_questions.answer

string

String length: inclusive between 0 and 65535

QuestionType

database reference = checkout_questions.qtype

string

String length: inclusive between 0 and 10

QuestionCheckoutStep

database reference = checkout_questions.checkoutstep

integer

None.

QuestionSorting

database reference = checkout_questions.sorting

integer

None.

QuestionDiscountGroup

database reference = checkout_questions.discountgroup

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "QuestionAnswerIndexID": 1,
  "OrderID": 1,
  "QuestionID": 1,
  "QuestionTitle": "sample string 1",
  "QuestionAnswer": "sample string 2",
  "QuestionType": "sample string 3",
  "QuestionCheckoutStep": 1,
  "QuestionSorting": 1,
  "QuestionDiscountGroup": 1
}

application/xml, text/xml

Sample:
<Question xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <QuestionAnswerIndexID>1</QuestionAnswerIndexID>
  <OrderID>1</OrderID>
  <QuestionID>1</QuestionID>
  <QuestionTitle>sample string 1</QuestionTitle>
  <QuestionAnswer>sample string 2</QuestionAnswer>
  <QuestionType>sample string 3</QuestionType>
  <QuestionCheckoutStep>1</QuestionCheckoutStep>
  <QuestionSorting>1</QuestionSorting>
  <QuestionDiscountGroup>1</QuestionDiscountGroup>
</Question>

Sample Request



Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.