POST api/EmployeeGrades/{companyId}
Create a new employee grade
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| companyId | integer |
Required |
Body Parameters
EmployeeGradeNew| Name | Description | Type | Additional information |
|---|---|---|---|
| CompanyId | integer |
None. |
|
| GradeName | string |
None. |
|
| GradeDescription | string |
None. |
|
| IsActive | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{
"CompanyId": 1,
"GradeName": "sample string 2",
"GradeDescription": "sample string 3",
"IsActive": true
}
text/html
Sample:
{"CompanyId":1,"GradeName":"sample string 2","GradeDescription":"sample string 3","IsActive":true}
application/xml, text/xml
Sample:
<EmployeeGradeNew xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TTMWM_MECLAIM_API.ViewModels"> <CompanyId>1</CompanyId> <GradeDescription>sample string 3</GradeDescription> <GradeName>sample string 2</GradeName> <IsActive>true</IsActive> </EmployeeGradeNew>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ServiceResultTypedOfEmployeeGrade| Name | Description | Type | Additional information |
|---|---|---|---|
| Code | integer |
None. |
|
| Errors | Collection of string |
None. |
|
| Data | EmployeeGrade |
None. |
Response Formats
application/json, text/json
Sample:
{
"Code": 1,
"Errors": [
"sample string 1",
"sample string 2"
],
"Data": {
"EmployeeGradeId": 1,
"CompanyId": 2,
"GradeName": "sample string 3",
"GradeDescription": "sample string 4",
"IsActive": true
}
}
text/html
Sample:
{"Code":1,"Errors":["sample string 1","sample string 2"],"Data":{"EmployeeGradeId":1,"CompanyId":2,"GradeName":"sample string 3","GradeDescription":"sample string 4","IsActive":true}}
application/xml, text/xml
Sample:
<ServiceResultTypedOfEmployeeGradeYj8O1tFc xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LSW.Common.Models">
<Code>1</Code>
<Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/TTMWM_MECLAIM_API.ViewModels">
<d2p1:CompanyId>2</d2p1:CompanyId>
<d2p1:EmployeeGradeId>1</d2p1:EmployeeGradeId>
<d2p1:GradeDescription>sample string 4</d2p1:GradeDescription>
<d2p1:GradeName>sample string 3</d2p1:GradeName>
<d2p1:IsActive>true</d2p1:IsActive>
</Data>
<Errors xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:string>sample string 1</d2p1:string>
<d2p1:string>sample string 2</d2p1:string>
</Errors>
</ServiceResultTypedOfEmployeeGradeYj8O1tFc>