POST PlanType/PostPlanType
Creates a new PlanType record
Request Information
URI Parameters
Body Parameters
PlanType object used to create a new record in the database.
ClsPlanTypeAdd| Name | Description | Type | Additional Information |
|---|---|---|---|
| PlanType |
The Name of the PlanType record |
string |
Required Max length: 80 |
| Inactive |
Indicates the PlanType is inactive |
boolean |
Must be 0, 1, True, or False |
Request Formats
application/json, text/json
Sample:
{
"PlanType": "sample string 4",
"Inactive": true
}
application/xml, text/xml
Sample:
<PlanTypeAdd xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SSI.plbl"> <Inactive>true</Inactive> <PlanType>sample string 4</PlanType> </PlanTypeAdd>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
Creates a new PlanType record
AgvPlanType| Name | Description | Type | Additional Information |
|---|---|---|---|
| Status |
Status of the API call. |
string | |
| Message |
Message of the API call. |
string | |
| Count |
Count of how many PlanType JSON dictionaries. |
string | |
| PlanTypes |
JSON dictionary of PlanTypes. |
Collection of ClsPlanType |
Response Formats
application/json, text/json
Sample:
{
"Status": "sample string 1",
"Message": "sample string 2",
"Count": "2",
"PlanTypes": [
{
"PlanTypeGUID": "b306baaf-869b-4e9e-93d1-014148a3bf5e",
"PlanType": "sample string 6",
"Inactive": true
},
{
"PlanTypeGUID": "b306baaf-869b-4e9e-93d1-014148a3bf5e",
"PlanType": "sample string 6",
"Inactive": true
}
]
}
application/xml, text/xml
Sample:
<AgvPlanType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AgvWebAPICSharp.Models.Plan">
<Message>sample string 2</Message>
<PlanTypes xmlns:d2p1="http://schemas.datacontract.org/2004/07/SSI.plbl">
<d2p1:PlanType>
<d2p1:Inactive>true</d2p1:Inactive>
<d2p1:PlanType>sample string 6</d2p1:PlanType>
<d2p1:PlanTypeGUID>b306baaf-869b-4e9e-93d1-014148a3bf5e</d2p1:PlanTypeGUID>
</d2p1:PlanType>
<d2p1:PlanType>
<d2p1:Inactive>true</d2p1:Inactive>
<d2p1:PlanType>sample string 6</d2p1:PlanType>
<d2p1:PlanTypeGUID>b306baaf-869b-4e9e-93d1-014148a3bf5e</d2p1:PlanTypeGUID>
</d2p1:PlanType>
</PlanTypes>
<Status>sample string 1</Status>
</AgvPlanType>