POST packages
Request Information
URI Parameters
None.
Body Parameters
packagecreatedto| Name | Description | Type | Additional information |
|---|---|---|---|
| name | string |
Required |
|
| description | string |
Required |
|
| quota | decimal number |
Required |
|
| dailyquota | decimal number |
Required |
|
| semimonthly1 | integer |
Required Range: inclusive between 1 and 31 |
|
| semimonthly2 | integer |
Required Range: inclusive between 1 and 31 |
|
| penalty | decimal number |
Required |
|
| penaltytoshare | decimal number |
Required |
|
| penaltysharing | boolean |
None. |
|
| packageservices | Collection of packageservicedto |
None. |
Request Formats
application/json, text/json
Sample:
{
"name": "sample string 1",
"description": "sample string 2",
"quota": 3.0,
"dailyquota": 4.0,
"semimonthly1": 5,
"semimonthly2": 6,
"penalty": 7.0,
"penaltytoshare": 8.0,
"penaltysharing": true,
"packageservices": [
{
"serviceid": 1,
"fee": 2.0,
"hour": 3.0,
"feeplus": 4.0
},
{
"serviceid": 1,
"fee": 2.0,
"hour": 3.0,
"feeplus": 4.0
}
]
}
application/xml, text/xml
Sample:
<packagecreatedto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/palmeo.api.Models.DTO">
<dailyquota>4</dailyquota>
<description>sample string 2</description>
<name>sample string 1</name>
<packageservices>
<packageservicedto>
<fee>2</fee>
<feeplus>4</feeplus>
<hour>3</hour>
<serviceid>1</serviceid>
</packageservicedto>
<packageservicedto>
<fee>2</fee>
<feeplus>4</feeplus>
<hour>3</hour>
<serviceid>1</serviceid>
</packageservicedto>
</packageservices>
<penalty>7</penalty>
<penaltysharing>true</penaltysharing>
<penaltytoshare>8</penaltytoshare>
<quota>3</quota>
<semimonthly1>5</semimonthly1>
<semimonthly2>6</semimonthly2>
</packagecreatedto>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.