Skip to main content
POST
Create a new approval policy for the authenticated organization

Authorizations

Authorization
string
header
required

User session token issued by NextAuth. For human users accessing Solya via the web application.

Body

application/json
actionFamily
enum<string> | null
required
Available options:
RESTOCK_PLAN,
REBALANCE_PLAN,
MARKDOWN_PLAN,
PRE_SEASON_PLAN,
RECOMMENDATION,
WORKFLOW,
SUPPLIER_RETURN_PLAN,
SUPPLIER_EXCHANGE_PLAN
name
string
required
Required string length: 1 - 255
thresholdValue
number
required
Required range: x >= 0
scopeActorTypes
enum<string>[]
Available options:
USER,
WORKFLOW,
SCENARIO_GENERATOR,
SYSTEM,
API_TOKEN
scopeBrandIds
string[]
Minimum string length: 1
scopeCollections
string[]
Minimum string length: 1
scopeShopIds
string[]
Minimum string length: 1
scopeSupplierIds
string[]
Minimum string length: 1
scopeWorkflowIds
string[]
Minimum string length: 1
thresholdMetric
enum<string>
default:PLAN_TOTAL_VALUE
Available options:
PLAN_TOTAL_VALUE,
PLAN_TOTAL_QUANTITY,
VARIANT_QUANTITY,
SHOP_QUANTITY

Response

Successful response

data
object
required
success
enum<boolean>
required
Available options:
true