POST v1/Files
Create a new file for ShopOwner (and optionally Shop)
Request Information
Requires Authorization!
URI Parameters
None.
Body Parameters
File to be created
AddFileDtoName | Description | Type | Additional information |
---|---|---|---|
Filename | string |
Required |
|
FileType | FileTypeEnum |
Required |
|
Base64Data | string |
Required |
|
ShopOwnerId | integer |
Required |
|
ShopId | 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
Response Codes
- Created (201)
- BadRequest (400)
Resource Description
Created file data
IHttpActionResult
None.
Response Formats
application/json, text/json
Sample:
Sample not available.