Skip to content

Reorder brand rules

PUT
/api/v1/brand/rules/order
curl --request PUT \
--url http://localhost:3000/api/v1/brand/rules/order \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "keys": [ "example" ] }'

Rules appear in this order within their section. A key’s context versions move with it.

Scope: write.

brand
string

A brand’s slug

Media typeapplication/json
object
keys
required

Keys in the order they should appear; usually one section’s

Array<string>
>= 1 items <= 500 items
Examplegenerated
{
"keys": [
"example"
]
}

Done

Media typeapplication/json
object
data
required
object
ok
required
boolean
Example
{
"data": {
"ok": true
}
}

An error

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
detail
Examplegenerated
{
"error": {
"code": "example",
"message": "example",
"detail": "example"
}
}