Create a consent object for a specified child and guardian combination. The guardian must have already been assigned in the guardian_keys of the child for this endpoint to work properly. Otherwise, a 400 error is returned.

The contact_method must be set if you want StandardCode to handle contacting the guardian to collect consent for your application. Otherwise, you will be responsible for verifying that consent has been obtained by using one of the verification endpoints provided by the API.

Log in to see full request history
Body Params
string
required

The key of the child to obtain consent for.

string
required

The key of the guardian who will be giving consent.

string

Set this to tell StandardCode how to contact the guardian to begin the consent collection process.

If this is set to "email" and the guardian does not have their email set, then a 400 error is returned. Likewise, if this is set to "sms" and the guardian does not have their phone set, then a 400 error is returned.

Responses

Language
Credentials
:
URL
Click Try It! to start a request and see the response here! Or choose an example:
application/json