POST postreg/questions

Request Information

URI Parameters

None.

Body Parameters

Collection of PostRegQuestionAnswer
NameDescriptionTypeAdditional information
EntityId

globally unique identifier

None.

Question

WebProductQuestion

None.

Answer

string

None.

TargetField

string

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "EntityId": "80ae07cd-5a86-449f-8ffb-db03efd24689",
    "Question": null,
    "Answer": "sample string 2",
    "TargetField": "sample string 3"
  },
  {
    "EntityId": "80ae07cd-5a86-449f-8ffb-db03efd24689",
    "Question": null,
    "Answer": "sample string 2",
    "TargetField": "sample string 3"
  }
]

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: Type 'FoodExport.Web.Services.Models.WebProductQuestion' cannot be serialized. Consider marking it with the DataContractAttribute attribute, and marking all of its members you want serialized with the DataMemberAttribute attribute. If the type is a collection, consider marking it with the CollectionDataContractAttribute. See the Microsoft .NET Framework documentation for other supported types.

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: Type 'FoodExport.Web.Services.Models.WebProductQuestion' cannot be serialized. Consider marking it with the DataContractAttribute attribute, and marking all of its members you want serialized with the DataMemberAttribute attribute. If the type is a collection, consider marking it with the CollectionDataContractAttribute. See the Microsoft .NET Framework documentation for other supported types.

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'List`1'.

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.