Skip to content
Leadtime
English
Esc
navigateopen⌘Jpreview

Create form template field

POST/administration/form-templates/{templateId}/fields
Authorization
AuthorizationOAuth2 access token · headerrequired
Scopes:api:write
or
AuthorizationBearer token (JWT) · headerrequired
Path parameters
templateIdstringrequired
Request body
requiredapplication/json
descriptionstring
helpTextobject | null
keyobject | null
labelstringrequired
placeholderobject | null
requiredboolean
selectOptionsobject[]
settingsobject
sortnumber
typestringrequired
Allowed:TextTextareaNumberDateCheckboxSelectMultiSelectCurrencyUrlSectionHeadingFileUploadSignatureRadio
Responses
201
successbooleanrequired
Operation success flag
401Unauthorized - Invalid or missing authentication token
403Forbidden - Insufficient API scopes or permissions
Request
curl -X POST "https://leadtime.app/api/public/administration/form-templates/string/fields" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "description": "string",
  "helpText": {},
  "key": {},
  "label": "string",
  "placeholder": {},
  "required": true,
  "selectOptions": [
    {}
  ],
  "settings": {},
  "sort": 0,
  "type": "Text"
}'
Response
{
  "success": true
}