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

# Create assignment for credentialing workflow

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

Creates a new assignment for the specified credentialing workflow

## Path parameters

- `id` string, required

## Headers

- `tenant-id` string, required

## Request body

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

## Response `201`

Successfully created the assignment

- AssignmentHistoryResponse — Response containing assignment history for a credentialing workflow
  - `workflowId` string — Unique identifier for the credentialing workflow
  - `tenantId` string — ID of the tenant
  - `tenantPractitionerId` string — ID of the tenant practitioner
  - `assignments` AssignmentEntry[] — 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` — 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)
