Archive users
POST
/api/v2/users/delete/{id1},{id2},…Archive up to 50 usersOnly administrators can use this endpoint. This is a soft delete: archived users appear in the People Bin. Already archived users are skipped.
Optionally send p_to_uid to reassign work to another active user in the same company. Users cannot archive themselves or be their own replacement.
curl -X POST \
-H 'Authorization: bearer YourTokenHere' \
-H 'Content-Type: application/x-www-form-urlencoded' \
--data 'p_to_uid=6' \
'https://app.celoxis.com/psa/api/v2/users/delete/1,2,3'