v1

latestOpenAPI 3.0.32026-07-265278189.1 KB

Create a custom instruction

post/v3/style_rules/{style_id}/custom_instructions

Path parameters

style_idstring required

The ID of the style rule list

Request body

labelstring required

Label for the custom instruction

promptstring required

Instruction text

source_languagestring

Optional source language code

Response

Custom instruction created successfully

idstring required

Unique identifier for the custom instruction

labelstring required

Name associated with the custom instruction

promptstring required

Prompt of the custom instruction

source_languagestring

Optional source language of the custom instruction

Example response

{
  "id": "68fdb803-c013-4e67-b62e-1aad0ab519cd",
  "label": "Currency custom instruction",
  "prompt": "Have currency symbols before the numerical value (e.g. $100, €100)",
  "source_language": "en"
}