Task 1: Implement the API route for updating category data, allowing changes to the category name.
Task 2: Validate and process the request payload.
Task 3: Update the category name in the database.
Task 4: Return a response with the updated category data.
Task 1: Implement the API route for updating category data, allowing changes to the category name. Task 2: Validate and process the request payload. Task 3: Update the category name in the database. Task 4: Return a response with the updated category data.