Hi, i want to use API to change users with this :
Saves the user / operator profile felds. Only the basic fields (full name, login name, e-mail) and custom fields can be saved with this operation. Addresses, phones and images must be managed either via the full profile (GET /users/{user}/data-for-edit-profile / PUT /users/{user}/profile) or through their own paths.
But i have the following answer from the server :
{
"code": "staleEntity"
}
Do you know what it means ? I don't know and i don't know how to resolve this ?
Thanks !
Regards,
error with PUT users
Moderators: alexandre, hugo, rmvanarkel
-
jakob.schumann
- Posts: 63
- Joined: Thu Apr 23, 2020 5:37 pm
Re: error with PUT users
In viewtopic.php?t=2376 it says for "staleEntity":
Best regards,
JS
Maybe this can give you a hint on what is going wrong. Like other requests updating the user before your PUT request does. Or maybe the version field is required and must be the same as the current user version or must be incremented in the PUT data."MOBILE.GENERAL.error.staleEntity": "The data you are saving has been modified by another user or process. Please, reload the page and try again.",
Best regards,
JS
Re: error with PUT users
The process is same as mentioned in your other thread of `POST user error`
i.e.,
You will have call the Edit For Profile `GET /users/{user}/data-for-edit`, replace your custom values in that response object, and then call `PUT /users/{user}` to update.
i.e.,
You will have call the Edit For Profile `GET /users/{user}/data-for-edit`, replace your custom values in that response object, and then call `PUT /users/{user}` to update.