I have a resource (project) which can be activated and deactivated. What\'s the most RESTful URL endpoint for this purpose?
project
Right now I\'m thinking abou
Your can send your requests just to projects/{id} and use PATCH (as you're updating existing object) verb, e.g.
projects/{id}
PATCH
PATCH /projects/123 [ { "op": "activate|deactivate", ... } ]
Read more: REST API - PUT vs PATCH with real life examples