Skip to main content
PUT
/
v3
/
style_rules
/
{style_id}
/
custom_instructions
/
{instruction_id}
Update a custom instruction
curl --request PUT \
  --url https://api.deepl.com/v3/style_rules/{style_id}/custom_instructions/{instruction_id} \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "label": "<string>",
  "prompt": "<string>",
  "source_language": "<string>"
}
'
{
  "label": "Currency custom instruction",
  "prompt": "Have currency symbols before the numerical value (e.g. $100, €100)",
  "source_language": "en"
}

Authorizations

Authorization
string
header
required

Authentication with Authorization header and DeepL-Auth-Key authentication scheme. Example: DeepL-Auth-Key <api-key>

Path Parameters

style_id
string
required

The ID of the style rule list

instruction_id
string
required

The ID of the custom instruction

Body

application/json
label
string
required

Updated label for the custom instruction

Maximum string length: 100
prompt
string
required

Updated instruction text

Maximum string length: 300
source_language
string

Optional source language code

Response

Custom instruction updated successfully

All enabled custom instructions for the style rule list

label
string

Name associated with the custom instruction

Example:

"Currency custom instruction"

prompt
string

Prompt of the custom instruction

Example:

"Have currency symbols before the numerical value (e.g. $100, €100)"

source_language
string

Optional source language of the custom instruction

Example:

"en"