The Priorities Object

Object Property Required Object Type Description Max Character Length
Priority Yes String Name of priority 50
AccountPriorityId No Integer Id of priority 11
PriorityOrder No Integer Order of priority 2
IsDisabled No Boolean Disabled Status of priority 1

List All Priorities

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

GET /API/Priorities

Example Request

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

Example Response

[
    {
        "AccountPriorityId": 0001,
        "Priority": "Urgent",
        "PriorityOrder": 1,
        "IsDisabled": "No"
    },
    {
        "AccountPriorityId": 0002,
        "Priority": "High",
        "PriorityOrder": 10,
        "IsDisabled": "No"
    }
]

Retrieve a Priorities

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

GET /API/Priorities/{Priorities_ID}

Example Request

curl "https://demo.livetecs.com/api/Priorities/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

[
   {
        "AccountPriorityId": 0002,
        "Priority": "Urgent",
        "PriorityOrder": 1,
        "IsDisabled": "No"
    }
]

Create a Priorities

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

POST /API/Priorities
Object Property Required Object Type Description Max Character Length
priority Yes String Payment Method of priority 50

Example Request

curl "https://demo.livetecs.com/api/Priorities" \
      -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 "{'priority': 'demo','PriorityOrder':3}"

Example Response

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

Update a Priorities

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

POST /API/Priorities/{Priorities_ID}

Example Request

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

Example Response

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

Delete a Priorities

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

DELETE /API/Priorities/{Priorities_ID}

Example Request

curl "https://demo.livetecs.com/api/Priorities/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": "Priority Delete Successfully"
    }
]