POST v1/Files
Create a new file for ShopOwner (and optionally Shop)
Request Information
URI Parameters
None.
Body Parameters
File to be created
AddFileDto| Name | Description | Type | Additional information |
|---|---|---|---|
| Filename |
Name of file |
string |
Required |
| FileType |
Type of file |
FileTypeEnum |
Required |
| Base64Data |
Base64 encoded file data |
string |
Required |
| ShopOwnerId |
ID of ShopOwner. |
integer |
Required |
| ShopId |
ID of Shop. Optional, if set, must be descendant of ShopOwner |
integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"Filename": "sample string 1",
"FileType": 0,
"Base64Data": "sample string 2",
"ShopOwnerId": 3,
"ShopId": 1
}
application/xml, text/xml
Sample:
<AddFileDto xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <Filename>sample string 1</Filename> <FileType>Undefined</FileType> <Base64Data>sample string 2</Base64Data> <ShopOwnerId>3</ShopOwnerId> <ShopId>1</ShopId> </AddFileDto>
Response Information
Resource Description
Created file data
IHttpActionResultNone.
Response Formats
application/json, text/json
Sample:
Sample not available.