POST api/ProductImages
Request Information
URI Parameters
None.
Body Parameters
productImageInsertName | Description | Type | Additional information |
---|---|---|---|
productimageid | integer |
None. |
|
productid | integer |
None. |
|
fileToUpload | FileToUpload |
None. |
|
order | integer |
None. |
Request Formats
application/json, text/json
Sample:
{ "productimageid": 1, "productid": 2, "fileToUpload": { "FileName": "sample string 1", "FileSize": "sample string 2", "FileType": "sample string 3", "LastModifiedTime": 4, "LastModifiedDate": "2024-09-30T11:30:08.0817204+02:00", "FileAsBase64": "sample string 6", "FileAsByteArray": "QEA=" }, "order": 3 }
application/xml, text/xml
Sample:
<productImageInsert xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/agribkWebAPI.Models"> <fileToUpload> <FileAsBase64>sample string 6</FileAsBase64> <FileAsByteArray>QEA=</FileAsByteArray> <FileName>sample string 1</FileName> <FileSize>sample string 2</FileSize> <FileType>sample string 3</FileType> <LastModifiedDate>2024-09-30T11:30:08.0817204+02:00</LastModifiedDate> <LastModifiedTime>4</LastModifiedTime> </fileToUpload> <order>3</order> <productid>2</productid> <productimageid>1</productimageid> </productImageInsert>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
productimageName | Description | Type | Additional information |
---|---|---|---|
productimageid | integer |
None. |
|
productid | integer |
None. |
|
blob | Binary |
None. |
|
contenttype | string |
None. |
|
order | integer |
None. |
Response Formats
application/json, text/json
Sample:
{ "productimageid": 1, "productid": 2, "blob": null, "contenttype": "sample string 3", "order": 4 }
application/xml, text/xml
Sample:
<productimage xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/agribkWebAPI.Models"> <blob xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Data.Linq" i:nil="true" /> <contenttype>sample string 3</contenttype> <order>4</order> <productid>2</productid> <productimageid>1</productimageid> </productimage>