Skip to content

Update document routing

Request

Security
OAuth2(Required scopes: routings.write)
Path
idstring(Routing identifier)required
Bodyapplication/jsonrequired
namestring, [ 1 .. 200 ] characters(Routing name)required
Example:"Document routing name"
fromProjectIdstring(Identifier of a project where routings evaluation will happen)required
Example:"63e6663823b4c1f5287398bb"
toProjectIdstring(Identifier of a project where documents will be moved to if routings evaluation passes)required
Example:"63e6663823b4c1f5287398bb"
postRoutingActionstring(Action done after document is routed)

Deprecated, use routingAction instead

Default:"reprocess"
Enum:"none""refresh""reprocess""merge"
activeboolean(Only active routings will be evaluated)required
Example:true
routingNodeobject(Routing node evaluation definition)required
routingActionany(RoutingAction)required
modifiedBystring(Routing modifier)
Example:"671f771235cd520084dd655f"
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"
  }'

Responses

Successful Response

Bodyapplication/json
namestring, [ 1 .. 200 ] characters(Routing name)required
Example:"Document routing name"
fromProjectIdstring(Identifier of a project where routings evaluation will happen)required
Example:"263e6663823b4c1f5287398bb"
toProjectIdstring(Identifier of a project where documents will be moved to if routings evaluation passes)required
Example:"263e6663823b4c1f5287398bb"
postRoutingActionstring(Action done after document is routed)

Defines the action to be executed for the routed document in the target project.

Default:"reprocess"
Enum:"none""refresh""reprocess""merge"
Example:"reprocess"
activeboolean(Only active routings will be evaluated)required
Example:true
routingNodeobject(Routing node evaluation definition)required
idstring(Routing identifier)required
Example:"63e6663823b4c1f5287398bb"
modifiedAtstring(Routing last modification date)
Example:"2023-02-10T15:46:19.384990Z"
modifiedBystring(Routing last modification by)
Example:"671f771235cd520084dd655f"
createdBystring(Routing last creation by)
Example:"671f771235cd520084dd655f"
createdAtstring(Routing last creation date)
Example:"2023-02-10T15:46:19.384990Z"
orderinteger(Routing order)required
Example:0
routingActionany(RoutingAction)required
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" } }