---
title: "POST /api/capa/process/"
method: POST
path: "/api/capa/process/"
tags: ["CAPA"]
---

# POST /api/capa/process/

`POST /api/capa/process/`

Process CAPA (Corrective and Preventive Action) by creating a background job

## Request body

- object
  - `auditFileId` string
  - `capFileId` string
  - `importContext` object
    - `sourceAuditId` string
    - `companyId` string
    - `capId` string

## Response `201`

Default Response

- object
  - `metadata` object, required
    - `success` boolean, required — True when the request succeeded.
  - `data` object, required
    - `id` string, required
    - `auditFileId` string, nullable, required
    - `capaFileId` string, nullable, required
    - `status` string, required
    - `percentage` number, required
    - `workflows` string[], required
    - `finishedWorkflows` string[], required
    - `metadata` object, required
    - `createdAt` string, date-time, required
    - `updatedAt` string, date-time, nullable, required

## Changes

> 22 revisions in range; 1 not diffed.

- **2026-08-31** `97e51f27dc77` — 3 breaking, 3 info
  - the response property `data/auditFileId` became nullable for the status `201`
  - the response property `data/capaFileId` became nullable for the status `201`
  - the response property `data/updatedAt` became nullable for the status `201`
  - response property `data/auditFileId` list-of-types was narrowed by removing types `null` from media type `application/json` of response `201`
  - …2 more

[Change history](https://skmtc.dev/retraced/apis/api-reference/changes/api/capa/process/post.md)

---

[API](https://skmtc.dev/retraced/apis/api-reference.md) · [All operations](https://skmtc.dev/retraced/apis/api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/retraced/api-reference/revisions/97e51f27dc77/schema)
