Skip to main content
POST
/
admin
/
configuration
Create a configuration rule
curl --request POST \
  --url https://api.example.com/admin/configuration \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "rule_type": "global_product_catalog",
  "is_enabled": true
}
'
{
  "configuration_rule": {
    "id": "<string>",
    "rule_type": "<string>",
    "is_enabled": true
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
rule_type
enum<string>

The type of the rule

Available options:
global_product_catalog,
require_product_approval,
product_request_enabled,
product_import_enabled
is_enabled
boolean

Response

201 - application/json

Created

configuration_rule
Configuration rule · object

A configuration rule object