Add a new field to a form
curl --request POST \
--url https://api.helpyousponsor.com/v1/admin/form/field/{id}/{type} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"client_id": "<string>",
"field_label": "<string>",
"field_data": "<string>",
"field_type": "hysText",
"permissions": "public",
"hysform_id": 123,
"type": "entity"
}'
{
"message": "<string>"
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
ID of the form
Type of the form (entity, donor, submit)
"entity"
Field data
The body is of type object
.
Successful operation
The response is of type object
.
curl --request POST \
--url https://api.helpyousponsor.com/v1/admin/form/field/{id}/{type} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"client_id": "<string>",
"field_label": "<string>",
"field_data": "<string>",
"field_type": "hysText",
"permissions": "public",
"hysform_id": 123,
"type": "entity"
}'
{
"message": "<string>"
}