Reorder brand rules
PUT
/api/v1/brand/rules/order
const url = 'http://localhost:3000/api/v1/brand/rules/order';const options = { method: 'PUT', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"keys":["example"]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”brand
string
A brand’s slug
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
keys
required
Keys in the order they should appear; usually one section’s
Array<string>
Examplegenerated
{ "keys": [ "example" ]}Responses
Section titled “Responses”Done
Media typeapplication/json
object
data
required
object
ok
required
boolean
Example
{ "data": { "ok": true }}default
Section titled “default”An error
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
detail
Examplegenerated
{ "error": { "code": "example", "message": "example", "detail": "example" }}