Skip to content

Retrieves a list of the ticket priorities

Request

Security
oauth2
const instance = 'YOUR_instance_PARAMETER';
const resp = await fetch(
  `https://${instance}.app.willowinc.com/api/v3/tickets/priorities`,
  {
    method: 'GET',
    headers: {
      Authorization: 'Bearer <YOUR_TOKEN_HERE>'
    }
  }
);

const data = await resp.text();
console.log(data);

Responses

List of ticket priorities.

Bodyapplication/json
Array [
idstring, (uuid)

Gets or sets the unique identifier for the ticket priority.

namenull or string

Gets or sets the name of the ticket priority.

priorityLevelany(TicketPriorityLevel)

Gets or sets the priority level of the ticket.

Enum:"urgent""high""medium""low"
isDefaultboolean

Gets or sets a value indicating whether this priority is the default for its priority level.

]
Response
[ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": null, "priorityLevel": "urgent", "isDefault": true } ]