PUT api/wells/{idOfWell}/logs/{id}
Put log: change name, description. FileSpec and Well can't be changed
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| idOfWell |
Id of well (parent) |
integer |
Required |
| id |
Id |
globally unique identifier |
Required |
Body Parameters
Log of well
LogOfWellDto| Name | Description | Type | Additional information |
|---|---|---|---|
| Id |
Id of log: autogenerate on the controller |
globally unique identifier |
None. |
| IdOfWell |
Id of well (parent) |
integer |
Required |
| IdOfFileSpec |
Id of file of text file |
globally unique identifier |
Required |
| Name |
Log name: by default - file name |
string |
Required Max length: 255 |
| Description |
Log decription: by default - empty |
string |
Required |
| ListOfSvgElemDto |
List of svg elems |
Collection of SvgElemDto |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": "99c7a7b6-db75-4f3e-bcaf-88ef4db9173f",
"IdOfWell": 2,
"IdOfFileSpec": "c4a3883b-b123-4ab6-b5a3-5656ff1e6d17",
"Name": "sample string 4",
"Description": "sample string 5",
"ListOfSvgElemDto": [
{
"Id": "9e909a26-aa38-46df-a446-b717f17354cc",
"Color": "sample string 2",
"Tpe": "sample string 3",
"Opts": "sample string 4"
},
{
"Id": "9e909a26-aa38-46df-a446-b717f17354cc",
"Color": "sample string 2",
"Tpe": "sample string 3",
"Opts": "sample string 4"
}
]
}
application/xml, text/xml
Sample:
<LogOfWellDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Reyvart.WellFileManager.Web.Models">
<Description>sample string 5</Description>
<Id>99c7a7b6-db75-4f3e-bcaf-88ef4db9173f</Id>
<IdOfFileSpec>c4a3883b-b123-4ab6-b5a3-5656ff1e6d17</IdOfFileSpec>
<IdOfWell>2</IdOfWell>
<ListOfSvgElemDto>
<SvgElemDto>
<Color>sample string 2</Color>
<Id>9e909a26-aa38-46df-a446-b717f17354cc</Id>
<Opts>sample string 4</Opts>
<Tpe>sample string 3</Tpe>
</SvgElemDto>
<SvgElemDto>
<Color>sample string 2</Color>
<Id>9e909a26-aa38-46df-a446-b717f17354cc</Id>
<Opts>sample string 4</Opts>
<Tpe>sample string 3</Tpe>
</SvgElemDto>
</ListOfSvgElemDto>
<Name>sample string 4</Name>
</LogOfWellDto>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
Changel log of well DTO
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.