"Correct
POST /accounts/4402278/close"
bullshit. POST should not contain all details in URL. POST can have body and each query should not be unique. Stopped reading after that.
bullshit. POST should not contain all details in URL. POST can have body and each query should not be unique. Stopped reading after that.
This also gives increased future-proofing, since someday one might have uncloseable accounts; those accounts could still live under /accounts, but would simply have no /close endpoint (as opposed to having /accounts/close, which sometimes works and sometimes doesn't).
PATCH /accounts/4402278
with parameter ACTIVE: 0