Docs home

Update Student Language

Changes the interface language of one learner in your organization. Use it when an admin needs to switch a learner's app or portal language on their behalf.

POST/admin/user/language
Update Student Language
curl --request POST \
  --url 'https://<your-api-host>/nuSource/api/v1/admin/user/language' \
  --header 'APIKEY: <your-api-key>' \
  --header 'ORGID: <your-org-id>' \
  --form 'JSONString={"user_id":<studentId>,"iso_representation":"en"}'
{
  "code": 200,
  "message": "Language updated successfully!"
}

Access: Institute admins.

Request body: form-data with one field, JSONString, containing this JSON:

BodyJSONString
user_idintegerrequired
ID of the learner.
iso_representationstringrequired
Language code, e.g. en. Must be one of the languages enabled for your institute.
Response200application/json
codeinteger
Example: 200
messagestring
Example: Language updated successfully!

Notes: The learner must belong to your ORGID organization ("Not part of an organization." otherwise) and must be a learner ("Action can be performed only on learner accounts"). A language not enabled for the institute returns "Invalid language". Rate limit: 30 requests per minute; going over locks you out for 30 minutes.

Updated yesterday

Ask AI