---
title: "generateIACCode"
method: POST
path: "/cases/{caseId}/iac"
tags: ["case-iac-endpoint"]
---

# generateIACCode

`POST /cases/{caseId}/iac`

generates a new IAC code by calling the IAC service and then creating an audit event.

## Path parameters

- `caseId` string, required

## Response `200`

OK

- CaseIACDTO
  - `iac` string

## Other responses

- `201` — Created
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found

---

[API](https://skmtc.net/office-of-national-statistics/apis/case-service-api.md) · [All operations](https://skmtc.net/office-of-national-statistics/apis/case-service-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/office-of-national-statistics/case-service-api/revisions/dcc0c657a75b/schema)
