POST api/wells/{idOfWell}/volumes
Post volume of well
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
idOfWell |
Well |
integer |
Required |
Body Parameters
VolumeOfWellDtoName | Description | Type | Additional information |
---|---|---|---|
IdOfWell |
Id of well |
integer |
None. |
IdOfFileSpec |
Id of file specification |
globally unique identifier |
None. |
Name |
Volume name |
string |
None. |
Description |
Volume description |
string |
None. |
FileSpecDto |
File specification for this volume |
FileSpecDto |
None. |
Request Formats
application/json, text/json
Sample:
{ "IdOfWell": 1, "IdOfFileSpec": "fcead7cd-8dce-42d0-9bf4-b440def898ff", "Name": "sample string 3", "Description": "sample string 4", "FileSpecDto": { "Id": "2981b67b-b8b7-44d2-8d56-f640267e140f", "Name": "sample string 2", "Extension": "sample string 3", "ContentType": "sample string 4", "Length": 5, "ContainerName": "ae18e465-5f0a-40f5-87f9-6ba590235f9f", "CreatedUnixTime": 7, "FileUrl": "sample string 8", "ImgWidth": 1, "ImgHeight": 1 } }
application/xml, text/xml
Sample:
<VolumeOfWellDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Reyvart.WellFileManager.Web.Models"> <Description>sample string 4</Description> <FileSpecDto> <ContainerName>ae18e465-5f0a-40f5-87f9-6ba590235f9f</ContainerName> <ContentType>sample string 4</ContentType> <CreatedUnixTime>7</CreatedUnixTime> <Extension>sample string 3</Extension> <FileUrl>sample string 8</FileUrl> <Id>2981b67b-b8b7-44d2-8d56-f640267e140f</Id> <ImgHeight>1</ImgHeight> <ImgWidth>1</ImgWidth> <Length>5</Length> <Name>sample string 2</Name> </FileSpecDto> <IdOfFileSpec>fcead7cd-8dce-42d0-9bf4-b440def898ff</IdOfFileSpec> <IdOfWell>1</IdOfWell> <Name>sample string 3</Name> </VolumeOfWellDto>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
Created volume of well
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.