POST api/admin/v1/ContractCostTypes
Create a new Contract cost type
Request Information
URI Parameters
None
Body Parameters
New Contract cost type informations
ContractCostTypeEditDtoName | Description | Type | Additional information |
---|---|---|---|
DefaultCost |
Default value of the cost |
decimal number |
None |
IsHourlyCost |
True if is an hourly cost |
boolean |
None |
IsDailyCost |
True if is a daily cost |
boolean |
None |
IsMonthlyCost |
True if is a monthly cost |
boolean |
None |
Code |
The short code of the element |
string |
None |
Description |
The description of the element |
string |
None |
IsActive |
True if the element is active, false otherwise |
boolean |
None |
Id |
Unique ID |
integer |
None |
Request Formats
application/json, text/json
Sample:
{ "DefaultCost": 1.0, "IsHourlyCost": true, "IsDailyCost": true, "IsMonthlyCost": true, "Code": "sample string 5", "Description": "sample string 6", "IsActive": true, "Id": 8 }
application/xml, text/xml
Sample:
<ContractCostTypeEditDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Oryx.Web.Api.Models"> <Id>8</Id> <Code>sample string 5</Code> <Description>sample string 6</Description> <IsActive>true</IsActive> <DefaultCost>1</DefaultCost> <IsDailyCost>true</IsDailyCost> <IsHourlyCost>true</IsHourlyCost> <IsMonthlyCost>true</IsMonthlyCost> </ContractCostTypeEditDto>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
200
HttpResponseMessageName | Description | Type | Additional information |
---|---|---|---|
Version | Version |
None |
|
Content | HttpContent |
None |
|
StatusCode | HttpStatusCode |
None |
|
ReasonPhrase | string |
None |
|
Headers | Collection of Object |
None |
|
RequestMessage | HttpRequestMessage |
None |
|
IsSuccessStatusCode | boolean |
None |