---
title: "Create assignment for facility credentialing workflow"
method: POST
path: "/facility-credentialing-workflows/{id}/assignments"
tags: ["FacilityCredentialingWorkflow"]
---

# Create assignment for facility credentialing workflow

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

Creates a new assignment for the specified facility credentialing workflow

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