Security
OAuth2(Required scopes: routings.write)
- API EUhttps://api.cloud.hypatos.ai/v2/routings/{id}
- API UShttps://api.cloud.hypatos.com/v2/routings/{id}
- Mock serverhttps://hypatos.redocly.app/_mock/openapi/routings/{id}
curl -i -X PUT \
'https://api.cloud.hypatos.ai/v2/routings/{id}' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"name": "Document routing name",
"fromProjectId": "63e6663823b4c1f5287398bb",
"toProjectId": "63e6663823b4c1f5287398bb",
"postRoutingAction": "reprocess",
"active": true,
"routingNode": {
"evaluation": {
"type": "schema",
"operator": "contains",
"evaluateWithValue": "string",
"evaluateIfMissing": true,
"dataPointPath": [
"string"
]
},
"edges": []
},
"routingAction": {
"type": "move",
"postMoveAction": "reprocess"
},
"modifiedBy": "671f771235cd520084dd655f"
}'Successful Response
Example:"263e6663823b4c1f5287398bb"
toProjectIdstring(Identifier of a project where documents will be moved to if routings evaluation passes)required
Example:"263e6663823b4c1f5287398bb"
Defines the action to be executed for the routed document in the target project.
Default:"reprocess"
Enum:"none""refresh""reprocess""merge"
Example:"reprocess"
Response
{ "name": "Document routing name", "fromProjectId": "263e6663823b4c1f5287398bb", "toProjectId": "263e6663823b4c1f5287398bb", "postRoutingAction": "reprocess", "active": true, "routingNode": { "evaluation": { … }, "edges": [] }, "id": "63e6663823b4c1f5287398bb", "modifiedAt": "2023-02-10T15:46:19.384990Z", "modifiedBy": "671f771235cd520084dd655f", "createdBy": "671f771235cd520084dd655f", "createdAt": "2023-02-10T15:46:19.384990Z", "order": 0, "routingAction": { "type": "move", "postMoveAction": "reprocess" } }