Open tulbadex opened 3 weeks ago
Refactor our current API endpoint for updating an existing billing plan to have the following route, parameter, and request body.
PUT: /api/v1/billing-plans/{id}
{ "name": "string", "frequency": "Monthly", "is_active": true, "amount": 0, "description": "string" }
Status Code: 200 OK
{ "data": { "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "name": "string", "frequency": "Monthly", "is_active": true, "amount": 0, "description": "string", "created_at": "2024-08-24T14:58:23.617Z", "updated_at": "2024-08-24T14:58:23.617Z" }, "message": "string", "status_code": 0 }
404 Not Found
{ "data": "string", "error": "string", "message": "string", "status_code": 0 }
Description:
Refactor our current API endpoint for updating an existing billing plan to have the following route, parameter, and request body.
Route:
Parameters:
Request Body:
Response Body:
Status Code: 200 OK
Status Code:
404 Not Found