PUT api/Configuration/Employees
Create a new Employee or update an existing one
Request Information
URI Parameters
None.
Body Parameters
EmployeeName | Description | Type | Additional information |
---|---|---|---|
Code |
|
string |
Required Max length: 15 |
Name |
|
string |
Required Max length: 75 |
Function |
|
string |
Required |
Account |
|
string |
Required |
AdmissionDate |
|
date |
Required |
MHCost |
|
decimal number |
None. |
WorkStart |
|
time interval |
None. |
WorkEnd |
|
time interval |
None. |
LunchStart |
|
time interval |
None. |
LunchEnd |
|
time interval |
None. |
Address |
|
string |
None. |
PostalCode |
|
string |
Max length: 10 |
PlaceCity |
|
string |
Max length: 20 |
Country |
|
string |
Max length: 20 |
BirthDate |
|
date |
None. |
IdCardNumber |
|
string |
Max length: 10 |
TaxNumber |
|
string |
Max length: 10 |
SocialSecurity |
|
string |
Max length: 11 |
DrivingLicense |
|
string |
Max length: 10 |
Phone |
|
string |
Max length: 17 |
Mobile |
|
string |
Max length: 17 |
|
string |
Max length: 100 |
|
Accesses |
|
Accesses |
None. |
Request Formats
Sample:
{ "Code": "sample string 1", "Name": "sample string 2", "Function": "sample string 3", "Account": "sample string 4", "AdmissionDate": "2024-11-14T16:36:22.2270976+00:00", "MHCost": 1.1, "WorkStart": "00:00:00.1234567", "WorkEnd": "00:00:00.1234567", "LunchStart": "00:00:00.1234567", "LunchEnd": "00:00:00.1234567", "Address": "sample string 6", "PostalCode": "sample string 7", "PlaceCity": "sample string 8", "Country": "sample string 9", "BirthDate": "2024-11-14T16:36:22.2270976+00:00", "IdCardNumber": "sample string 10", "TaxNumber": "sample string 11", "SocialSecurity": "sample string 12", "DrivingLicense": "sample string 13", "Phone": "sample string 14", "Mobile": "sample string 15", "Email": "sample string 16", "Accesses": { "Profile": "sample string 1" } }
Sample:
<Employee xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Models.Parametrizacao"> <Accesses> <Profile>sample string 1</Profile> </Accesses> <Account>sample string 4</Account> <Address>sample string 6</Address> <AdmissionDate>2024-11-14T16:36:22.2270976+00:00</AdmissionDate> <BirthDate>2024-11-14T16:36:22.2270976+00:00</BirthDate> <Code>sample string 1</Code> <Country>sample string 9</Country> <DrivingLicense>sample string 13</DrivingLicense> <Email>sample string 16</Email> <Function>sample string 3</Function> <IdCardNumber>sample string 10</IdCardNumber> <LunchEnd>PT0.1234567S</LunchEnd> <LunchStart>PT0.1234567S</LunchStart> <MHCost>1.1</MHCost> <Mobile>sample string 15</Mobile> <Name>sample string 2</Name> <Phone>sample string 14</Phone> <PlaceCity>sample string 8</PlaceCity> <PostalCode>sample string 7</PostalCode> <SocialSecurity>sample string 12</SocialSecurity> <TaxNumber>sample string 11</TaxNumber> <WorkEnd>PT0.1234567S</WorkEnd> <WorkStart>PT0.1234567S</WorkStart> </Employee>
Sample:
Sample not available.
Sample:
--MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Code" sample string 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Name" sample string 2 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Function" sample string 3 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Account" sample string 4 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="AdmissionDate" 2024-11-14T16:36:22.2270976+00:00 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="MHCost" 1.1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="WorkStart.Ticks" 1234567 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="WorkStart.Days" 0 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="WorkStart.Hours" 0 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="WorkStart.Milliseconds" 123 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="WorkStart.Minutes" 0 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="WorkStart.Seconds" 0 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="WorkStart.TotalDays" 1.4288969907407408E-06 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="WorkStart.TotalHours" 3.4293527777777779E-05 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="WorkStart.TotalMilliseconds" 123.45670000000001 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="WorkStart.TotalMinutes" 0.0020576116666666667 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="WorkStart.TotalSeconds" 0.12345669999999999 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="WorkEnd.Ticks" 1234567 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="WorkEnd.Days" 0 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="WorkEnd.Hours" 0 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="WorkEnd.Milliseconds" 123 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="WorkEnd.Minutes" 0 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="WorkEnd.Seconds" 0 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="WorkEnd.TotalDays" 1.4288969907407408E-06 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="WorkEnd.TotalHours" 3.4293527777777779E-05 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="WorkEnd.TotalMilliseconds" 123.45670000000001 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="WorkEnd.TotalMinutes" 0.0020576116666666667 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="WorkEnd.TotalSeconds" 0.12345669999999999 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="LunchStart.Ticks" 1234567 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="LunchStart.Days" 0 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="LunchStart.Hours" 0 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="LunchStart.Milliseconds" 123 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="LunchStart.Minutes" 0 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="LunchStart.Seconds" 0 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="LunchStart.TotalDays" 1.4288969907407408E-06 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="LunchStart.TotalHours" 3.4293527777777779E-05 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="LunchStart.TotalMilliseconds" 123.45670000000001 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="LunchStart.TotalMinutes" 0.0020576116666666667 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="LunchStart.TotalSeconds" 0.12345669999999999 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="LunchEnd.Ticks" 1234567 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="LunchEnd.Days" 0 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="LunchEnd.Hours" 0 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="LunchEnd.Milliseconds" 123 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="LunchEnd.Minutes" 0 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="LunchEnd.Seconds" 0 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="LunchEnd.TotalDays" 1.4288969907407408E-06 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="LunchEnd.TotalHours" 3.4293527777777779E-05 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="LunchEnd.TotalMilliseconds" 123.45670000000001 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="LunchEnd.TotalMinutes" 0.0020576116666666667 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="LunchEnd.TotalSeconds" 0.12345669999999999 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Address" sample string 6 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="PostalCode" sample string 7 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="PlaceCity" sample string 8 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Country" sample string 9 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="BirthDate" 2024-11-14T16:36:22.2270976+00:00 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="IdCardNumber" sample string 10 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="TaxNumber" sample string 11 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="SocialSecurity" sample string 12 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="DrivingLicense" sample string 13 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Phone" sample string 14 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Mobile" sample string 15 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Email" sample string 16 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Accesses.Profile" sample string 1 --MultipartDataMediaFormatterBoundary1q2w3e--
Response Information
Resource Description
HttpResponseMessageName | Description | Type | Additional information |
---|---|---|---|
Version |
|
Version |
None. |
Content |
|
HttpContent |
None. |
StatusCode |
|
HttpStatusCode |
None. |
ReasonPhrase |
|
string |
None. |
Headers |
|
Collection of Object |
None. |
RequestMessage |
|
HttpRequestMessage |
None. |
IsSuccessStatusCode |
|
boolean |
None. |