The Projecttypes Object

Object Property Required Object Type Description Max Character Length
ProjectType Yes String Type of Project 50
AccountProjectTypeId No Integer Id of Project 10
IsDisabled No Boolean Disabled Status of Project 1

List All Projecttypes

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

GET /API/Projecttypes

Example Request

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

POST /API/Projecttypes
Object Property Required Object Type Description Max Character Length
ProjectType Yes String Type of Project 50

Example Request

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

POST /API/Projecttypes/{Projecttypes_ID}

Example Request

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