PUT api/SuntechDemoDetails/UpdateWithAttachments
Request Information
URI Parameters
None.
Body Parameters
SuntechDemoDetailsViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Data | SuntechDemoDetails |
None. |
|
| Images | Collection of ProductImageViewModel |
None. |
|
| ImagesProduct | Collection of ProductImageViewModel |
None. |
Request Formats
application/json, text/json
Sample:
{
"Data": {
"MID": 1,
"PRODUCT_NAME": "sample string 2",
"VIDEO_URL": "sample string 3",
"IS_ATTACHMENT_PRESENT": true,
"PRODUCT_DESCRIPTION": "sample string 5",
"CREDENTIALS": "sample string 6",
"SCREENSHOT_DOCUMENT": "sample string 7",
"SCREENSHOT_PRODUCT": "sample string 8",
"SHORT_DESCRIPTION": "sample string 9",
"PRODUCT_CATEGORY": "sample string 10",
"DEMO_USERNAME": "sample string 11",
"DEMO_PASSWORD": "sample string 12"
},
"Images": [
{
"Image": {
"File": null
}
},
{
"Image": {
"File": null
}
}
],
"ImagesProduct": [
{
"Image": {
"File": null
}
},
{
"Image": {
"File": null
}
}
]
}
text/html
Sample:
{"Data":{"MID":1,"PRODUCT_NAME":"sample string 2","VIDEO_URL":"sample string 3","IS_ATTACHMENT_PRESENT":true,"PRODUCT_DESCRIPTION":"sample string 5","CREDENTIALS":"sample string 6","SCREENSHOT_DOCUMENT":"sample string 7","SCREENSHOT_PRODUCT":"sample string 8","SHORT_DESCRIPTION":"sample string 9","PRODUCT_CATEGORY":"sample string 10","DEMO_USERNAME":"sample string 11","DEMO_PASSWORD":"sample string 12"},"Images":[{"Image":{"File":null}},{"Image":{"File":null}}],"ImagesProduct":[{"Image":{"File":null}},{"Image":{"File":null}}]}
application/xml, text/xml
Sample:
<SuntechDemoDetailsViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SuntechSupportServices.Models.SuntechDemo">
<Data>
<CREDENTIALS>sample string 6</CREDENTIALS>
<DEMO_PASSWORD>sample string 12</DEMO_PASSWORD>
<DEMO_USERNAME>sample string 11</DEMO_USERNAME>
<IS_ATTACHMENT_PRESENT>true</IS_ATTACHMENT_PRESENT>
<MID>1</MID>
<PRODUCT_CATEGORY>sample string 10</PRODUCT_CATEGORY>
<PRODUCT_DESCRIPTION>sample string 5</PRODUCT_DESCRIPTION>
<PRODUCT_NAME>sample string 2</PRODUCT_NAME>
<SCREENSHOT_DOCUMENT>sample string 7</SCREENSHOT_DOCUMENT>
<SCREENSHOT_PRODUCT>sample string 8</SCREENSHOT_PRODUCT>
<SHORT_DESCRIPTION>sample string 9</SHORT_DESCRIPTION>
<VIDEO_URL>sample string 3</VIDEO_URL>
</Data>
<Images xmlns:d2p1="http://schemas.datacontract.org/2004/07/SuntechSupportServices.Models.CustomerSupport">
<d2p1:ProductImageViewModel>
<d2p1:Image>
<d2p1:File xmlns:d5p1="http://schemas.datacontract.org/2004/07/System.Web" i:nil="true" />
</d2p1:Image>
</d2p1:ProductImageViewModel>
<d2p1:ProductImageViewModel>
<d2p1:Image>
<d2p1:File xmlns:d5p1="http://schemas.datacontract.org/2004/07/System.Web" i:nil="true" />
</d2p1:Image>
</d2p1:ProductImageViewModel>
</Images>
<ImagesProduct xmlns:d2p1="http://schemas.datacontract.org/2004/07/SuntechSupportServices.Models.CustomerSupport">
<d2p1:ProductImageViewModel>
<d2p1:Image>
<d2p1:File xmlns:d5p1="http://schemas.datacontract.org/2004/07/System.Web" i:nil="true" />
</d2p1:Image>
</d2p1:ProductImageViewModel>
<d2p1:ProductImageViewModel>
<d2p1:Image>
<d2p1:File xmlns:d5p1="http://schemas.datacontract.org/2004/07/System.Web" i:nil="true" />
</d2p1:Image>
</d2p1:ProductImageViewModel>
</ImagesProduct>
</SuntechDemoDetailsViewModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
multipart/form-data
Sample:
--MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Data.MID" 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Data.PRODUCT_NAME" sample string 2 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Data.VIDEO_URL" sample string 3 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Data.IS_ATTACHMENT_PRESENT" True --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Data.PRODUCT_DESCRIPTION" sample string 5 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Data.CREDENTIALS" sample string 6 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Data.SCREENSHOT_DOCUMENT" sample string 7 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Data.SCREENSHOT_PRODUCT" sample string 8 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Data.SHORT_DESCRIPTION" sample string 9 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Data.PRODUCT_CATEGORY" sample string 10 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Data.DEMO_USERNAME" sample string 11 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Data.DEMO_PASSWORD" sample string 12 --MultipartDataMediaFormatterBoundary1q2w3e--
Response Information
Resource Description
SuntechDemoDetailsWithAttachmentAddResult| Name | Description | Type | Additional information |
|---|---|---|---|
| status | string |
None. |
|
| message | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"status": "sample string 1",
"message": "sample string 2"
}
text/html
Sample:
{"status":"sample string 1","message":"sample string 2"}
application/xml, text/xml
Sample:
<SuntechDemoDetailsWithAttachmentAddResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SuntechSupportServices.Models.SuntechDemo"> <message>sample string 2</message> <status>sample string 1</status> </SuntechDemoDetailsWithAttachmentAddResult>
multipart/form-data
Sample:
--MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="status" sample string 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="message" sample string 2 --MultipartDataMediaFormatterBoundary1q2w3e--