POST api/WellHistory
Post well history
Request Information
URI Parameters
None.
Body Parameters
Well history
WellHistoryDto| Name | 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": "5ea63276-d0cd-492b-a4a6-52df591325f4",
"JobTypeDto": {
"Id": "ef420c37-11ea-450b-9030-b85d6a0e6b99",
"Name": "sample string 2",
"Description": "sample string 3",
"CompanyId": "6b04cbf4-2e84-4137-91b5-a508a66e1973"
},
"WfmImagesDto": [
{
"Id": 1,
"X1": 2.1,
"X2": 3.1,
"Y1": 4.1,
"Y2": 5.1,
"CropXUnits": 6.1,
"CropYUnits": 7.1,
"IdOfFileSpec": "78ed6b99-3061-4612-a4e9-a31ad386bcb5",
"FileSpecDto": {
"Id": "cd978d83-d8a3-41a6-b8ce-20a2b04d40cb",
"Name": "sample string 2",
"Extension": "sample string 3",
"ContentType": "sample string 4",
"Length": 5,
"ContainerName": "d0a36c4a-b39a-497f-95c4-3579299dc35b",
"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": "78ed6b99-3061-4612-a4e9-a31ad386bcb5",
"FileSpecDto": {
"Id": "cd978d83-d8a3-41a6-b8ce-20a2b04d40cb",
"Name": "sample string 2",
"Extension": "sample string 3",
"ContentType": "sample string 4",
"Length": 5,
"ContainerName": "d0a36c4a-b39a-497f-95c4-3579299dc35b",
"CreatedUnixTime": 7,
"FileUrl": "sample string 8",
"ImgWidth": 1,
"ImgHeight": 1
},
"CroppedImageUrl": "sample string 9"
}
],
"WellHistoryFiles": [
{
"IdOfHistoryOfWell": 1,
"IdOfFileSpec": "ac87d913-af66-4b5d-8289-5d48ef5e91b0",
"Description": "sample string 3",
"FileSpecDto": {
"Id": "cd978d83-d8a3-41a6-b8ce-20a2b04d40cb",
"Name": "sample string 2",
"Extension": "sample string 3",
"ContentType": "sample string 4",
"Length": 5,
"ContainerName": "d0a36c4a-b39a-497f-95c4-3579299dc35b",
"CreatedUnixTime": 7,
"FileUrl": "sample string 8",
"ImgWidth": 1,
"ImgHeight": 1
}
},
{
"IdOfHistoryOfWell": 1,
"IdOfFileSpec": "ac87d913-af66-4b5d-8289-5d48ef5e91b0",
"Description": "sample string 3",
"FileSpecDto": {
"Id": "cd978d83-d8a3-41a6-b8ce-20a2b04d40cb",
"Name": "sample string 2",
"Extension": "sample string 3",
"ContentType": "sample string 4",
"Length": 5,
"ContainerName": "d0a36c4a-b39a-497f-95c4-3579299dc35b",
"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>6b04cbf4-2e84-4137-91b5-a508a66e1973</CompanyId>
<Description>sample string 3</Description>
<Id>ef420c37-11ea-450b-9030-b85d6a0e6b99</Id>
<Name>sample string 2</Name>
</JobTypeDto>
<JobTypeId>5ea63276-d0cd-492b-a4a6-52df591325f4</JobTypeId>
<StartUnixTime>3</StartUnixTime>
<WellHistoryFiles>
<FileSpecOfHistoryOfWellDto>
<Description>sample string 3</Description>
<FileSpecDto>
<ContainerName>d0a36c4a-b39a-497f-95c4-3579299dc35b</ContainerName>
<ContentType>sample string 4</ContentType>
<CreatedUnixTime>7</CreatedUnixTime>
<Extension>sample string 3</Extension>
<FileUrl>sample string 8</FileUrl>
<Id>cd978d83-d8a3-41a6-b8ce-20a2b04d40cb</Id>
<ImgHeight>1</ImgHeight>
<ImgWidth>1</ImgWidth>
<Length>5</Length>
<Name>sample string 2</Name>
</FileSpecDto>
<IdOfFileSpec>ac87d913-af66-4b5d-8289-5d48ef5e91b0</IdOfFileSpec>
<IdOfHistoryOfWell>1</IdOfHistoryOfWell>
</FileSpecOfHistoryOfWellDto>
<FileSpecOfHistoryOfWellDto>
<Description>sample string 3</Description>
<FileSpecDto>
<ContainerName>d0a36c4a-b39a-497f-95c4-3579299dc35b</ContainerName>
<ContentType>sample string 4</ContentType>
<CreatedUnixTime>7</CreatedUnixTime>
<Extension>sample string 3</Extension>
<FileUrl>sample string 8</FileUrl>
<Id>cd978d83-d8a3-41a6-b8ce-20a2b04d40cb</Id>
<ImgHeight>1</ImgHeight>
<ImgWidth>1</ImgWidth>
<Length>5</Length>
<Name>sample string 2</Name>
</FileSpecDto>
<IdOfFileSpec>ac87d913-af66-4b5d-8289-5d48ef5e91b0</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>d0a36c4a-b39a-497f-95c4-3579299dc35b</ContainerName>
<ContentType>sample string 4</ContentType>
<CreatedUnixTime>7</CreatedUnixTime>
<Extension>sample string 3</Extension>
<FileUrl>sample string 8</FileUrl>
<Id>cd978d83-d8a3-41a6-b8ce-20a2b04d40cb</Id>
<ImgHeight>1</ImgHeight>
<ImgWidth>1</ImgWidth>
<Length>5</Length>
<Name>sample string 2</Name>
</FileSpecDto>
<Id>1</Id>
<IdOfFileSpec>78ed6b99-3061-4612-a4e9-a31ad386bcb5</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>d0a36c4a-b39a-497f-95c4-3579299dc35b</ContainerName>
<ContentType>sample string 4</ContentType>
<CreatedUnixTime>7</CreatedUnixTime>
<Extension>sample string 3</Extension>
<FileUrl>sample string 8</FileUrl>
<Id>cd978d83-d8a3-41a6-b8ce-20a2b04d40cb</Id>
<ImgHeight>1</ImgHeight>
<ImgWidth>1</ImgWidth>
<Length>5</Length>
<Name>sample string 2</Name>
</FileSpecDto>
<Id>1</Id>
<IdOfFileSpec>78ed6b99-3061-4612-a4e9-a31ad386bcb5</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
Created well history
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.