Create Custom Form
POST {{apiPath}}/environments/{{envID}}/forms
This PingOne collection contains only the requests without documentation. For the official PingOne Platform API documentation, see Create Custom Form.
Request Body
{"name"=>"Custom-Form_{{$timestamp}}", "description"=>"Test Description - created via CREATE Custom Form request", "category"=>"CUSTOM", "components"=>{"fields"=>[{"type"=>"TEXT", "position"=>{"row"=>0, "col"=>0}, "key"=>"field", "label"=>"[{\"type\":\"paragraph\",\"children\":[{\"text\":\"\"},{\"type\":\"i18n\",\"key\":\"fields.user.email.label\",\"defaultTranslation\":\"Email Address\",\"inline\":true,\"children\":[{\"text\":\"\"}]},{\"text\":\"\"}]}]", "required"=>true, "validation"=>{"type"=>"NONE", "regex"=>"", "errorMessage"=>""}, "attributeDisabled"=>false}, {"type"=>"SOCIAL_LOGIN_BUTTON", "position"=>{"row"=>1, "col"=>0}, "key"=>"social-login-button-field", "label"=>"Sign in with Google", "styles"=>{"width"=>100, "alignment"=>"CENTER", "enabled"=>false}, "idpType"=>"GOOGLE", "idpName"=>"Google", "idpId"=>"{{providerID}}", "idpEnabled"=>true}, {"type"=>"SUBMIT_BUTTON", "position"=>{"row"=>2, "col"=>0}, "label"=>"[{\"type\":\"paragraph\",\"children\":[{\"text\":\"\"},{\"type\":\"i18n\",\"key\":\"button.text\",\"defaultTranslation\":\"Submit\",\"inline\":true,\"children\":[{\"text\":\"\"}]},{\"text\":\"\"}]}]"}]}, "cols"=>4, "markOptional"=>true, "markRequired"=>false, "translationMethod"=>"TRANSLATE", "fieldTypes"=>["SUBMIT_BUTTON", "TEXT"], "languageBundle"=>{"fields.user.email.label"=>"Email Address", "button.text"=>"Submit"}}