I'm designing RESTful API for small project.
In my service, There are Group and User.
When some User want to get in the group, User can apply to Group. In database, Apply row is created with status column value "WAITING", so I use POST for application to group.
Then owner of Group who created Group can either approve or reject.
When User is approved, Apply row's status value will be updated to "APPROVED" and Member row is created. (Member table represents members of some Group).
In this case, which http method used for approving application to study? PUT or POST?
In my knowledge, Since Member row is created by approval, POST seems to be suitable.
But, since Apply row's value is updated at the same time, PUT might be good enough.
Which http method is appropriate for this case?