---
title: "Set the US states in which a practitioner will be credentialed"
method: PATCH
path: "/credentialing-workflows/{workflowId}/states-to-credential"
tags: ["CredentialingWorkflow"]
---

# Set the US states in which a practitioner will be credentialed

`PATCH /credentialing-workflows/{workflowId}/states-to-credential`

Updates the `statesToCredential` field on the credentialing workflow identified by `workflowId`. Accepts an array of two-letter US state abbreviations (e.g. `["CA", "NY", "TX"]`). Send an empty array (`[]`) to remove all state selections.

## Path parameters

- `workflowId` string, required

## Headers

- `tenant-id` string, required

## Request body

- UpdateStatesToCredentialRequest — Request to update states to credential in credentialing workflow. Empty array unsets the field.
  - `statesToCredential` string[], required — The states to credential array. Empty array removes/unsets the states to credential.
  - `reason` string — Reason for the states to credential change

## Response `200`

Successfully updated the states to credential

- object

## Other responses

- `400` — Invalid request data
- `401` — Unauthorized - Authentication required
- `403` — Forbidden - User does not have required permissions
- `404` — Credentialing workflow not found
- `500` — Internal Server Error - An unexpected error occurred

---

[API](https://skmtc.net/certifyos/apis/certify-api-layer.md) · [All operations](https://skmtc.net/certifyos/apis/certify-api-layer/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/certifyos/certify-api-layer/revisions/563848e0ecc0/schema)
