Saves field options for a specific program, and optionally, a specific type.
curl --request POST \
--url https://api.helpyousponsor.com/v1/admin/fields/options/{program_id}/{type} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data @- <<EOF
{
"client_id": "<string>",
"program": [
"['client_id', 'program_id', 'en_child_name', 'en_gender', 'report_name']"
],
"en_child_name": true,
"en_child_gender": true,
"report_name": "<string>",
"program_id": 123
}
EOF{
"message": "Preferences Saved"
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Program ID for which to save field options
Type of the field options to save
Data for field options to save
Field options saved successfully
"Preferences Saved"
curl --request POST \
--url https://api.helpyousponsor.com/v1/admin/fields/options/{program_id}/{type} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data @- <<EOF
{
"client_id": "<string>",
"program": [
"['client_id', 'program_id', 'en_child_name', 'en_gender', 'report_name']"
],
"en_child_name": true,
"en_child_gender": true,
"report_name": "<string>",
"program_id": 123
}
EOF{
"message": "Preferences Saved"
}