curl -i -X GET \ https://app.leadconduit.com/routers
[- {
- "id": "string",
- "module_id": "string",
- "routes": [
- {
- "id": "string",
- "flow_id": "string",
- "source_id": "string",
- "rule_set": {
- "id": "string",
- "op": "and",
- "rules": [
- {
- "id": "string",
- "lhv": "lead.state",
- "op": "is equal to",
- "rhv": "TX",
- "rule_set": { }
}
]
}
}
], - "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
]
Create a new custom router, adding it to the list of all routers in the account.
Created
{- "routes": [
- {
- "id": "string",
- "rule_set": {
- "id": "string",
- "op": "and",
- "rules": [
- {
- "id": "string",
- "lhv": "lead.state",
- "op": "is equal to",
- "rhv": "TX",
- "rule_set": { }
}
]
}
}
], - "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
[- {
- "id": "string",
- "module_id": "string",
- "routes": [
- {
- "id": "string",
- "flow_id": "string",
- "source_id": "string",
- "rule_set": {
- "id": "string",
- "op": "and",
- "rules": [
- {
- "id": "string",
- "lhv": "lead.state",
- "op": "is equal to",
- "rhv": "TX",
- "rule_set": { }
}
]
}
}
], - "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
]
curl -i -X GET \ https://app.leadconduit.com/routers/:id
{- "id": "string",
- "module_id": "string",
- "routes": [
- {
- "id": "string",
- "flow_id": "string",
- "source_id": "string",
- "rule_set": {
- "id": "string",
- "op": "and",
- "rules": [
- {
- "id": "string",
- "lhv": "lead.state",
- "op": "is equal to",
- "rhv": "TX",
- "rule_set": { }
}
]
}
}
], - "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
Update an existing custom router. Standard routers cannot be updated.
OK
{- "routes": [
- {
- "id": "string",
- "rule_set": {
- "id": "string",
- "op": "and",
- "rules": [
- {
- "id": "string",
- "lhv": "lead.state",
- "op": "is equal to",
- "rhv": "TX",
- "rule_set": { }
}
]
}
}
], - "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
[- {
- "id": "string",
- "module_id": "string",
- "routes": [
- {
- "id": "string",
- "flow_id": "string",
- "source_id": "string",
- "rule_set": {
- "id": "string",
- "op": "and",
- "rules": [
- {
- "id": "string",
- "lhv": "lead.state",
- "op": "is equal to",
- "rhv": "TX",
- "rule_set": { }
}
]
}
}
], - "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
]