---
title: "Assign a facility credentialing workflow to a user"
method: POST
path: "/facility-credentialing-workflows/{id}/assignments"
tags: ["FacilityCredentialingWorkflow"]
---

# Assign a facility credentialing workflow to a user

`POST /facility-credentialing-workflows/{id}/assignments`

Creates an assignment record for the specified facility credentialing workflow, associating it with the given user and appending an entry to the assignment history. **When to use:** Use to assign (or reassign) a single workflow to one user. To assign multiple workflows at once, use `POST /facility-credentialing-workflows/assignments`. **Preconditions:** The caller must hold the `FACILITY_CREDENTIALING_WORKFLOW_ASSIGN` or `ASSIGN_SELF` permission. The target user must have the required permissions to be assigned; if not, `422 Unprocessable Entity` is returned — select a different assignee or ensure the target user's permissions are elevated. **Side effects:** An assignment history entry (`FacilityAssignmentHistoryResponse`) is created. **Returns:** `201 Created` with the new `FacilityAssignmentHistoryResponse` in the body.

## Path parameters

- `id` string, required

## Headers

- `tenant-id` string, required

## Request body

- CreateFacilityAssignmentRequest — Request to create a new assignment for a facility credentialing workflow
  - `assignedTo` string — User ID being assigned to
  - `reason` string — Optional reason for the assignment

## Response `201`

Successfully created the assignment

- FacilityAssignmentHistoryResponse — Response containing assignment history for a facility credentialing workflow
  - `workflowId` string — Unique identifier for the facility credentialing workflow
  - `tenantId` string — ID of the tenant
  - `tenantFacilityId` string — ID of the tenant facility
  - `assignments` AssignmentEntry1[] — Assignment history entries, with latest at index 0
    - `assignedFrom` string — User ID the assignment changed from
    - `assignedTo` string — User ID the assignment changed to
    - `assignedBy` string — User ID who made the assignment change
    - `assignedOn` string — Timestamp when the assignment was changed
    - `reason` string — Reason for the assignment change

## Other responses

- `400` — Invalid request data
- `401` — Unauthorized - Authentication required
- `403` — Forbidden - User does not have required permissions
- `404` — Facility credentialing workflow not found
- `422` — Unprocessable Entity - Target user does not have required permissions
- `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)
