POST api/wfm-parameters
Create new parameter
Request Information
URI Parameters
None.
Body Parameters
Parameter data transfer object
WfmParameterDtoName | Description | Type | Additional information |
---|---|---|---|
Id |
Id |
string |
Required |
Name |
Name |
string |
Required |
Uom |
Unit of measurement |
string |
None. |
DefaultColor |
Default color (curve, legend on graphs) |
string |
None. |
IsCumulative |
Is parameter cumulative |
boolean |
Required |
IsSystem |
Is parameter system |
boolean |
Required |
WfmParamSquadId |
Parameter squad id |
string |
Required |
Request Formats
application/json, text/json
Sample:
{ "Id": "sample string 1", "Name": "sample string 2", "Uom": "sample string 3", "DefaultColor": "sample string 4", "IsCumulative": true, "IsSystem": true, "WfmParamSquadId": "sample string 7" }
application/xml, text/xml
Sample:
<WfmParameterDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Reyvart.WellFileManager.Web.Models"> <DefaultColor>sample string 4</DefaultColor> <Id>sample string 1</Id> <IsCumulative>true</IsCumulative> <IsSystem>true</IsSystem> <Name>sample string 2</Name> <Uom>sample string 3</Uom> <WfmParamSquadId>sample string 7</WfmParamSquadId> </WfmParameterDto>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
Created parameter data transfer object. Or error if id is already taken
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.