The EmployeeType Object

Object Property Required Object Type Description Max Character Length
AccountEmployeeType Yes String Employee Type of EmployeeType 50
AccountEmployeeTypeId No Guid Employee Type Id of EmployeeType 32
IsDisabled No Boolean Disabled Status of EmployeeType 1
IsVendor No Boolean Vendor Status of EmployeeType 1

List All EmployeeTypes

Returns a list of your all EmployeeTypes in your TimeLive account.

GET /API/EmployeeTypes

Example Request

curl "https://demo.livetecs.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.livetecs.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 TimeLive account and returns the Response Message.

POST /API/EmployeeTypes
Object Property Required Object Type Description Max Character Length
AccountEmployeeType Yes String Employee Type of EmployeeType 50

Example Request

curl "https://demo.livetecs.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 TimeLive account and returns the Response Message.

POST /API/EmployeeTypes/{EmployeeType_ID}

Example Request

curl "https://demo.livetecs.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.livetecs.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"
    }
]