20.03.23 Task Types

The TaskType Object

Object PropertyRequiredObject TypeDescriptionMax Character Length
TaskTypeYesStringTask Type of Task Type10
AccountTaskTypeIdNoIntegerId of Task Type10
IsDisabledNoBooleanDisabled Status of Task Type1

List All TaskType

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

Example Request

curl "https://demo.unitektime.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.unitektime.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 UNItekTIME account and returns the Response Message.
POST /API/TaskType
Object PropertyRequiredObject TypeDescriptionMax Character Length
TaskTypeYesStringTask Type of Task Type10

Example Request

curl "https://demo.unitektime.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 UNItekTIME account and returns the Response Message.
POST /API/TaskType/{TaskType_ID}

Example Request

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