20.03.12 Employee Types

The EmployeeType Object

Object PropertyRequiredObject TypeDescriptionMax Character Length
AccountEmployeeTypeYesStringEmployee Type of EmployeeType50
AccountEmployeeTypeIdNoGuidEmployee Type Id of EmployeeType32
IsDisabledNoBooleanDisabled Status of EmployeeType1
IsVendorNoBooleanVendor Status of EmployeeType1

List All EmployeeTypes

Returns a list of your all EmployeeTypes in your UNItekTIME account.
GET /API/EmployeeTypes

Example Request

curl "https://demo.unitektime.com/api/EmployeeTypes" \
      -H "APIKey: {Your API Key}" \
      -H "AuthToken: {Your Authentication Token}" \
      -H "Content-Type: application/json" \
      -H "User-Agent: MyApp (yourname@example.com)"

Example Response

[
    {
        "AccountEmployeeTypeId": "00000000-0000-0000-0000-000000000000",
        "AccountEmployeeType": "Demo",
        "IsDisabled": "No",
        "IsVendor": "No"
    }
]

Retrieve a EmployeeType

Retrieves the EmployeeType with the given ID. Returns a EmployeeType object and a 200 OK response code if a valid identifier was provided.
GET /API/EmployeeTypes/{EmployeeType_ID}

Example Request

curl "https://demo.unitektime.com/api/EmployeeTypes/00000000-0000-0000-0000-000000000000" \
      -H "APIKey: {Your API Key}" \
      -H "AuthToken: {Your Authentication Token}" \
      -H "Content-Type: application/json" \
      -H "User-Agent: MyApp (yourname@example.com)"

Example Response

[
    {
        "AccountEmployeeTypeId": "00000000-0000-0000-0000-000000000000",
        "AccountEmployeeTypeCode": "Demo",
        "AccountEmployeeType": "Demo User",
        "IsDisabled": "No"
    }
]

Create a EmployeeType

Creates a EmployeeType in your UNItekTIME account and returns the Response Message.
POST /API/EmployeeTypes
Object PropertyRequiredObject TypeDescriptionMax Character Length
AccountEmployeeTypeYesStringEmployee Type of EmployeeType50

Example Request

curl "https://demo.unitektime.com/api/EmployeeTypes" \
      -H "APIKey: {Your API Key}" \
      -H "AuthToken: {Your Authentication Token}" \
      -H "User-Agent: MyApp (yourname@example.com)" \
      -X POST \
      -H "Content-Type: application/json" \
      -d "{'AccountEmployeeType': 'Demo'}"

Example Response

[
    {
        "id": "00000000-0000-0000-0000-000000000000",
        "message": "Employee Type Added Successfully"
    }
]

Update a EmployeeType

Update an EmployeeType in your UNItekTIME account and returns the Response Message.
POST /API/EmployeeTypes/{EmployeeType_ID}

Example Request

curl "https://demo.unitektime.com/api/EmployeeTypes/00000000-0000-0000-0000-000000000000" \
      -H "APIKey: {Your API Key}" \
      -H "AuthToken: {Your Authentication Token}" \
      -H "User-Agent: MyApp (yourname@example.com)" \
      -X POST \
      -H "Content-Type: application/json" \
      -d "{'AccountEmployeeType': 'Sample'}"

Example Response

[
    {
        "id": "00002",
        "message": "Employee Type Update Successfully"
    }
]

Delete a EmployeeType

Delete a EmployeeType. Returns a 200 OK response code if the call succeeded.
DELETE /API/EmployeeType/{EmployeeType_ID}

Example Request

curl "https://demo.unitektime.com/api/EmployeeTypes/00000000-0000-0000-0000-000000000000" \
      -H "APIKey: {Your API Key}" \
      -H "AuthToken: {Your Authentication Token}" \
      -H "User-Agent: MyApp (yourname@example.com)" \
      -X DELETE \
      -H "Content-Type: application/json"

Example Response

[
    {
        "id": "00000000-0000-0000-0000-000000000000",
        "message": "Employee Type Deleted successfully"
    }
]