POST api/well-histories/{idOfHistoryOfWell}/history-files

Post well history file

Request Information

URI Parameters

NameDescriptionTypeAdditional information
idOfHistoryOfWell

Id of parent well history

integer

Required

Body Parameters

Well history file

FileSpecOfHistoryOfWellDto
NameDescriptionTypeAdditional information
IdOfHistoryOfWell

Well history id

integer

Required

IdOfFileSpec

Id of file

globally unique identifier

Required

Description

Well history file description

string

Required

FileSpecDto

File spec

FileSpecDto

None.

Request Formats

application/json, text/json

Sample:
{
  "IdOfHistoryOfWell": 1,
  "IdOfFileSpec": "2cc0e4df-2930-434a-a92a-5bb170724db0",
  "Description": "sample string 3",
  "FileSpecDto": {
    "Id": "70228acc-66cd-46ce-8a85-500ed460be0a",
    "Name": "sample string 2",
    "Extension": "sample string 3",
    "ContentType": "sample string 4",
    "Length": 5,
    "ContainerName": "392bab63-9b10-473d-9c79-dc469144a531",
    "CreatedUnixTime": 7,
    "FileUrl": "sample string 8",
    "ImgWidth": 1,
    "ImgHeight": 1
  }
}

application/xml, text/xml

Sample:
<FileSpecOfHistoryOfWellDto 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>392bab63-9b10-473d-9c79-dc469144a531</ContainerName>
    <ContentType>sample string 4</ContentType>
    <CreatedUnixTime>7</CreatedUnixTime>
    <Extension>sample string 3</Extension>
    <FileUrl>sample string 8</FileUrl>
    <Id>70228acc-66cd-46ce-8a85-500ed460be0a</Id>
    <ImgHeight>1</ImgHeight>
    <ImgWidth>1</ImgWidth>
    <Length>5</Length>
    <Name>sample string 2</Name>
  </FileSpecDto>
  <IdOfFileSpec>2cc0e4df-2930-434a-a92a-5bb170724db0</IdOfFileSpec>
  <IdOfHistoryOfWell>1</IdOfHistoryOfWell>
</FileSpecOfHistoryOfWellDto>

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 'FileSpecOfHistoryOfWellDto'.

Response Information

Resource Description

Created well history file

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.