---
title: "Partial update the compliance for a work order"
method: PATCH
path: "/workorders/{workOrderId}/compliance"
tags: ["Compliance"]
---

# Partial update the compliance for a work order

`PATCH /workorders/{workOrderId}/compliance`

## Request

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

## Path parameters

- `workOrderId` integer, required

## Request body

- ServiceChannelServicesWebApiModelsRequestCompliancePartialUpdateWorkOrderComplianceRequest
  - `Status` ServiceChannelServicesWebApiModelsRequestCompliancePatchedDataWrapperServiceChannelApiModelWorkordersComplianceWorkOrderComplianceStatus
    - `Value` 'Open' | 'Expired' | 'InvalidDocument' | 'Pass' | 'PassWithRecommendation' | 'Fail' | 'FailWithRemediation'
  - `Attachment` ServiceChannelServicesWebApiModelsRequestCompliancePatchedDataWrapperServiceChannelApiModelWorkordersComplianceComplianceAttachment
    - `Value` ServiceChannelApiModelWorkordersComplianceComplianceAttachment
      - `Name` string
      - `Uri` string
  - `ValidFromDate` ServiceChannelServicesWebApiModelsRequestCompliancePatchedDataWrapperSystemNullableSystemDateTimeOffset
    - `Value` string, date-time
  - `ValidToDate` ServiceChannelServicesWebApiModelsRequestCompliancePatchedDataWrapperSystemNullableSystemDateTimeOffset
    - `Value` string, date-time
  - `RemediationDueDate` ServiceChannelServicesWebApiModelsRequestCompliancePatchedDataWrapperSystemNullableSystemDateTimeOffset
    - `Value` string, date-time
  - `Comment` ServiceChannelServicesWebApiModelsRequestCompliancePatchedDataWrapperSystemString
    - `Value` string

## Response `204`

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

## Other responses

- `400`: Bad Request - the request could not be understood or was missing required parameters. <br/>Error codes: <br/> 503 - Request is invalid
- `401`: The request is not authorized. <br/>Error codes: <br/> 504 — API call rejected by security permissions
- `500`: Something went wrong, and the server was unable to complete your request. <br/>Error codes: 501 — Internal Error

---

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