Appearance
Deploy a new version
OpenAPI specificationspost https://api.autopass.pro/rules-api/tables/{table_id}/rules
Deploy a new version of a given decision table
Path parameters
id- Type:
integer
Query parameters
active- Type:
boolean - Default:
true
Indique si la version déployée doit être activée immédiatement. Mettre à `false` si vous ne souhaitez pas activer automatiquement cette version après le déploiement.
Request body
Schema
| Attribute | Type | Example |
|---|---|---|
nameRequired | string | BEG_NORAUTO__WIPERS_NORAUTO |
descriptionRequired | string | Données extraites de la feuille BEG Norauto Wipers Norauto |
family_id | integer | 414 |
rule_type_id | integer | 1 |
conditionsRequired | array | [ { "name": "brand", "type_ref": "string" }, { "name": "brand code", "type_ref": "string" }, { "name": "ean", "type_ref": "string" }, { "name": "label", "type_ref": "string" }, { "name": "reference", "type_ref": "string" } ] |
conditions.item | object | |
conditions.item.name | string | brand |
conditions.item.type_ref | string | string |
consequencesRequired | array | [ { "name": "brand", "type_ref": "string" }, { "name": "brand code", "type_ref": "string" }, { "name": "ean", "type_ref": "string" }, { "name": "label", "type_ref": "string" }, { "name": "reference", "type_ref": "string" } ] |
consequences.item | object | |
consequences.item.name | string | brand |
consequences.item.type_ref | string | string |
rulesRequired | array | |
rules.item | object | |
rules.item.rule_id | string | |
rules.item.inputs | array | [ "BOSCH", "-", "3165141087529", "-", "3397118505" ] |
rules.item.inputs.item | string | |
rules.item.outputs | array | [ "NORAUTO", "2134882", "3501361157947", "35 KIT BEG NORAUTO SUP5-CLIO", "BEG35NEW" ] |
rules.item.outputs.item | string | |
rules.item.annotation | string | commentaire de la règle |
comment | string | commentaire de la version |
Example
{
"name": "BEG_NORAUTO__WIPERS_NORAUTO",
"description": "Données extraites de la feuille BEG Norauto Wipers Norauto",
"family_id": 414,
"rule_type_id": 1,
"conditions": [
{
"name": "brand",
"type_ref": "string"
},
{
"name": "brand code",
"type_ref": "string"
},
{
"name": "ean",
"type_ref": "string"
},
{
"name": "label",
"type_ref": "string"
},
{
"name": "reference",
"type_ref": "string"
}
],
"consequences": [
{
"name": "brand",
"type_ref": "string"
},
{
"name": "brand code",
"type_ref": "string"
},
{
"name": "ean",
"type_ref": "string"
},
{
"name": "label",
"type_ref": "string"
},
{
"name": "reference",
"type_ref": "string"
}
],
"rules": [
{
"rule_id": "",
"inputs": [
"BOSCH",
"-",
"3165141087529",
"-",
"3397118505"
],
"outputs": [
"NORAUTO",
"2134882",
"3501361157947",
"35 KIT BEG NORAUTO SUP5-CLIO",
"BEG35NEW"
],
"annotation": "commentaire de la règle"
}
],
"comment": "commentaire de la version"
}