dkprado | 2018-07-11 18:47:56 UTC | #1
Hi there. What would be the API endpoint, and the required body information, to set a user state to "inactive"? I've tried the PATCH /api/v2/users/<userid> method, with the new state in the body, but it results in bad.request.
Thanks!
tim.smith | 2018-07-11 18:58:15 UTC | #2
You can use PATCH /api/v2/users/{userId} and include the version and state properties in the body. Or you can use DELETE /api/v2/users/{userId} to delete them instead of set to inactive.
dkprado | 2018-07-11 18:59:41 UTC | #3
Thanks Tim. I was missing the version parameter.
This 'DELETE' operation is just a soft-delete, correct?
tim.smith | 2018-07-11 19:00:07 UTC | #4
Yes, the state becomes "deleted".
system | 2018-08-11 19:00:10 UTC | #5
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.
This post was migrated from the old Developer Forum.
ref: 3161