Learn how to update user content Language via the User API.
In this article, we’ll look at how to update user content Language via the User API .
You have invited a large number of users to the Staffbase platform and want to update their content language, for example, to Dutch. In this case, you can bulk update the language locale for these users to set their content language to Dutch.
Learn more about our languages and locale codes.
externalID
or id
of the users’ profiles you want to update.Make a PUT
request to the endpoint /users/{userID}
and in the request body schema, set the locale parameter to nl_NL
, the locale code for Dutch.
You have updated the content language setting for a user. To bulk update the content language for multiple users, add a function to loop through all users to perform your requests.