cURL
curl --request PUT \ --url https://pria.praxislxp.com/api/user/userInstitution/{institutionId} \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "lastConversation": { "course_id": 123, "course_name": "<string>", "assistant": { "_id": "<string>", "name": "<string>", "picture_url": "<string>" }, "history_count": 123, "last_dialogue_date": "2023-11-07T05:31:56Z" }, "canvasApiToken": { "access_token": "24379~vCERVnFWh9yyEVQkafGWQL8WwUk9YKv2mEmMyv6WtkzUYkEHDRGtPP2aMMCYf4C9", "token_type": "Bearer", "user": { "id": 110, "name": "Hugo Lebegue", "global_id": "243790000000000110", "effective_locale": "en", "fake_student": false }, "canvas_region": "us-east-1", "expires_in": 3600, "created": 1, "refresh_token": "24379~MTDRu7Aw3RGk2DPmrNuAP2E37LcRHQ2A2wk978CMK3GTMFwkrJA8wQkeaKmxWvRA", "institutionid": "65cfebc32f5e1b37d4e52329" } }'
{ "success": true, "message": "userInstitution preference saved sucessfully" }
Updates user institution settings including last conversation data, canvasApiToken
JWT token passed in x-access-token header
The institution ID to update
User institution preferences updated successfully
The response is of type object.
object
Was this page helpful?