PUT api/wells/{idOfWell}/volumes/{idOfFileSpec}

Put volume of well

Request Information

URI Parameters

NameDescriptionTypeAdditional information
idOfWell

Id of well

integer

Required

idOfFileSpec

globally unique identifier

Required

Body Parameters

VolumeOfWellDto
NameDescriptionTypeAdditional 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": "d4de8fde-988e-4756-8005-5f2c39140c79",
  "Name": "sample string 3",
  "Description": "sample string 4",
  "FileSpecDto": {
    "Id": "953d2fb7-0618-4971-966e-77f4e1cea596",
    "Name": "sample string 2",
    "Extension": "sample string 3",
    "ContentType": "sample string 4",
    "Length": 5,
    "ContainerName": "f7ba8f06-364e-479c-82f8-b2a26d22fd63",
    "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>f7ba8f06-364e-479c-82f8-b2a26d22fd63</ContainerName>
    <ContentType>sample string 4</ContentType>
    <CreatedUnixTime>7</CreatedUnixTime>
    <Extension>sample string 3</Extension>
    <FileUrl>sample string 8</FileUrl>
    <Id>953d2fb7-0618-4971-966e-77f4e1cea596</Id>
    <ImgHeight>1</ImgHeight>
    <ImgWidth>1</ImgWidth>
    <Length>5</Length>
    <Name>sample string 2</Name>
  </FileSpecDto>
  <IdOfFileSpec>d4de8fde-988e-4756-8005-5f2c39140c79</IdOfFileSpec>
  <IdOfWell>1</IdOfWell>
  <Name>sample string 3</Name>
</VolumeOfWellDto>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'VolumeOfWellDto'.

Response Information

Resource Description

Changed volume of well

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.