To create 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 node onto the flow editor from the Core list. Note that the Start node is automatically connected to the input of the Set Context node.
- Name the node: Build args parameter (new)
- Select Parameters.
- For the value parameter, select Selector and enter
$.params.new
in the field. - Select Outputs.
- For the next output, enter
$.params.args.new
in the field. - Select and pull a Set Context node onto the flow editor from the Core list.
- Name the node: Build args parameter (upsert)
- Select Parameters.
- For the value parameter, select Selector and enter
$.params.upsert
in the field. - Select Outputs.
- For the next output, enter
$.params.args.upsert
in the field. - Connect the next output of the Build args parameter (new) node to the input of the Build args parameter (upsert) node. For additional information on connecting nodes in a flow, refer to Manage Nodes.
- Select and pull the simpleusers node onto the flow editor from the Models list.
- Name the node: Find and modify users
- Select the
findAndModify
method. - Select Parameters.
- Configure the data parameter according to the
findAndModify
parameters listed in Flow Orchestration. - Enable the additional parameters and configure them according to the
findAndModify
parameters listed in Flow Orchestration. - Select Outputs.
- Configure the outputs per the
findAndModify
outputs in listed in Flow Orchestration. - Connect the next output of the Build args parameter (upsert) to the input of the Find and modify users node. For additional information on connecting nodes in a flow, refer to Manage Nodes.
- Select and pull an HTTP node onto the flow editor from the Core list.
- Name the 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 node to the input of the Find and modify succeeded node. For additional information on connecting nodes in a flow, refer to Manage Nodes.
- Select and pull an HTTP node onto the flow editor from the Core list.
- Name the 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 node to the input of the Users not found node. For additional information on connecting 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.