Create a style rule list
Changed onCreate a style rule list for a single language, optionally with its configured rules and custom instructions. The language can be a root code such as de or a variant code such as de-CH. Use the returned style_id with the translation endpoints to apply the list.
Request
- Base URLhttps://api.deepl.com
- URLhttps://api.deepl.com/v3/style_rules
- AuthAPI key in header Authorization
Request body
Example request
{
"configured_rules": {
"style_and_tone": {
"abbreviations": "use_abbreviations_and_symbols",
"short_vs_long_words": "use_short_words"
},
"punctuation": {
"apostrophe": "use_curly_apostrophes"
}
}
}Response
Style rule list created successfully
Example response
{
"style_id": "bd0a38f3-1831-440b-a8dd-2c702e2325ab",
"version": 13,
"configured_rules": {
"style_and_tone": {
"abbreviations": "use_abbreviations_and_symbols",
"short_vs_long_words": "use_short_words"
},
"punctuation": {
"apostrophe": "use_curly_apostrophes"
}
},
"custom_instructions": [
{
"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"
}
]
}Changes
- warning
added the new
arenum value to theresponse property for the response status - warning
added the new
bgenum value to theresponse property for the response status - warning
added the new
csenum value to theresponse property for the response status - warning
added the new
daenum value to theresponse property for the response status - warning
added the new
de-CHenum value to theresponse property for the response status - warning
added the new
de-DEenum value to theresponse property for the response status - warning
added the new
elenum value to theresponse property for the response status - warning
added the new
en-GBenum value to theresponse property for the response status - warning
added the new
en-USenum value to theresponse property for the response status - warning
added the new
es-419enum value to theresponse property for the response status - warning
added the new
es-ESenum value to theresponse property for the response status - warning
added the new
etenum value to theresponse property for the response status - warning
added the new
fienum value to theresponse property for the response status - warning
added the new
fr-CAenum value to theresponse property for the response status - warning
added the new
fr-FRenum value to theresponse property for the response status - warning
added the new
heenum value to theresponse property for the response status - warning
added the new
huenum value to theresponse property for the response status - warning
added the new
idenum value to theresponse property for the response status - warning
added the new
ltenum value to theresponse property for the response status - warning
added the new
lvenum value to theresponse property for the response status - warning
added the new
nbenum value to theresponse property for the response status - warning
added the new
nlenum value to theresponse property for the response status - warning
added the new
plenum value to theresponse property for the response status - warning
added the new
ptenum value to theresponse property for the response status - warning
added the new
pt-BRenum value to theresponse property for the response status - warning
added the new
pt-PTenum value to theresponse property for the response status - warning
added the new
roenum value to theresponse property for the response status - warning
added the new
ruenum value to theresponse property for the response status - warning
added the new
skenum value to theresponse property for the response status - warning
added the new
slenum value to theresponse property for the response status - warning
added the new
svenum value to theresponse property for the response status - warning
added the new
thenum value to theresponse property for the response status - warning
added the new
trenum value to theresponse property for the response status - warning
added the new
ukenum value to theresponse property for the response status - warning
added the new
vienum value to theresponse property for the response status - warning
added the new
zh-Hansenum value to theresponse property for the response status - warning
added the new
zh-Hantenum value to theresponse property for the response status - info
added the new
arenum value to the request property - info
added the new
bgenum value to the request property - info
added the new
csenum value to the request property - info
added the new
daenum value to the request property - info
added the new
de-CHenum value to the request property - info
added the new
de-DEenum value to the request property - info
added the new
elenum value to the request property - info
added the new
en-GBenum value to the request property - info
added the new
en-USenum value to the request property - info
added the new
es-419enum value to the request property - info
added the new
es-ESenum value to the request property - info
added the new
etenum value to the request property - info
added the new
fienum value to the request property - info
added the new
fr-CAenum value to the request property - info
added the new
fr-FRenum value to the request property - info
added the new
heenum value to the request property - info
added the new
huenum value to the request property - info
added the new
idenum value to the request property - info
added the new
ltenum value to the request property - info
added the new
lvenum value to the request property - info
added the new
nbenum value to the request property - info
added the new
nlenum value to the request property - info
added the new
plenum value to the request property - info
added the new
ptenum value to the request property - info
added the new
pt-BRenum value to the request property - info
added the new
pt-PTenum value to the request property - info
added the new
roenum value to the request property - info
added the new
ruenum value to the request property - info
added the new
skenum value to the request property - info
added the new
slenum value to the request property - info
added the new
svenum value to the request property - info
added the new
thenum value to the request property - info
added the new
trenum value to the request property - info
added the new
ukenum value to the request property - info
added the new
vienum value to the request property - info
added the new
zh-Hansenum value to the request property - info
added the new
zh-Hantenum value to the request property - info
added the media type
application/jsonfor the response with the status - info
added the media type
application/jsonfor the response with the status
- warning