POST api/Departement/PostDepartement
Request Information
URI Parameters
None.
Body Parameters
DepartementViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Name | string |
Required |
|
| ParentId | integer |
None. |
|
| ExternalId | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"Name": "sample string 1",
"ParentId": 1,
"ExternalId": "sample string 2"
}
application/xml, text/xml
Sample:
<DepartementViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/eMpowerCore.ViewModels.Admin"> <ExternalId>sample string 2</ExternalId> <Name>sample string 1</Name> <ParentId>1</ParentId> </DepartementViewModel>
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.