PUT api/wells/{idOfWell}/sketches
Save sketch (create if not exists)
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
idOfWell |
Id of well |
integer |
Required |
Body Parameters
Sketch of well DTO model
SketchOfWellDtoName | Description | Type | Additional information |
---|---|---|---|
Name |
Name of sketch: by default - name of file |
string |
None. |
IdOfFileSpec |
Id of file |
globally unique identifier |
None. |
Description |
Description of sketch |
string |
None. |
IdOfWell |
Id of well |
integer |
None. |
FileSpecDto |
File spec of this sketch |
FileSpecDto |
None. |
Request Formats
application/json, text/json
Sample:
{ "Name": "sample string 1", "IdOfFileSpec": "1b58846f-136e-4ec3-bd05-24aa19e428c2", "Description": "sample string 3", "IdOfWell": 4, "FileSpecDto": { "Id": "31901c69-c7b6-48d1-9ff1-810588562746", "Name": "sample string 2", "Extension": "sample string 3", "ContentType": "sample string 4", "Length": 5, "ContainerName": "b875dde9-5e45-4115-9014-820fe1054632", "CreatedUnixTime": 7, "FileUrl": "sample string 8", "ImgWidth": 1, "ImgHeight": 1 } }
application/xml, text/xml
Sample:
<SketchOfWellDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Reyvart.WellFileManager.Web.Models"> <Description>sample string 3</Description> <FileSpecDto> <ContainerName>b875dde9-5e45-4115-9014-820fe1054632</ContainerName> <ContentType>sample string 4</ContentType> <CreatedUnixTime>7</CreatedUnixTime> <Extension>sample string 3</Extension> <FileUrl>sample string 8</FileUrl> <Id>31901c69-c7b6-48d1-9ff1-810588562746</Id> <ImgHeight>1</ImgHeight> <ImgWidth>1</ImgWidth> <Length>5</Length> <Name>sample string 2</Name> </FileSpecDto> <IdOfFileSpec>1b58846f-136e-4ec3-bd05-24aa19e428c2</IdOfFileSpec> <IdOfWell>4</IdOfWell> <Name>sample string 1</Name> </SketchOfWellDto>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
Changed sketch of well DTO model
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.