Create an operation that uses an ID as a path parameter and accepts a JSON request body containing a loan application.
Procedure
- Click the + button in the left panel and click Operation.
-
Enter the following information in the GENERAL
section:
Field Value Name Update a loan application Method PUT Path /applications/{loanId} Description Update an existing loan application. - Scroll down to the REQUEST section and click Add next to BODY.
- Under TYPE, click object to show the data types available, and select Application.
- Scroll down to the RESPONSES section and click Add.
- Select 201 - Created in the Status code field.
- Click Use a component next to RESPONSES.
- Select 4XX - Default in the Status code field and select Error in the Name field, then click OK.
- Click Save.