I have a resource that can be updated in two different ways. I will try to explain using an example.
Lets say that each
Person is assigned a
Task. So to update the task, I have
and I send the task details in the body.
Now I need another endpoint to update the task assigned to a person. This endpoint will take a list of tasks, and will choose the best task for the person. How should the endpoint for this look like? To me it seems should be the same as above, but since the endpoint cannot take two different request bodies, I am at a loss.