POST api/{stagePlural}/sections/{idOfSection}/file-specs/{base64}
Upload file spec (base64 string)
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
stagePlural |
Stage in plural mode: wells, well-regions... |
string |
Required |
idOfSection |
Id of section |
globally unique identifier |
Required |
base64 |
Whether a file data is base64 string |
boolean |
Required |
Body Parameters
Content data
ContentDataName | Description | Type | Additional information |
---|---|---|---|
Name |
File name |
string |
None. |
Description |
File description |
string |
None. |
Base64String |
File content |
string |
None. |
ContentType |
Content type |
string |
None. |
Request Formats
application/json, text/json
Sample:
{ "Name": "sample string 1", "Description": "sample string 2", "Base64String": "sample string 3", "ContentType": "sample string 4" }
application/xml, text/xml
Sample:
<ContentData xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Reyvart.WellFileManager.Web.Models"> <Base64String>sample string 3</Base64String> <ContentType>sample string 4</ContentType> <Description>sample string 2</Description> <Name>sample string 1</Name> </ContentData>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
Created file specification
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.