Onboard childrean
POST {{baseUrl}}/{{version}}/onboarding/children/{{user_id}}
This endpoint anables parents to add their children to the sytem by passing a json object.
For example
[
{
email
: [child+child001@teamsportz.pro](https://mailto:francisco+child001@teamsportz.pro)
,
first_name
: Agent001
,
last_name
: Smith001
,
dob
: 1978/12/08
,
team_code
: zluUAR5F
,
profile_inform_health_condition
: 1,
profile_health_condition
: Alergies
,
profile_consent_forms_data
: 1,
profile_consent_data_info_photo_videos
: 1,
profile_consent_sharing_info
: 1,
profile_consent_data_handling
: 1,
profile_consent_terms_conditions
: 1,
profile_consent_social_media
: 0
},
{
email
: [child+child002@teamsportz.pro](https://mailto:francisco+child002@teamsportz.pro)
,
first_name
: Anderson
,
last_name
: Mr
,
dob
: 1978/12/08
,
team_code
: z3u6Au2
,
profile_inform_health_condition
: 0,
profile_health_condition
: ",
profileconsentformsdata: 1,
profileconsentdatainfophotovideos: 1,
profileconsentsharinginfo: 1,
profileconsentdatahandling: 1,
profileconsenttermsconditions: 1,
profileconsentsocialmedia": 0
}
]
Request Body
[{"name"=>"children", "value"=>"[ { \"email\": \"elina.sheida02@gmail.com\", \"first_name\": \"Elina\", \"last_name\": \"Baptista\", \"dob\": \"2010/02/28\", \"team_code\": \"zluUAR\", \"profile_inform_health_condition\": 1, \"profile_health_condition\": \"Alergies\", \"profile_consent_forms_data\": 1, \"profile_consent_data_info_photo_videos\": 1, \"profile_consent_sharing_info\": 1, \"profile_consent_data_handling\": 1, \"profile_consent_terms_conditions\": 1, \"profile_consent_social_media\": 0 }, { \"email\": \"\", \"first_name\": \"Lukeni\", \"last_name\": \"Baptista\", \"dob\": \"2017/04/20\", \"team_code\": \"YbSdhw\", \"profile_inform_health_condition\": 0, \"profile_health_condition\": \"\", \"profile_consent_forms_data\": 1, \"profile_consent_data_info_photo_videos\": 1, \"profile_consent_sharing_info\": 1, \"profile_consent_data_handling\": 1, \"profile_consent_terms_conditions\": 1, \"profile_consent_social_media\": 0 }, { \"email\": \"\", \"first_name\": \"Kiami\", \"last_name\": \"Baptista\", \"dob\": \"2020/07/12\", \"team_code\": \"RlapzY\", \"profile_inform_health_condition\": 0, \"profile_health_condition\": \"\", \"profile_consent_forms_data\": 1, \"profile_consent_data_info_photo_videos\": 1, \"profile_consent_sharing_info\": 1, \"profile_consent_data_handling\": 1, \"profile_consent_terms_conditions\": 1, \"profile_consent_social_media\": 0 } ]", "datatype"=>"string"}, {"name"=>"send_welcome_email", "value"=>"1", "datatype"=>"number"}]
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Authorization | string | A valid JWT token | |
send_welcome_email | number | nullable |
This flag send a welcome email to the kid when the email is different from the parent |
RESPONSES
status: OK
{"error":false,"code":200,"message":"The new account has been created successfully!","user_id":100}