| Param name | Description |
|---|---|
|
id
required |
ID of the user to return Validations:
|
User object in JSON format with the keys: id, email, birthdate, given_name, family_name, non_latin_given_name, non_latin_family_name, primary_country, male, invited_to_url, google_id, apple_id, office365_id, username, old_student, office365_email, duplicates_ids, student_account_app, at_code, is_cct, mobile, teacher_type, confirmed, sign_up_complete, session_info, student_account_url, mfa_set_up, is_at
| Param name | Description |
|---|
Unauthorized - invalid or missing OAuth token
| Param name | Description |
|---|
User not found
| Param name | Description |
|---|
| Param name | Description |
|---|---|
|
email
optional , blank allowed |
Validations:
|
|
mobile
optional , blank allowed |
Validations:
|
|
origin_id
optional , blank allowed |
ID in the previous database Validations:
|
|
username
optional , blank allowed |
username will be mandatory only if multiple users share same email. All characters are allowed, except the reserved string ‘oldstudent’ and its case variations. Can be an empty string but cannot contain only spaces. Can be of any size. Validations:
|
|
encrypted_password
optional , blank allowed |
Encrypted password in the previous database. VIS does not enforce password format rules, except a minimum of 8 characters when users change their password through the VIS UI. Validations:
|
|
custom_pepper
optional , blank allowed |
The pepper which have been used to encrypt the password Validations:
|
|
google_id
optional , blank allowed |
UID of a Google account linked to this user Validations:
|
|
apple_id
optional , blank allowed |
UID of an Apple account linked to this user Validations:
|
|
email_confirmed
optional , blank allowed |
Wether the user email have already been confirmed or not Validations:
|
|
given_name
optional , blank allowed |
Validations:
|
|
family_name
optional , blank allowed |
Validations:
|
|
non_latin_given_name
optional , blank allowed |
Validations:
|
|
non_latin_family_name
optional , blank allowed |
Validations:
|
|
male
optional , blank allowed |
Gender: Wether the user is a male or female Validations:
|
|
birthdate
optional , blank allowed |
Validations:
|
|
primary_country
optional , blank allowed |
Alpha2 code of the country where the user do most of its Vipassana activity just give address country if you are not sure Validations:
|
|
old_student
optional , blank allowed |
Has the user already completed a 10-day course? Validations:
|
|
is_at
optional , blank allowed |
Is the user an assistant teacher? DEPRECATED: use teacher_type instead. is_at is ignored when teacher_type is passed Validations:
|
|
at_code
optional , blank allowed |
Assistant teacher code, for example AD5, YNP, NJ Validations:
|
|
is_cct
optional , blank allowed |
Is the user an children course teacher? Validations:
|
|
teacher_type
optional , blank allowed |
Type of teacher the user is. Blank if the user is not a teacher. {“unknown” => “teacher or assistant teacher but VIS does not know its exact type.”, “ATT” => “Assistant Teacher Trainee”, “AT” => “Assistant Teacher”, “SAT” => “Senior Assistant Teacher”, “T” => “Teacher”, “CT” => “Center Teacher”, “CAT” => “Coordinating Area Teacher”, “BT” => “Bhikkhu / Bhikkhuni Teacher”}. Validations:
|
|
student_account_app
optional , blank allowed |
Which student app should be used. If not provided, it will be automatically detected from primary_country Validations:
|
|
password_required
optional , blank allowed |
If the user is required to setup a password (otherwise they might only sign in with external providers such as google or office365) Validations:
|
|
require_mfa_from_date
optional , blank allowed |
Date after which the user will have to set up MFA for her account. Format must be YYYY-MM-DD. Users are automatically emailed when a date is set and reminded one week before the date. Validations:
|
|
office365_id
optional , blank allowed |
UID of an Office365 account linked to this user. Can be updated only if the current value is blank. Validations:
|
|
office365_email
optional , blank allowed |
Office365 email of this user, something like [email protected] Validations:
|
|
locale
optional , blank allowed |
Locale for confirmation and MFA emails (en, fr, de, hi…) Validations:
|
User object in JSON format with the keys: id, email, birthdate, given_name, family_name, non_latin_given_name, non_latin_family_name, primary_country, male, invited_to_url, google_id, apple_id, office365_id, username, old_student, office365_email, duplicates_ids, student_account_app, at_code, is_cct, mobile, teacher_type, confirmed, sign_up_complete, session_info, student_account_url, mfa_set_up, is_at
| Param name | Description |
|---|
Validation errors in format: {error: {field_name: ["error message 1", "error message 2"]}}
| Param name | Description |
|---|
Unauthorized - invalid or missing OAuth token
| Param name | Description |
|---|
| Param name | Description |
|---|---|
|
users
optional |
Users to import Validations:
|
|
users[vis_id]
optional , blank allowed |
ID in VIS database. In case some of the users you try to create have already been created before. So the API call is idempotent Validations:
|
|
users[invite]
optional , blank allowed |
Wether to invite users without any authentication strategy Validations:
|
|
users[locale]
optional , blank allowed |
Locale for invitation and MFA emails (en, fr, de, hi…) Validations:
|
|
users[invited_to_url]
optional , blank allowed |
Customize the url to redirect the user afer invitation is accepted. Default to OauthApplication home_page Validations:
|
|
users[email]
optional , blank allowed |
Validations:
|
|
users[mobile]
optional , blank allowed |
Validations:
|
|
users[origin_id]
optional , blank allowed |
ID in the previous database Validations:
|
|
users[username]
optional , blank allowed |
username will be mandatory only if multiple users share same email. All characters are allowed, except the reserved string ‘oldstudent’ and its case variations. Can be an empty string but cannot contain only spaces. Can be of any size. Validations:
|
|
users[encrypted_password]
optional , blank allowed |
Encrypted password in the previous database. VIS does not enforce password format rules, except a minimum of 8 characters when users change their password through the VIS UI. Validations:
|
|
users[custom_pepper]
optional , blank allowed |
The pepper which have been used to encrypt the password Validations:
|
|
users[google_id]
optional , blank allowed |
UID of a Google account linked to this user Validations:
|
|
users[apple_id]
optional , blank allowed |
UID of an Apple account linked to this user Validations:
|
|
users[email_confirmed]
optional , blank allowed |
Wether the user email have already been confirmed or not Validations:
|
|
users[given_name]
optional , blank allowed |
Validations:
|
|
users[family_name]
optional , blank allowed |
Validations:
|
|
users[non_latin_given_name]
optional , blank allowed |
Validations:
|
|
users[non_latin_family_name]
optional , blank allowed |
Validations:
|
|
users[male]
optional , blank allowed |
Gender: Wether the user is a male or female Validations:
|
|
users[birthdate]
optional , blank allowed |
Validations:
|
|
users[primary_country]
optional , blank allowed |
Alpha2 code of the country where the user do most of its Vipassana activity just give address country if you are not sure Validations:
|
|
users[old_student]
optional , blank allowed |
Has the user already completed a 10-day course? Validations:
|
|
users[is_at]
optional , blank allowed |
Is the user an assistant teacher? DEPRECATED: use teacher_type instead. is_at is ignored when teacher_type is passed Validations:
|
|
users[at_code]
optional , blank allowed |
Assistant teacher code, for example AD5, YNP, NJ Validations:
|
|
users[is_cct]
optional , blank allowed |
Is the user an children course teacher? Validations:
|
|
users[teacher_type]
optional , blank allowed |
Type of teacher the user is. Blank if the user is not a teacher. {“unknown” => “teacher or assistant teacher but VIS does not know its exact type.”, “ATT” => “Assistant Teacher Trainee”, “AT” => “Assistant Teacher”, “SAT” => “Senior Assistant Teacher”, “T” => “Teacher”, “CT” => “Center Teacher”, “CAT” => “Coordinating Area Teacher”, “BT” => “Bhikkhu / Bhikkhuni Teacher”}. Validations:
|
|
users[student_account_app]
optional , blank allowed |
Which student app should be used. If not provided, it will be automatically detected from primary_country Validations:
|
|
users[password_required]
optional , blank allowed |
If the user is required to setup a password (otherwise they might only sign in with external providers such as google or office365) Validations:
|
|
users[require_mfa_from_date]
optional , blank allowed |
Date after which the user will have to set up MFA for her account. Format must be YYYY-MM-DD. Users are automatically emailed when a date is set and reminded one week before the date. Validations:
|
|
users[office365_id]
optional , blank allowed |
UID of an Office365 account linked to this user. Can be updated only if the current value is blank. Validations:
|
|
users[office365_email]
optional , blank allowed |
Office365 email of this user, something like [email protected] Validations:
|
Bulk import result with summary statistics, imported users array, errors array, and ignored users array. Response format: {summary: {message: string, created_count: number, failure_count: number, invited_count: number, ignored_count: number}, users: [user objects], errors: [{error: string, data: object}], ignored: [user objects]}
| Param name | Description |
|---|
Error message in format: {error: error message}
| Param name | Description |
|---|
Unauthorized - invalid or missing OAuth token
| Param name | Description |
|---|
| Param name | Description |
|---|---|
|
id
required |
ID of the user to update Validations:
|
|
given_name
optional , blank allowed |
Validations:
|
|
family_name
optional , blank allowed |
Validations:
|
|
non_latin_given_name
optional , blank allowed |
Validations:
|
|
non_latin_family_name
optional , blank allowed |
Validations:
|
|
male
optional , blank allowed |
Gender: Wether the user is a male or female Validations:
|
|
birthdate
optional , blank allowed |
Validations:
|
|
primary_country
optional , blank allowed |
Alpha2 code of the country where the user do most of its Vipassana activity just give address country if you are not sure Validations:
|
|
old_student
optional , blank allowed |
Has the user already completed a 10-day course? Validations:
|
|
is_at
optional , blank allowed |
Is the user an assistant teacher? DEPRECATED: use teacher_type instead. is_at is ignored when teacher_type is passed Validations:
|
|
at_code
optional , blank allowed |
Assistant teacher code, for example AD5, YNP, NJ Validations:
|
|
is_cct
optional , blank allowed |
Is the user an children course teacher? Validations:
|
|
teacher_type
optional , blank allowed |
Type of teacher the user is. Blank if the user is not a teacher. {“unknown” => “teacher or assistant teacher but VIS does not know its exact type.”, “ATT” => “Assistant Teacher Trainee”, “AT” => “Assistant Teacher”, “SAT” => “Senior Assistant Teacher”, “T” => “Teacher”, “CT” => “Center Teacher”, “CAT” => “Coordinating Area Teacher”, “BT” => “Bhikkhu / Bhikkhuni Teacher”}. Validations:
|
|
student_account_app
optional , blank allowed |
Which student app should be used. If not provided, it will be automatically detected from primary_country Validations:
|
|
password_required
optional , blank allowed |
If the user is required to setup a password (otherwise they might only sign in with external providers such as google or office365) Validations:
|
|
require_mfa_from_date
optional , blank allowed |
Date after which the user will have to set up MFA for her account. Format must be YYYY-MM-DD. Users are automatically emailed when a date is set and reminded one week before the date. Validations:
|
|
office365_id
optional , blank allowed |
UID of an Office365 account linked to this user. Can be updated only if the current value is blank. Validations:
|
|
office365_email
optional , blank allowed |
Office365 email of this user, something like [email protected] Validations:
|
Updated user object in JSON format with the keys: id, email, birthdate, given_name, family_name, non_latin_given_name, non_latin_family_name, primary_country, male, invited_to_url, google_id, apple_id, office365_id, username, old_student, office365_email, duplicates_ids, student_account_app, at_code, is_cct, mobile, teacher_type, confirmed, sign_up_complete, session_info, student_account_url, mfa_set_up, is_at
| Param name | Description |
|---|
Validation errors or user not found, in format: {error: error message}
| Param name | Description |
|---|
Error message for invalid operations (e.g., trying to update generic oldstudent record), in format: {error: error message}
| Param name | Description |
|---|
Unauthorized - invalid or missing OAuth token
| Param name | Description |
|---|
| Param name | Description |
|---|---|
|
email
optional , blank allowed |
Validations:
|
|
username
optional , blank allowed |
Required if the email is shared accross multiple users Validations:
|
|
id
optional , blank allowed |
VIS ID of an existing user, in case you just want to invite an existing user to a new app Validations:
|
|
locale
optional , blank allowed |
Locale for invitation and MFA emails (en, fr, de, hi…) Validations:
|
|
app_name
optional , blank allowed |
Customize APP_NAME in following email. Default to OauthApplication name Hello, you have been invited to APP_NAME, click link below to accept Validations:
|
|
invited_to_url
optional , blank allowed |
Customize the url to redirect the user afer invitation is accepted. Default to OauthApplication home_page Validations:
|
|
try_to_find_existing_user
optional , blank allowed |
Will try to find an existing user by the params supplied, instead of creating a new one Validations:
|
|
given_name
optional , blank allowed |
Validations:
|
|
family_name
optional , blank allowed |
Validations:
|
|
non_latin_given_name
optional , blank allowed |
Validations:
|
|
non_latin_family_name
optional , blank allowed |
Validations:
|
|
male
optional , blank allowed |
Gender: Wether the user is a male or female Validations:
|
|
birthdate
optional , blank allowed |
Validations:
|
|
primary_country
optional , blank allowed |
Alpha2 code of the country where the user do most of its Vipassana activity just give address country if you are not sure Validations:
|
|
old_student
optional , blank allowed |
Has the user already completed a 10-day course? Validations:
|
|
is_at
optional , blank allowed |
Is the user an assistant teacher? DEPRECATED: use teacher_type instead. is_at is ignored when teacher_type is passed Validations:
|
|
at_code
optional , blank allowed |
Assistant teacher code, for example AD5, YNP, NJ Validations:
|
|
is_cct
optional , blank allowed |
Is the user an children course teacher? Validations:
|
|
teacher_type
optional , blank allowed |
Type of teacher the user is. Blank if the user is not a teacher. {“unknown” => “teacher or assistant teacher but VIS does not know its exact type.”, “ATT” => “Assistant Teacher Trainee”, “AT” => “Assistant Teacher”, “SAT” => “Senior Assistant Teacher”, “T” => “Teacher”, “CT” => “Center Teacher”, “CAT” => “Coordinating Area Teacher”, “BT” => “Bhikkhu / Bhikkhuni Teacher”}. Validations:
|
|
student_account_app
optional , blank allowed |
Which student app should be used. If not provided, it will be automatically detected from primary_country Validations:
|
|
password_required
optional , blank allowed |
If the user is required to setup a password (otherwise they might only sign in with external providers such as google or office365) Validations:
|
|
require_mfa_from_date
optional , blank allowed |
Date after which the user will have to set up MFA for her account. Format must be YYYY-MM-DD. Users are automatically emailed when a date is set and reminded one week before the date. Validations:
|
|
office365_id
optional , blank allowed |
UID of an Office365 account linked to this user. Can be updated only if the current value is blank. Validations:
|
|
office365_email
optional , blank allowed |
Office365 email of this user, something like [email protected] Validations:
|
Invitation result with success code and user object. Response format: {invite_success_code: 'invited'|'existing_user_invited', user: user_object}
| Param name | Description |
|---|
Validation errors in format: {error: error_message}
| Param name | Description |
|---|
Error message for invalid operations (e.g., trying to invite generic oldstudent record), in format: {error: error_message}
| Param name | Description |
|---|
Unauthorized - invalid or missing OAuth token
| Param name | Description |
|---|
| Param name | Description |
|---|---|
|
id
required |
ID of the user Validations:
|
|
locale
optional , blank allowed |
Locale for invitation email (en, fr, de, hi…) Validations:
|
User object in JSON format after resending invitation, with the keys: id, email, birthdate, given_name, family_name, non_latin_given_name, non_latin_family_name, primary_country, male, invited_to_url, google_id, apple_id, office365_id, username, old_student, office365_email, duplicates_ids, student_account_app, at_code, is_cct, mobile, teacher_type, confirmed, sign_up_complete, session_info, student_account_url, mfa_set_up, is_at
| Param name | Description |
|---|
User not found
| Param name | Description |
|---|
Error message for invalid operations (e.g., trying to resend invite to generic oldstudent record), in format: {error: error_message}
| Param name | Description |
|---|
Unauthorized - invalid or missing OAuth token
| Param name | Description |
|---|
| Param name | Description |
|---|---|
|
id
required |
ID of the user Validations:
|
Success confirmation in format: {success: true}
| Param name | Description |
|---|
Error message for invalid operations (e.g., trying to destroy generic oldstudent record), in format: {error: error_message}
| Param name | Description |
|---|
Unauthorized - invalid or missing OAuth token
| Param name | Description |
|---|
| Param name | Description |
|---|---|
|
id
required |
ID of the user whose TOTP secret should be cleared Validations:
|
Updated user object in JSON format with the keys: id, email, birthdate, given_name, family_name, non_latin_given_name, non_latin_family_name, primary_country, male, invited_to_url, google_id, apple_id, office365_id, username, old_student, office365_email, duplicates_ids, student_account_app, at_code, is_cct, mobile, teacher_type, confirmed, sign_up_complete, session_info, student_account_url, mfa_set_up, is_at
| Param name | Description |
|---|
Error message when the TOTP secret cannot be reset, in format: {error: error_message}
| Param name | Description |
|---|
Unauthorized - invalid or missing OAuth token
| Param name | Description |
|---|
| Param name | Description |
|---|---|
|
login
required |
Email or username Validations:
|
|
password
required |
Non encrypted password Validations:
|
User object in JSON format when credentials are valid, with the keys: id, email, birthdate, given_name, family_name, non_latin_given_name, non_latin_family_name, primary_country, male, invited_to_url, google_id, apple_id, office365_id, username, old_student, office365_email, duplicates_ids, student_account_app, at_code, is_cct, mobile, teacher_type, confirmed, sign_up_complete, session_info, student_account_url, mfa_set_up, is_at
| Param name | Description |
|---|
Error message for various authentication failures (not_found, non_uniq_login, unconfirmed, invalid_password), in format: {error: error_code}
| Param name | Description |
|---|
Unauthorized - invalid or missing OAuth token
| Param name | Description |
|---|
| Param name | Description |
|---|---|
|
provider
required |
Provider name (google, apple, office365) Validations:
|
|
uid
required |
ID of the user given by provider Validations:
|
|
email
optional , blank allowed |
Validations:
|
|
mobile
optional , blank allowed |
Validations:
|
|
origin_id
optional , blank allowed |
ID in the previous database Validations:
|
|
username
optional , blank allowed |
username will be mandatory only if multiple users share same email. All characters are allowed, except the reserved string ‘oldstudent’ and its case variations. Can be an empty string but cannot contain only spaces. Can be of any size. Validations:
|
|
encrypted_password
optional , blank allowed |
Encrypted password in the previous database. VIS does not enforce password format rules, except a minimum of 8 characters when users change their password through the VIS UI. Validations:
|
|
custom_pepper
optional , blank allowed |
The pepper which have been used to encrypt the password Validations:
|
|
google_id
optional , blank allowed |
UID of a Google account linked to this user Validations:
|
|
apple_id
optional , blank allowed |
UID of an Apple account linked to this user Validations:
|
|
email_confirmed
optional , blank allowed |
Wether the user email have already been confirmed or not Validations:
|
|
given_name
optional , blank allowed |
Validations:
|
|
family_name
optional , blank allowed |
Validations:
|
|
non_latin_given_name
optional , blank allowed |
Validations:
|
|
non_latin_family_name
optional , blank allowed |
Validations:
|
|
male
optional , blank allowed |
Gender: Wether the user is a male or female Validations:
|
|
birthdate
optional , blank allowed |
Validations:
|
|
primary_country
optional , blank allowed |
Alpha2 code of the country where the user do most of its Vipassana activity just give address country if you are not sure Validations:
|
|
old_student
optional , blank allowed |
Has the user already completed a 10-day course? Validations:
|
|
is_at
optional , blank allowed |
Is the user an assistant teacher? DEPRECATED: use teacher_type instead. is_at is ignored when teacher_type is passed Validations:
|
|
at_code
optional , blank allowed |
Assistant teacher code, for example AD5, YNP, NJ Validations:
|
|
is_cct
optional , blank allowed |
Is the user an children course teacher? Validations:
|
|
teacher_type
optional , blank allowed |
Type of teacher the user is. Blank if the user is not a teacher. {“unknown” => “teacher or assistant teacher but VIS does not know its exact type.”, “ATT” => “Assistant Teacher Trainee”, “AT” => “Assistant Teacher”, “SAT” => “Senior Assistant Teacher”, “T” => “Teacher”, “CT” => “Center Teacher”, “CAT” => “Coordinating Area Teacher”, “BT” => “Bhikkhu / Bhikkhuni Teacher”}. Validations:
|
|
student_account_app
optional , blank allowed |
Which student app should be used. If not provided, it will be automatically detected from primary_country Validations:
|
|
password_required
optional , blank allowed |
If the user is required to setup a password (otherwise they might only sign in with external providers such as google or office365) Validations:
|
|
require_mfa_from_date
optional , blank allowed |
Date after which the user will have to set up MFA for her account. Format must be YYYY-MM-DD. Users are automatically emailed when a date is set and reminded one week before the date. Validations:
|
|
office365_id
optional , blank allowed |
UID of an Office365 account linked to this user. Can be updated only if the current value is blank. Validations:
|
|
office365_email
optional , blank allowed |
Office365 email of this user, something like [email protected] Validations:
|
User object in JSON format (existing or newly created), with the keys: id, email, birthdate, given_name, family_name, non_latin_given_name, non_latin_family_name, primary_country, male, invited_to_url, google_id, apple_id, office365_id, username, old_student, office365_email, duplicates_ids, student_account_app, at_code, is_cct, mobile, teacher_type, confirmed, sign_up_complete, session_info, student_account_url, mfa_set_up, is_at
| Param name | Description |
|---|
Validation errors when creating new user, in format: {error: {field_name: ["error message 1", "error message 2"]}}
| Param name | Description |
|---|
Unauthorized - invalid or missing OAuth token
| Param name | Description |
|---|
| Param name | Description |
|---|---|
|
login
required |
Email or username Validations:
|
|
locale
optional , blank allowed |
Locale for email (en, fr, de, hi…) Validations:
|
Success confirmation in format: {success: true}
| Param name | Description |
|---|
Error message for various failures (not_found, non_uniq_login, or generic oldstudent), in format: {error: error_message}
| Param name | Description |
|---|
Unauthorized - invalid or missing OAuth token
| Param name | Description |
|---|
| Param name | Description |
|---|---|
|
login
required |
Email or username Validations:
|
|
locale
optional , blank allowed |
Locale for email (en, fr, de, hi…) Validations:
|
Success confirmation in format: {success: true}
| Param name | Description |
|---|
Error message for various failures (not_found, non_uniq_login, or generic oldstudent), in format: {error: error_message}
| Param name | Description |
|---|
Unauthorized - invalid or missing OAuth token
| Param name | Description |
|---|