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 '{
"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
}'
{
"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
The body is of type object
.
Field options saved successfully
The response is of type object
.
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 '{
"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
}'
{
"message": "Preferences Saved"
}