To configure a find and modify users flow:
- Click the Create Flow icon associated with finding and modifying simple users.
The API Orchestration user interface is displayed. - Select and pull a Set Context flow-node onto the flow editor from the Core list. Note that the Start flow-node is automatically connected to the input of the Set Context flow-node.
- Name the flow-node: Build args parameter (new)
- Select Parameters.
- For the value parameter, select selector and select
$.params.new
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. - Select Outputs.
- Configure the next output. As you begin typing in the next field, a drop-down menu of valid or previously used output options is displayed. You may optionally choose an output from the list, or continue typing to manually configure the parameter.
- Select and pull a Set Context flow-node onto the flow editor from the Core list.
- Name the flow-node: Build args parameter (upsert)
- Select Parameters.
- For the value parameter, select selector and select
$.params.upsert
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. - Select Outputs.
- Configure the next output. As you begin typing in the next field, a drop-down menu of valid or previously used output options is displayed. You may optionally choose an output from the list, or continue typing to manually configure the parameter.
- Connect the next output of the Build args parameter (new) flow-node to the input of the Build args parameter (upsert) flow-node. For additional information on connecting flow-nodes in a flow, refer to Manage Nodes.
- Select and pull the simpleusers flow-node onto the flow editor from the Models list.
- Name the flow-node: Find and modify users
- Select the
findAndModify
method. - Select Parameters.
- Configure the data parameter. If selector is selected from the selector drop-down menu, as you begin typing in the data 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 flow-node and General flow-node configuration parameters, refer to Flow Orchestration.
- Enable the additional parameters and configure them according to the
findAndModify
parameters listed in Flow Orchestration. - Select Outputs.
- Configure the next output. As you begin typing in the next field, a drop-down menu of valid or previously used output options is displayed. You may optionally choose an output from the list, or continue typing to manually configure the parameter.
- Configure the notfound output. As you begin typing in the notfound field, a drop-down menu of valid or previously used output options is displayed. You may optionally choose an output from the list, or continue typing to manually configure the parameter.
- Connect the next output of the Build args parameter (upsert) to the input of the Find and modify users flow-node. For additional information on connecting flow-nodes in a flow, refer to Manage Nodes.
- Select and pull an HTTP flow-node onto the flow editor from the Core list.
- Name the flow-node: Find and modify succeeded
- Select Parameters.
- For the status parameter, select number and enter
204
in the field. - Leave the body and headers parameters disabled.
- Connect the next output of the Find and modify users flow-node to the input of the Find and modify succeeded flow-node. For additional information on connecting flow-nodes in a flow, refer to Manage Nodes.
- Select and pull an HTTP flow-node onto the flow editor from the Core list.
- Name the flow-node: Users not found
- Select Parameters.
- For the status parameter, select number and enter
404
in the field. - Leave the body and headers parameters disabled.
- Connect the notfound output of the Find and modify users flow-node
to the input of the Users not found flow-node. For additional information
on connecting flow-nodes in a flow, refer to Manage Nodes. The completed flow is displayed.
- Click Save.
- On the next screen, click Proceed. The server will be restarted and the Find and modify users flow will be saved and enabled.