Calls
User
create_child
5 min
this call creates a child in a family system this is very similar to create , but connected to is mandatory and must be the same as clogin id for the associated parent basic parameters false 211 unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type doc parameters false 184 unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type examples new child this is an example that would create a new child the key things to note are that main email , first name , and last name are all supplied while clogin id is false altogether, this is the equivalent of a parent registering a child and answering the yes/no question curl x post "https //www regpack com/reg/api2/users/" \\ h "content type application/json" \\ h "accept application/json" \\ h "api id 15263" \\ h "api user api admin\@regpacks com" \\ h "api token cd2e514f 7gab 3cde 62fg 51abcd4e7362" \\ d '{ "action" "create child", "group id" 100909072, "clogin id" false, "connected to" 102670540, "doc" { "first name" "bill", "last name" "evans", "your instrument" "piano" } }import requests import json users endpoint = https //www regpack com/reg/api2/users/ headers = { "content type" "application/json", "accept" "application/json", "api id" "15263", "api user" "api admin\@regpacks com", "api token" "cd2e514f 7gab 3cde 62fg 51abcd4e7362", } payload = { "action" "create child", "group id" 100909072, "clogin id" false, "connected to" 102670540, "doc" { "first name" "bill", "last name" "evans", "your instrument" "piano" } } create new child json = json dumps(payload) create new child response = requests post(url=users endpoint, data=create new child json, headers=headers, timeout=10) new user response { "msg" "child created ", "system action" \[ "child created" ], "success" true, "user info" { "clogin id" "102715755", "group id" "100909072", "connected to" "102670540" }, "meta info" { "u name" "bill evans", "total forms" "6", "completed forms" "0", "total user forms" "6", "total completed user forms" "0", "total user mandatory forms" "6", "total completed user mandatory forms" "0", "total order" "0 00", "total paid" "0 00", "total balance" "0 00", "status id" "0", "status name" null, "status color" null, "application date" "dec 8th 2021 17 20", "application date raw" "2021 12 08 17 20 08", "u comments" "0", "group id" "100909072", "uid" "4085259", "clogin id" "102715755", "excluded" "0", "connected to" "102670540", "total user tags" "0", "user tag ids" null, "total non excluded children" null, "star" "0", "admin initials" null, "admin color" null, "assigned admin id" null } }