Skip to main content
PATCH

Authorizations

Authorization
string
header
required

Body

application/json
developerId
string
required

Developer ID of the style guide to update. Use 'default' to update the built-in Ditto Style Guide's enabled-by-default setting.

Minimum string length: 1
name
string

New name for the style guide. If not provided, name remains unchanged.

Minimum string length: 1
description
string

New description for the style guide. If not provided, description remains unchanged.

Minimum string length: 1
enabledByDefault
boolean

Whether this style guide is enabled by default for all projects.

sections
object[]

Full replacement list of sections. Each section's sectionId must be unique within the style guide. Must include at least one 'rules' section and one 'wordlist' section. Rules belonging to a removed section are automatically moved to the first remaining rules section.

Response

Returns success status of the update operation

success
boolean
required

Indicates whether the update was successful