Skip to main content
PUT
Update an approval policy

Authorizations

Authorization
string
header
required

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

Path Parameters

id
string
required

Unique identifier of the approval policy (UUID)

Minimum string length: 1

Body

application/json
actionFamily
enum<string> | null
Available options:
RESTOCK_PLAN,
REBALANCE_PLAN,
MARKDOWN_PLAN,
PRE_SEASON_PLAN,
RECOMMENDATION,
WORKFLOW,
SUPPLIER_RETURN_PLAN,
SUPPLIER_EXCHANGE_PLAN
name
string
Required string length: 1 - 255
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>
Available options:
PLAN_TOTAL_VALUE,
PLAN_TOTAL_QUANTITY,
VARIANT_QUANTITY,
SHOP_QUANTITY
thresholdValue
number
Required range: x >= 0

Response

Successful response

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