---
title: "Update states to credential"
method: PATCH
path: "/credentialing-workflows/{workflowId}/states-to-credential"
tags: ["CredentialingWorkflow"]
---

# Update states to credential

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

Updates the states to credential for a credentialing workflow. Accepts an array of state codes (e.g., ["CA", "NY", "TX"]). An empty array [] will unset/remove the states to credential field.

## 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/versions/3d27e9019c7b/schema)
