Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Image attachment issue showing up in Zoomin docs (attempt at a fix)

To configure a upsert (update or insert) a user flow:

  1. Click the Create Flow Image Removed icon Image Added icon associated with updating or inserting a simple user.
    The API Orchestration user interface is displayed.
  2. Select and pull the simpleusers node onto the flow editor from the Models list. Note that the Start node is automatically connected to the input of the simpleusers node.
  3. Name the node: Upsert a user
  4. Select the upsert method.
  5. Select Parameters.
  6. Configure the value parameter. If selector is selected from the selector drop-down menu, as you begin typing in the value parameter field, a drop-down menu of valid or previously used selector options is displayed. You may optionally choose a selector from the list, or continue typing to manually configure the parameter. For additional selector auto complete information, refer to Manage Nodes. For additional information on the Model node and General node configuration parameters, refer to Flow Orchestration.
  7. Select Outputs.
  8. Configure the update output. As you begin typing in the update field, a drop-down menu of valid or previously used output options is displayed. You may optionally choose a output from the list, or continue typing to manually configure the parameter.
  9. Configure the upsert output. As you begin typing in the upsert field, a drop-down menu of valid or previously used output options is displayed. You may optionally choose a output from the list, or continue typing to manually configure the parameter.
  10. Select and pull a Set Context node onto the flow editor from the Core list.
  11. Name the node: Set location
  12. Select Parameters.
  13. For the value parameter, select selector and select $.model.id from the selector options drop-down menu or continue typing to manually complete the selector configuration. For additional selector auto-complete information, refer to Manage Nodes.
  14. Connect the insert output of the Upsert a user node to the input of the Set location node. For additional information on connecting nodes in a flow, refer to Manage nodes.
  15. Select and pull an HTTP node onto the flow editor from the Core list.
  16. Name the node: Upsert succeeded
  17. Select Parameters.
  18. For the status parameter, select number and enter 204 in the field.
  19. Leave the body and headers parameters disabled.
  20. Connect the update output of the Upsert a user node to the input of the Upsert succeeded node. For additional information on connecting nodes in a flow, refer to Manage nodes.
  21. Select and pull an HTTP node onto the flow editor from the Core list.
  22. Name the node: Insert succeeded
  23. Select Parameters.
  24. For the status parameter, select number and enter 404 in the field.
  25. Leave the body parameter disabled.
  26. Enable the headers parameter, select selector, and select $.headers from the selector options drop-down menu or continue typing to manually complete the selector configuration. For additional selector auto-complete information, refer to Manage Nodes.
  27. Connect the insert output of the Upsert a user node to the input of the Insert succeeded node. For additional information on connecting nodes in a flow, refer to Manage nodes.
  28. Connect the next output of the Set location node to the input of the Insert succeeded node. For additional information on connecting nodes in a flow, refer to Manage nodes. The completed flow is displayed.
  29. Click Save.
  30. On the next screen, click Proceed. The server will be restarted and the Upsert a user flow will be saved and enabled.