PUT api/WellHistory?id={id}
Put well history
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
id |
Well history id |
integer |
Required |
Body Parameters
Well history
WellHistoryDtoName | Description | Type | Additional information |
---|---|---|---|
Id |
Well history id |
integer |
None. |
HistoryText |
Well history text |
string |
Required |
StartUnixTime |
Well history start UTC unix time, seconds |
unsigned integer |
Required |
EndUnixTime |
End UTC unix time, seconds |
unsigned integer |
Required |
WellId |
Well id |
integer |
Required |
JobTypeId |
Job type id: user may choose job type while create well history |
globally unique identifier |
None. |
JobTypeDto |
Job type: user may choose job type while create well history |
JobTypeDto |
None. |
WfmImagesDto |
List of well file manager images |
Collection of WfmImageDto |
None. |
WellHistoryFiles |
List of well history files |
Collection of FileSpecOfHistoryOfWellDto |
None. |
Request Formats
application/json, text/json
Sample:
{ "Id": 1, "HistoryText": "sample string 2", "StartUnixTime": 3, "EndUnixTime": 4, "WellId": 5, "JobTypeId": "b53c7bd2-88db-4dba-92c2-5ed115dcc50d", "JobTypeDto": { "Id": "a5098357-a0ea-40f5-9520-4eb2e6b7ac84", "Name": "sample string 2", "Description": "sample string 3", "CompanyId": "f583b932-eedd-41ae-8eae-b00164957f8e" }, "WfmImagesDto": [ { "Id": 1, "X1": 2.1, "X2": 3.1, "Y1": 4.1, "Y2": 5.1, "CropXUnits": 6.1, "CropYUnits": 7.1, "IdOfFileSpec": "45cd9196-311d-45d1-93cf-518f32dd8431", "FileSpecDto": { "Id": "de45c347-8bbf-4884-83ac-c16e73ab4f6c", "Name": "sample string 2", "Extension": "sample string 3", "ContentType": "sample string 4", "Length": 5, "ContainerName": "bba8d1ff-8700-4d55-8a32-97c9d56ccdbd", "CreatedUnixTime": 7, "FileUrl": "sample string 8", "ImgWidth": 1, "ImgHeight": 1 }, "CroppedImageUrl": "sample string 9" }, { "Id": 1, "X1": 2.1, "X2": 3.1, "Y1": 4.1, "Y2": 5.1, "CropXUnits": 6.1, "CropYUnits": 7.1, "IdOfFileSpec": "45cd9196-311d-45d1-93cf-518f32dd8431", "FileSpecDto": { "Id": "de45c347-8bbf-4884-83ac-c16e73ab4f6c", "Name": "sample string 2", "Extension": "sample string 3", "ContentType": "sample string 4", "Length": 5, "ContainerName": "bba8d1ff-8700-4d55-8a32-97c9d56ccdbd", "CreatedUnixTime": 7, "FileUrl": "sample string 8", "ImgWidth": 1, "ImgHeight": 1 }, "CroppedImageUrl": "sample string 9" } ], "WellHistoryFiles": [ { "IdOfHistoryOfWell": 1, "IdOfFileSpec": "c7b04921-df89-4940-98b0-7527f8fca9d7", "Description": "sample string 3", "FileSpecDto": { "Id": "de45c347-8bbf-4884-83ac-c16e73ab4f6c", "Name": "sample string 2", "Extension": "sample string 3", "ContentType": "sample string 4", "Length": 5, "ContainerName": "bba8d1ff-8700-4d55-8a32-97c9d56ccdbd", "CreatedUnixTime": 7, "FileUrl": "sample string 8", "ImgWidth": 1, "ImgHeight": 1 } }, { "IdOfHistoryOfWell": 1, "IdOfFileSpec": "c7b04921-df89-4940-98b0-7527f8fca9d7", "Description": "sample string 3", "FileSpecDto": { "Id": "de45c347-8bbf-4884-83ac-c16e73ab4f6c", "Name": "sample string 2", "Extension": "sample string 3", "ContentType": "sample string 4", "Length": 5, "ContainerName": "bba8d1ff-8700-4d55-8a32-97c9d56ccdbd", "CreatedUnixTime": 7, "FileUrl": "sample string 8", "ImgWidth": 1, "ImgHeight": 1 } } ] }
application/xml, text/xml
Sample:
<WellHistoryDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Reyvart.WellFileManager.Web.Models"> <EndUnixTime>4</EndUnixTime> <HistoryText>sample string 2</HistoryText> <Id>1</Id> <JobTypeDto> <CompanyId>f583b932-eedd-41ae-8eae-b00164957f8e</CompanyId> <Description>sample string 3</Description> <Id>a5098357-a0ea-40f5-9520-4eb2e6b7ac84</Id> <Name>sample string 2</Name> </JobTypeDto> <JobTypeId>b53c7bd2-88db-4dba-92c2-5ed115dcc50d</JobTypeId> <StartUnixTime>3</StartUnixTime> <WellHistoryFiles> <FileSpecOfHistoryOfWellDto> <Description>sample string 3</Description> <FileSpecDto> <ContainerName>bba8d1ff-8700-4d55-8a32-97c9d56ccdbd</ContainerName> <ContentType>sample string 4</ContentType> <CreatedUnixTime>7</CreatedUnixTime> <Extension>sample string 3</Extension> <FileUrl>sample string 8</FileUrl> <Id>de45c347-8bbf-4884-83ac-c16e73ab4f6c</Id> <ImgHeight>1</ImgHeight> <ImgWidth>1</ImgWidth> <Length>5</Length> <Name>sample string 2</Name> </FileSpecDto> <IdOfFileSpec>c7b04921-df89-4940-98b0-7527f8fca9d7</IdOfFileSpec> <IdOfHistoryOfWell>1</IdOfHistoryOfWell> </FileSpecOfHistoryOfWellDto> <FileSpecOfHistoryOfWellDto> <Description>sample string 3</Description> <FileSpecDto> <ContainerName>bba8d1ff-8700-4d55-8a32-97c9d56ccdbd</ContainerName> <ContentType>sample string 4</ContentType> <CreatedUnixTime>7</CreatedUnixTime> <Extension>sample string 3</Extension> <FileUrl>sample string 8</FileUrl> <Id>de45c347-8bbf-4884-83ac-c16e73ab4f6c</Id> <ImgHeight>1</ImgHeight> <ImgWidth>1</ImgWidth> <Length>5</Length> <Name>sample string 2</Name> </FileSpecDto> <IdOfFileSpec>c7b04921-df89-4940-98b0-7527f8fca9d7</IdOfFileSpec> <IdOfHistoryOfWell>1</IdOfHistoryOfWell> </FileSpecOfHistoryOfWellDto> </WellHistoryFiles> <WellId>5</WellId> <WfmImagesDto> <WfmImageDto> <CropXUnits>6.1</CropXUnits> <CropYUnits>7.1</CropYUnits> <CroppedImageUrl>sample string 9</CroppedImageUrl> <FileSpecDto> <ContainerName>bba8d1ff-8700-4d55-8a32-97c9d56ccdbd</ContainerName> <ContentType>sample string 4</ContentType> <CreatedUnixTime>7</CreatedUnixTime> <Extension>sample string 3</Extension> <FileUrl>sample string 8</FileUrl> <Id>de45c347-8bbf-4884-83ac-c16e73ab4f6c</Id> <ImgHeight>1</ImgHeight> <ImgWidth>1</ImgWidth> <Length>5</Length> <Name>sample string 2</Name> </FileSpecDto> <Id>1</Id> <IdOfFileSpec>45cd9196-311d-45d1-93cf-518f32dd8431</IdOfFileSpec> <X1>2.1</X1> <X2>3.1</X2> <Y1>4.1</Y1> <Y2>5.1</Y2> </WfmImageDto> <WfmImageDto> <CropXUnits>6.1</CropXUnits> <CropYUnits>7.1</CropYUnits> <CroppedImageUrl>sample string 9</CroppedImageUrl> <FileSpecDto> <ContainerName>bba8d1ff-8700-4d55-8a32-97c9d56ccdbd</ContainerName> <ContentType>sample string 4</ContentType> <CreatedUnixTime>7</CreatedUnixTime> <Extension>sample string 3</Extension> <FileUrl>sample string 8</FileUrl> <Id>de45c347-8bbf-4884-83ac-c16e73ab4f6c</Id> <ImgHeight>1</ImgHeight> <ImgWidth>1</ImgWidth> <Length>5</Length> <Name>sample string 2</Name> </FileSpecDto> <Id>1</Id> <IdOfFileSpec>45cd9196-311d-45d1-93cf-518f32dd8431</IdOfFileSpec> <X1>2.1</X1> <X2>3.1</X2> <Y1>4.1</Y1> <Y2>5.1</Y2> </WfmImageDto> </WfmImagesDto> </WellHistoryDto>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
Changed well history
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.