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


Updates a collection of questions from a specific Order

Request Information

URI Parameters

NameDescriptionTypeAdditional information
orderid

OrderID

integer

Required

Body Parameters

A Json or XML object containing the new questions

Collection of 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
  },
  {
    "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:
<ArrayOfQuestion xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <Question>
    <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>
  <Question>
    <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>
</ArrayOfQuestion>

Sample Request



Response Information

application/json, text/json

Sample:
[
  {
    "Key":"QuestionID",
    "Value":"1234",
    "Status":"200",
    "Message":"updated successfully",
  }
]
							

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.