2 augustus 2024
- Get list of rule typesGET
- Get rule typeGET
- Get list of rulesGET
- Create rulePOST
- Get rule by idGET
- Update rulePUT
- Delete ruleDELETE
- Get rule actionsGET
- Create rule actionPOST
- Get rule action by idGET
- Update rule actionPUT
- Delete rule actionDELETE
- Get rule conditionsGET
- Create rule conditionPOST
- Get rule condition by idGET
- Update rule conditionPUT
- Delete rule conditionDELETE
Update rule
PUT
https://api.pack.cloud/v1/warehouses/{warehouseId}/rules/{ruleId}
Request
Path parameters
warehouseIdstring
ruleIdstring
Payload
namestring
Example:Always accept return requests
enabledboolean
sortinteger
Response
OK
Body
idstring
ID of the rule
namestring
Name of the rule
Example:Always accept return requests
enabledboolean
sortinteger
typestring
Allowed values:orderreturn_receipt_completedreturn_refund_createreturn_request_gatekeeper
created_atstring
Creation time of resource
updated_atstring
Latest update time of resource
OK
Body
idstring
ID of the rule
namestring
Name of the rule
Example:Always accept return requests
enabledboolean
sortinteger
typestring
Allowed values:orderreturn_receipt_completedreturn_refund_createreturn_request_gatekeeper
created_atstring
Creation time of resource
updated_atstring
Latest update time of resource
OK
Body
idstring
ID of the rule
namestring
Name of the rule
Example:Always accept return requests
enabledboolean
sortinteger
typestring
Allowed values:orderreturn_receipt_completedreturn_refund_createreturn_request_gatekeeper
created_atstring
Creation time of resource
updated_atstring
Latest update time of resource
OK
Body
idstring
ID of the rule
namestring
Name of the rule
Example:Always accept return requests
enabledboolean
sortinteger
typestring
Allowed values:orderreturn_receipt_completedreturn_refund_createreturn_request_gatekeeper
created_atstring
Creation time of resource
updated_atstring
Latest update time of resource
OK
Body
idstring
ID of the rule
namestring
Name of the rule
Example:Always accept return requests
enabledboolean
sortinteger
typestring
Allowed values:orderreturn_receipt_completedreturn_refund_createreturn_request_gatekeeper
created_atstring
Creation time of resource
updated_atstring
Latest update time of resource
OK
Body
idstring
ID of the rule
namestring
Name of the rule
Example:Always accept return requests
enabledboolean
sortinteger
typestring
Allowed values:orderreturn_receipt_completedreturn_refund_createreturn_request_gatekeeper
created_atstring
Creation time of resource
updated_atstring
Latest update time of resource