In the RESTful API, the URL must define the transaction object, and the verb is the action.
So GET /items should return all items.
GET /items/1 should return an element with identifier 1.
It follows that multiple identifiers should be part of the resource definition (url). So GET /items/1,2,3 should return 3 matching elements.
Therefore, to apply a partial update to many identifiers:
[PATCH] /items/1,2,3
Then, in the PATCH or PUT body, you can provide updated information (provided that you send the JSON body).
{"updateField": "newValue"}
source share