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

# generateIACCode

`POST /cases/{caseId}/iac`

## Request

- Base URL: `https://localhost:8171`
- URL: `https://localhost:8171/cases/{caseId}/iac`
- Auth: none declared

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.dev/office-of-national-statistics/apis/case-service-api.md) - [All operations](https://skmtc.dev/office-of-national-statistics/apis/case-service-api/llms.txt) - [OpenAPI document](https://skmtc.dev/office-of-national-statistics/apis/case-service-api/revisions/6523753b5522?raw)
