---
title: "Update configuration of AI models for this org (ChartHop staff only)"
method: PATCH
path: "/v1/org/{orgId}/ai/config"
tags: ["ai"]
---

# Update configuration of AI models for this org (ChartHop staff only)

`PATCH /v1/org/{orgId}/ai/config`

## Path parameters

- `orgId` string, required

## Request body

- UpdateAiConfig
  - `prompts` AiPromptConfig[] — list of configured prompts for various use cases
    - `type` 'AUTO_CHAT' | 'CHAT' | 'CHAT_SHOULD_RESPOND' | 'CHAT_SUMMARY' | 'FORM_RESPONSE_SUMMARY' | 'REPORT_RESULT_SUMMARY' | 'SCENARIO_PLANNING' | 'CQL' | 'CQL_TRANSLATE' | 'PROMPT_SUGGEST' | 'JOB_CODE_MATCH', required
    - `aiPromptId` string, required
    - `userId` string

## Response `200`

successful operation

## Other responses

- `400` — invalid data
- `401` — not authorized
- `403` — permission denied
- `404` — not found

---

[API](https://skmtc.net/charthop/apis/charthop-api.md) · [All operations](https://skmtc.net/charthop/apis/charthop-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/charthop/charthop-api/versions/50a1edd6b27e/schema)
