I am considering two approaches when updating rest api and i am not sure how to choose which approach to follow
For example
GET /service/1000
{
"service_id": 1000,
"name": "Some service"
"status": "ACTIVE"
}
Now If I want to update this service I could do
PUT /service/1000
{
"service_id": 1000,
"name": "Some service"
"status": "INACTIVE"
}
or
POST /service/1000/update-status
{
"status": "INACTIVE"
}
or even
POST /service/1000/activate
{
}
and
POST /service/1000/deactivate
{
}
So my question is what is the rule of thumb to follow when choosing approach how to update REST?
EDIT This question is not about when to use POST/PATCH/PUT, it is about should resource be update calling the same resource, or should it be updated using an action. For example, twitter uses actions https://developer.twitter.com/en/docs/api-reference-index