POST V2/odata/Employee

Inserts Employee entity

Request Information

URI Parameters

None.

Body Parameters

QicsUnity.Api.Areas.V2.Models.Employee
NameDescriptionTypeAdditional information
Address1

Gets or sets the first address line

string

None.

Address2

Gets or sets the second address line

string

None.

City

Gets or sets the city

string

None.

ContactPerson

Gets or sets the contact person

string

None.

Country

Gets or sets the country

string

None.

County

Gets or sets the county

string

None.

EmailAddress

Gets or sets the email address

string

None.

PhoneNumber

Gets or sets the phone number

string

None.

ZipCode

Gets or sets the zip code

string

None.

SupplierCustomerCompanyId

Gets or sets SupplierCustomerCompanyId

integer

None.

HoursPerWeek

Gets or sets the hours per week

decimal number

None.

NormBillableHoursPerWeek

Gets or sets the target billable hours per week

decimal number

None.

NormBillableHoursPerYear

Gets or sets the target billable hours per year

decimal number

None.

NormHoursPerWeek

Gets or sets the target hours per week

decimal number

None.

NormHoursPerYear

Gets or sets the target hours per year

decimal number

None.

NormProductivePerWeek

Gets or sets the target productive hours per week

decimal number

None.

NormProductivePerYear

Gets or sets the target productive hours per year

decimal number

None.

FirstName

Gets or sets the first name

string

None.

IsActive

Gets or sets a value indicating whether the employee is active

boolean

None.

LastName

Gets or sets the last name

string

None.

MiddleName

Gets or sets the middle name

string

None.

Name

Gets or sets the name

string

None.

ResourceId

Gets or sets ResourceId

integer

None.

ResourceCompanyId

Gets or sets ResourceCompanyId

integer

None.

CompanyId

Gets or sets CompanyId

integer

None.

ResourceNumber

Gets or sets ResourceNumber

integer

None.

DepartmentId

Gets or sets DepartmentId

integer

None.

ManagerResourceCompanyId

Gets or sets ManagerResourceCompanyId

integer

None.

CostCenterId

Gets or sets EmployeeCompany.CostCenterId

integer

None.

FunctionId

Gets or sets FunctionId

integer

None.

AssignedUserId

Gets or sets the assigned user id

integer

None.

UseEmployeeItems

Gets or sets a value indicating whether to use employee items

boolean

None.

EmployeeHyperlinkCountsId

Gets or sets the EmployeeHyperlinkCountsId

integer

None.

Salutation

Gets or sets Salutation

string

None.

Initials

Gets or sets Initials

string

None.

Titles

Gets or sets Titles

string

None.

Abbreviation

Gets or sets Abbreviation

string

None.

EnlistmentDate

Gets or sets EnlistmentDate

date

None.

LeaveDate

Gets or sets LeaveDate

date

None.

EmployeeType

Gets or sets EmployeeType (nullable so it is not required, it is then prefilled on insert/update by default value)

QicsUnity.Api.Areas.V2.Models.EmployeeType

None.

VacationHours

Gets or sets VacationHours

decimal number

None.

VacationFromPreviousYear

Gets or sets VacationFromPreviousYear

decimal number

None.

Request Formats

application/json, text/json

Sample:
{
  "Address1": "sample 1",
  "Address2": "sample 2",
  "City": "sample 3",
  "ContactPerson": "sample 4",
  "Country": "sample 5",
  "County": "sample 6",
  "EmailAddress": "sample 7",
  "PhoneNumber": "sample 8",
  "ZipCode": "sample 9",
  "SupplierCustomerCompanyId": 1,
  "HoursPerWeek": 1.0,
  "NormBillableHoursPerWeek": 1.0,
  "NormBillableHoursPerYear": 1.0,
  "NormHoursPerWeek": 1.0,
  "NormHoursPerYear": 1.0,
  "NormProductivePerWeek": 1.0,
  "NormProductivePerYear": 1.0,
  "FirstName": "sample 10",
  "IsActive": true,
  "LastName": "sample 12",
  "MiddleName": "sample 13",
  "Name": "sample 14",
  "ResourceId": 1,
  "ResourceCompanyId": 15,
  "CompanyId": 1,
  "ResourceNumber": 16,
  "DepartmentId": 1,
  "ManagerResourceCompanyId": 1,
  "CostCenterId": 1,
  "FunctionId": 1,
  "AssignedUserId": 1,
  "UseEmployeeItems": true,
  "EmployeeHyperlinkCountsId": 18,
  "Salutation": "sample 19",
  "Initials": "sample 20",
  "Titles": "sample 21",
  "Abbreviation": "sample 22",
  "EnlistmentDate": "2019-07-16T18:13:59.5758779+00:00",
  "LeaveDate": "2019-07-16T18:13:59.5758779+00:00",
  "EmployeeType": 0,
  "VacationHours": 1.0,
  "VacationFromPreviousYear": 1.0
}

application/xml, text/xml

Sample:
<Employee xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/QicsUnity.Api.Areas.V2.Models">
  <Abbreviation>sample 22</Abbreviation>
  <Address1>sample 1</Address1>
  <Address2>sample 2</Address2>
  <AssignedUserId>1</AssignedUserId>
  <City>sample 3</City>
  <CompanyId>1</CompanyId>
  <ContactPerson>sample 4</ContactPerson>
  <CostCenterId>1</CostCenterId>
  <Country>sample 5</Country>
  <County>sample 6</County>
  <DepartmentId>1</DepartmentId>
  <EmailAddress>sample 7</EmailAddress>
  <EmployeeHyperlinkCountsId>18</EmployeeHyperlinkCountsId>
  <EmployeeType>External</EmployeeType>
  <EnlistmentDate>2019-07-16T18:13:59.5758779+00:00</EnlistmentDate>
  <FirstName>sample 10</FirstName>
  <FunctionId>1</FunctionId>
  <HoursPerWeek>1</HoursPerWeek>
  <Initials>sample 20</Initials>
  <IsActive>true</IsActive>
  <LastName>sample 12</LastName>
  <LeaveDate>2019-07-16T18:13:59.5758779+00:00</LeaveDate>
  <ManagerResourceCompanyId>1</ManagerResourceCompanyId>
  <MiddleName>sample 13</MiddleName>
  <Name>sample 14</Name>
  <NormBillableHoursPerWeek>1</NormBillableHoursPerWeek>
  <NormBillableHoursPerYear>1</NormBillableHoursPerYear>
  <NormHoursPerWeek>1</NormHoursPerWeek>
  <NormHoursPerYear>1</NormHoursPerYear>
  <NormProductivePerWeek>1</NormProductivePerWeek>
  <NormProductivePerYear>1</NormProductivePerYear>
  <PhoneNumber>sample 8</PhoneNumber>
  <ResourceCompanyId>15</ResourceCompanyId>
  <ResourceId>1</ResourceId>
  <ResourceNumber>16</ResourceNumber>
  <Salutation>sample 19</Salutation>
  <SupplierCustomerCompanyId>1</SupplierCustomerCompanyId>
  <Titles>sample 21</Titles>
  <UseEmployeeItems>true</UseEmployeeItems>
  <VacationFromPreviousYear>1</VacationFromPreviousYear>
  <VacationHours>1</VacationHours>
  <ZipCode>sample 9</ZipCode>
</Employee>

Response Information

Resource Description

System.Net.Http.HttpResponseMessage
NameDescriptionTypeAdditional information
Version

System.Version

None.

Content

System.Net.Http.HttpContent

None.

StatusCode

System.Net.HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

System.Net.Http.HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.