---
title: "Get survey questions by workorderid."
method: GET
path: "/surveyquestions/{workOrderId}"
tags: ["SurveyQuestions"]
---

# Get survey questions by workorderid.

`GET /surveyquestions/{workOrderId}`

## Request

- Base URL: `https://sb2api.servicechannel.com/v3`
- URL: `https://sb2api.servicechannel.com/v3/surveyquestions/{workOrderId}`
- 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/surveyquestions/:workOrderId/get.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `workOrderId` integer, required

## Response `200`

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

- ServiceChannelServicesMessagingSurveyQuestionGetSurveyQuestionsResponse: holds response
  - `SurveyQuestions` ServiceChannelApiModelEntitiesSurveyQuestionsSurveyQuestion[]: Gets or sets Trades.
    - `Question` string
    - `Disabled` boolean
    - `Locations` ServiceChannelApiModelEntitiesSurveyQuestionsSurveyLocation[]
      - `Id` integer
      - `Name` string
    - `Trades` ServiceChannelApiModelEntitiesSurveyQuestionsSurveyTrade[]
      - `Id` integer
      - `Name` string
    - `Categories` ServiceChannelApiModelEntitiesSurveyQuestionsSurveyCategory[]
      - `Id` integer
      - `Name` string
    - `Priorities` ServiceChannelApiModelEntitiesSurveyQuestionsSurveyPriority[]
      - `Id` integer
      - `Name` string
    - `Providers` ServiceChannelApiModelEntitiesSurveyQuestionsSurveyProvider[]
      - `Id` integer
      - `Name` string
    - `Id` integer
    - `SubscriberId` integer
    - `UserId` integer
  - `ItemsCount` integer: Gets or sets ItemsCount.
  - `ErrorCode` integer: Numeric identifier that determines the nature of an error. Possible values: `0` - success, otherwise - error.
  - `Message` string: Defines that the file’s remote storage is unavailable or its URL cannot be found.

## 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;
- `403`: You are not authorized to request this resource, or the resource is unavailable for some reason. <br/>Error codes: <br/> 804 - User does not have access to work order;

---

[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)
