You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: requests/README.md
+39-3Lines changed: 39 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ The Requests API provides endpoints for creating, fetching, and updating request
7
7
|[GET /requests](#get-requests)| Returns a list of requests with pagination and filtering options. |
8
8
|[POST /requests](#post-requests)| Creates a new request. |
9
9
|[PUT /requests/:id](#put-requestsid)| Updates an existing request. |
10
-
|[PATCH /requests/:id](#patch-requestsid)| Updates an existing request before approval or rejection. |
10
+
|[PATCH /requests/:id](#patch-requestsid)| Updates an existing request before approval or rejection. Also acknowledges (approve or reject) existing request.|
11
11
12
12
### **GET /requests**
13
13
@@ -368,9 +368,10 @@ Updates an existing request with the provided details.
368
368
369
369
### **PATCH /requests/:id**
370
370
371
-
Updates an existing request before approval or rejection with the provided details.
371
+
This endpoint serves dual purposes based on the request type:
372
+
- Updates an existing request before approval or rejection with the provided details. Also acknowledges (approve or reject) existing request with the provided details.
372
373
373
-
- **Description:** Updates an existing request before approval or rejection with the provided details..
374
+
- **Description:** Updates an existing request before approval or rejection with the provided details. Also acknowledges (approve or reject) existing request with the provided details.
0 commit comments