---
title: "POST /feedbacks/workorders/{workorderId}"
method: POST
path: "/feedbacks/workorders/{workorderId}"
tags: ["Feedback"]
---

# POST /feedbacks/workorders/{workorderId}

`POST /feedbacks/workorders/{workorderId}`

## Request

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

## Path parameters

- `workorderId` integer, required

## Request body

- ServiceChannelServicesMessagingFeedbackFeedbackRequest
  - `SetupId` integer: Dashboard SetupId (optional)
  - `LocationId` integer
  - `Answer` string: Satisfactory answer. Supported values: satisfactory, unsatisfactory
  - `Comment` string: User text comment. Required if answer is "unsatisfactory". Required if score lower than 3
  - `StarScore` integer: Star scrore. The integer value from 1 to 5 (Required for satisfactory answer)
  - `SubscriberId` integer: Subscriber Id

## Response `201`

Indicates that the request succeeded and that the feedback created.

## Other responses

- `400`: Bad Request - the request could not be understood or was missing required parameters. <br>Error codes: <br> 503 - Request is empty or null; <br> 904 - Invalid work order status; <br> 2601 - Invalid feedback answer; <br> 2602 - Invalid work order number; <br> 2602 - Invalid subscriber; <br> 2603 - Invalid subscriber number; <br> 2604 - Invalid feedback score; <br> 2605 - Unsatisfactory answer required a comment <br> 2606 - Invalid LocationId or SetupId provided
- `401`: Indicates that the requested resource requires authentication.<br>Error codes:<br> 504 - API call rejected by security permissions;
- `500`: The server was unable to complete the request due to an internal error. <br/>Error codes: 501 - Unspecified internal server error occurred

---

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