Skip to main content
POST
Create a style rule list

Authorizations

Authorization
string
header
default:DeepL-Auth-Key
required

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

Body

application/json
name
string
required

Name associated with the style rule list.

language
enum<string>
required

The language that the style rule list is applied to.

Available options:
de,
en,
es,
fr,
it,
ja,
ko,
zh
configured_rules
object

The enabled rules for the style rule list including what option was selected for each rule. This schema combines rules from all supported languages.

Example:
custom_instructions
object[]

Array of custom instruction objects

Maximum array length: 200

Response

Style rule list created successfully

style_id
string
required

A unique ID assigned to a style rule list.

Example:

"bd0a38f3-1831-440b-a8dd-2c702e2325ab"

name
string
required

Name associated with the style rule list.

creation_time
string<date-time>
required

The creation time of the style rule list in the ISO 8601-1:2019 format (e.g.: 2021-08-03T14:16:18.329Z).

updated_time
string<date-time>
required

The time of the style rule list when it was last updated in the ISO 8601-1:2019 format (e.g.: 2022-08-03T14:16:18.329Z).

language
enum<string>
required

The language that the style rule list is applied to.

Available options:
de,
en,
es,
fr,
it,
ja,
ko,
zh
version
integer
required

The version of the style rule list. Incremented when the style rule list is updated.

Example:

13

configured_rules
object

The enabled rules for the style rule list including what option was selected for each rule. This schema combines rules from all supported languages.

Example:
custom_instructions
object[]

List of custom instructions enabled for the style rule list.