Partner API
Create field
POST /api/v2/fields - Creates a custom field definition.
POST
/api/v2/fieldsCreates a custom field definition.
Required scope: fields (or *).
JSON body
| Name | Required | Description |
|---|---|---|
label | Yes | Field label |
field_type | No | single_line (default), multi_line, number, phone, monetary, dropdown_single, dropdown_multiple, radio, checkbox, date, text_box_list |
field_key | No | Stable key (slugified from label if omitted) |
curl -s -X POST -H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"label": "Plan type",
"field_type": "dropdown_single",
"field_key": "plan_type"
}' \
"https://benefitpath.com/api/v2/fields"
{
"success": true,
"field": {
"field_id": "plan_type",
"label": "Plan type",
"field_type": "dropdown_single",
"status": "active"
}
}
See Errors for the standard error envelope and rate limits.