The TaskType Object

Object Property Required Object Type Description Max Character Length
TaskType Yes String Task Type of Task Type 10
AccountTaskTypeId No Integer Id of Task Type 10
IsDisabled No Boolean Disabled Status of Task Type 1

List All TaskType

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

GET /API/TaskType

Example Request

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

Example Response

[
     {
        "AccountTaskTypeId": 0001,
        "TaskType": "Task",
        "IsDisabled": "No"
    },
    {
        "AccountTaskTypeId": 0002,
        "TaskType": "Bug",
        "IsDisabled": "No"
    }
]

Retrieve a TaskType

Retrieves the TaskType with the given ID. Returns a TaskType object and a 200 OK response code if a valid identifier was provided.

GET /API/TaskType/{TaskType_ID}

Example Request

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

Example Response

[
     {
        "AccountTaskTypeId": 0001,
        "TaskType": "Task",
        "IsDisabled": "No"
    }
]

Create a TaskType

Creates a TaskType in your TimeLive account and returns the Response Message.

POST /API/TaskType
Object Property Required Object Type Description Max Character Length
TaskType Yes String Task Type of Task Type 10

Example Request

curl "https://demo.livetecs.com/api/TaskType" \
      -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 "{'TaskType': 'demo'}"

Example Response

[
    {
        "id": "00001",
        "message": "TaskType Added Successfully"
    }
]

Update a TaskType

Update an TaskType in your TimeLive account and returns the Response Message.

POST /API/TaskType/{TaskType_ID}

Example Request

curl "https://demo.livetecs.com/api/TaskType/0001" \
      -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 "{'TaskType': 'demo'}"

Example Response

[
    {
        "id": "0001",
        "message": "TaskType Updated Successfully"
    }
]

Delete a TaskType

Delete a TaskType. Returns a 200 OK response code if the call succeeded.

DELETE /API/TaskType/{TaskType_ID}

Example Request

curl "https://demo.livetecs.com/api/TaskType/0001" \
      -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": "0001",
        "message": "TaskType Delete Successfully"
    }
]