Peter_Berkel | 2020-08-06 08:09:43 UTC | #1
Hello,
We would like to update the user details by api for synchronisation purposes. As long as I add the state to the body, any other field won't be updated.
Example:
{ "state": "inactive", "name": "Peter", "department": "## - ##", "title": "Online Markteer", "email": "peter.berkel@rrs.nl", "version": 160, "locations": [ { "id": "b3a6d678-4202-409d-9552-64dea54b5f04" } ] }
Results in an inactive user without updated name, department, title ,etc. When I excute the request without updating the state, everything works fine.
Do we need to update the user state in a seperate request?
Kind regards, Peter Berkel
Jerome.Saint-Marc | 2020-08-06 14:35:53 UTC | #2
Hello,
You will need to update the user state in a separate request. I mean one for the details, and one for the state.
The Patch/Update User request here mentions the following constraint for the state attribute: "The state of the user. This property can be used to restore a deleted user or transition between active and inactive. *If specified, it is the only modifiable field.*"
Regards,
system | 2020-09-06 14:44:08 UTC | #3
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: 8494