---
title: "Priorities Collection"
method: GET
path: "/priorities"
tags: ["Priorities"]
---

# Priorities Collection

`GET /priorities`

## Request

- Base URL: `https://sb2api.servicechannel.com/v3`
- URL: `https://sb2api.servicechannel.com/v3/priorities`
- Auth: OAuth 2
  - Authorization code: `https://sb2login.servicechannel.com/oauth/authorize`
  - Token URL: `https://sb2login.servicechannel.com/oauth/token`
- TypeScript: <https://skmtc.dev/servicechannel/apis/servicechannel-api-v-3/docs/priorities/get.ts> (a function with typed inputs; its response is checked against the schema)

Retrieves list of all Work order priorities in user settings.

## Query parameters

- `subscriberId` integer

## Response `200`

Indicates that the request succeeded and that the requested information is in the response.

- ServiceChannelServicesWebApiModelsResponsePrioritiesPriorityResponse[]
  - `Id` integer
  - `Name` string: Priority name
  - `SubscriberId` integer: UID of subscriber. Can be null
  - `Eta` string: ETA
  - `SkipNights` boolean: Skip nights while calculating scheduled date
  - `SkipWeekends` boolean: Skip weekends while calculating scheduled date
  - `LocationId` integer: If priority is associated with location - assiciated location
  - `Trade` string: If priority is associated with trade - assiciated trade
  - `ScheduledDate` string, date-time: Calculated WO Scheduled Date
  - `ScheduledDate_DTO` string, date-time: Calculated WO Scheduled Date with time zone offset
  - `IsSelectable` boolean: IsSelectable

## Other responses

- `400`: Bad Request - the request could not be understood or was missing required parameters.
- `401`: Indicates that the requested resource requires authentication. <br/>Error codes: <br/> 504 - API call rejected by security permissions;

---

[API](https://skmtc.dev/servicechannel/apis/servicechannel-api-v-3.md) - [All operations](https://skmtc.dev/servicechannel/apis/servicechannel-api-v-3/llms.txt) - [OpenAPI document](https://skmtc.dev/servicechannel/apis/servicechannel-api-v-3/revisions/d490d6596809?raw)
