20.03.21 Project Types

The Projecttypes Object

Object PropertyRequiredObject TypeDescriptionMax Character Length
ProjectTypeYesStringType of Project50
AccountProjectTypeIdNoIntegerId of Project10
IsDisabledNoBooleanDisabled Status of Project1

List All Projecttypes

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

Example Request

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

Example Response

[
    {
        "AccountProjectTypeId": 0001,
        "ProjectType": "Technology",
        "IsDisabled": "No"
    },
    {
        "AccountProjectTypeId": 0002,
        "ProjectType": "Marketing",
        "IsDisabled": "No"
    }
]

Retrieve a Projecttypes

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

Example Request

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

Example Response

[
   {
        "AccountProjectTypeId": 0001,
        "ProjectType": "Technology",
        "IsDisabled": "No"
    }
]

Create a Projecttypes

Creates a Projecttypes in your UNItekTIME account and returns the Response Message.
POST /API/Projecttypes
Object PropertyRequiredObject TypeDescriptionMax Character Length
ProjectTypeYesStringType of Project50

Example Request

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

Example Response

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

Update a Projecttypes

Update an Projecttypes in your UNItekTIME account and returns the Response Message.
POST /API/Projecttypes/{Projecttypes_ID}

Example Request

curl "https://demo.unitektime.com/api/Projecttypes/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 "{'ProjectType': 'demo'}"

Example Response

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

Delete a Projecttypes

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

Example Request

curl "https://demo.unitektime.com/api/Projecttypes/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": "ProjectType Delete Successfully"
    }
]