Create Form
Changed onCreates a custom form for a portal.
- developer_registration forms appear in the portal's developer signup flow
- api_registration forms are shown to developers when they request access to a specific API.
Requirements:
- Every form's fields array must include exactly one submit field.
- developer_registration forms must also include the built-in full_name and email fields.
Request
- Base URLhttps://global.api.konghq.com
- Auth
- HTTP bearer
- or HTTP bearer
- or HTTP bearer
- or HTTP bearer
Path parameters
ID of the portal.
Request body
Request body for creating a form, discriminated by type. The required fields in fields depend on the form type.
- full_name and email are required for developer_registration forms.
- api_id is required for api_registration forms. Returns a 400 error if a required field is missing.
Example request
{
"type": "developer_registration",
"name": "developer-registration",
"status": "unpublished",
"fields": [
{
"name": "full-name",
"type": "content",
"value": "## Tell us about your project"
}
]
}Response
A custom form belonging to a portal.
A custom form configured for a developer portal, including its fields.
Contains a unique identifier used for this resource.
A unique, URL-friendly identifier for the form (lowercase letters, digits, and hyphens). For developer_registration forms, this is always developer-registration. For api_registration forms, you choose the name when creating the form and can change it later.
The kind of form. Determines which fields are required and where developers see the form on the portal.
Whether the form is visible to developers on the portal. unpublished forms aren't shown to developers; for the developer_registration form, a default form is shown instead.
The form's fields, in the order they're displayed. Must include exactly one submit field. developer_registration forms must also include the built-in full_name and email fields.
An ISO-8601 timestamp representation of entity creation date.
An ISO-8601 timestamp representation of entity update date.
Example response
{
"id": "5f9fd312-a987-4628-b4c5-bb4f4fddd5f7",
"name": "flights-api-registration",
"type": "developer_registration",
"status": "unpublished",
"fields": [
{
"name": "full-name",
"type": "content",
"value": "## Tell us about your project",
"built_in": true
}
],
"created_at": "2022-11-04T20:10:06.927Z",
"updated_at": "2022-11-04T20:10:06.927Z"
}Changes
- info
the response property
fields/items/oneOf[#/components/schemas/CustomFormCheckboxField]/requiredbecame required for the status - info
the response property
fields/items/oneOf[#/components/schemas/CustomFormEmailField]/requiredbecame required for the status - info
the response property
fields/items/oneOf[#/components/schemas/CustomFormNumberField]/requiredbecame required for the status
6 more changes in this revision
- info