POST API/RevenueVariableCost/Save
Request Information
URI Parameters
None.
Body Parameters
Variablecosts| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| Variablecostname | string |
None. |
|
| selected | boolean |
None. |
|
| Costs | Collection of SaveVariablecosts |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": 1,
"Variablecostname": "sample string 2",
"selected": true,
"Costs": [
{
"Variablecostname": "sample string 1",
"Variablecostid": 2,
"VanName": "sample string 3",
"VanId": 4,
"EntryDate": "sample string 5",
"Amount": 6.0,
"Remarks": "sample string 7",
"UserId": 8
},
{
"Variablecostname": "sample string 1",
"Variablecostid": 2,
"VanName": "sample string 3",
"VanId": 4,
"EntryDate": "sample string 5",
"Amount": 6.0,
"Remarks": "sample string 7",
"UserId": 8
}
]
}
application/xml, text/xml
Sample:
<Variablecosts xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MobidentAPI.Models">
<Costs>
<SaveVariablecosts>
<Amount>6</Amount>
<EntryDate>sample string 5</EntryDate>
<Remarks>sample string 7</Remarks>
<UserId>8</UserId>
<VanId>4</VanId>
<VanName>sample string 3</VanName>
<Variablecostid>2</Variablecostid>
<Variablecostname>sample string 1</Variablecostname>
</SaveVariablecosts>
<SaveVariablecosts>
<Amount>6</Amount>
<EntryDate>sample string 5</EntryDate>
<Remarks>sample string 7</Remarks>
<UserId>8</UserId>
<VanId>4</VanId>
<VanName>sample string 3</VanName>
<Variablecostid>2</Variablecostid>
<Variablecostname>sample string 1</Variablecostname>
</SaveVariablecosts>
</Costs>
<Id>1</Id>
<Variablecostname>sample string 2</Variablecostname>
<selected>true</selected>
</Variablecosts>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.