---
title: "Create a custom instruction"
method: POST
path: "/v3/style_rules/{style_id}/custom_instructions"
---

# Create a custom instruction

`POST /v3/style_rules/{style_id}/custom_instructions`

## Path parameters

- `style_id` string, required

## Request body

- object
  - `label` string, required — Label for the custom instruction
  - `prompt` string, required — Instruction text
  - `source_language` string — Optional source language code

## Response `201`

Custom instruction created successfully

- CustomInstruction — All enabled custom instructions for the style rule list
  - `id` string, required — Unique identifier for the custom instruction
  - `label` string, required — Name associated with the custom instruction
  - `prompt` string, required — Prompt of the custom instruction
  - `source_language` string — Optional source language of the custom instruction

## Other responses

- `400` — Bad request. Please check error message and your parameters.
- `401` — Authorization failed. Please supply a valid `DeepL-Auth-Key` via the `Authorization` header.
- `403` — Authorization failed. Please supply a valid `DeepL-Auth-Key` via the `Authorization` header. This error is also returned when the API key is scoped but does not include the scope required for this endpoint.
- `404` — The requested resource could not be found.
- `429` — Too many requests. Please wait and resend your request.
- `456` — Quota exceeded. The character limit has been reached.
- `500` — Internal error.
- `503` — Resource currently unavailable. Try again later.

---

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