20.03.20 Priorities

The Priorities Object

Object PropertyRequiredObject TypeDescriptionMax Character Length
PriorityYesStringName of priority50
AccountPriorityIdNoIntegerId of priority11
PriorityOrderNoIntegerOrder of priority2
IsDisabledNoBooleanDisabled Status of priority1

List All Priorities

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

Example Request

curl "https://demo.unitektime.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.unitektime.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 UNItekTIME account and returns the Response Message.
POST /API/Priorities
Object PropertyRequiredObject TypeDescriptionMax Character Length
priorityYesStringPayment Method of priority50

Example Request

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

Example Request

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