Replace Form
Changed onReplaces a custom form with the supplied fields and settings.
To remove a field, leave it out of the fields array; to rename a field, change its label (a field's name can't change once set).
The form's type can't be changed. Its name is fixed for developer_registration forms but can be changed for api_registration forms.
developer_registration forms must include the built-in full_name and email fields.
Request
- Base URL: https://global.api.konghq.com
- URL: https://global.api.konghq.com/v3/portals/{portalId}/forms/{formId}
- Auth: one of:
- HTTP bearer
- HTTP bearer
- HTTP bearer
- HTTP bearer
Path parameters
ID of the portal.
ID of the portal form.
Request body
Example request
{
"type": "developer_registration",
"status": "published",
"fields": [
{
"name": "full-name",
"type": "content",
"value": "## Tell us about your project"
}
]
}Response
A custom form belonging to a portal.
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
- breaking
added to the
/response propertyoneOflist for the response status - warning
added the new
key_invalidenum value to the//////response property for the response status - warning
added the new
uniqueenum value to the//////response property for the response status
- breaking
- warning
added the new
400.00enum value to theresponse property for the response status - warning
added the new
403.00enum value to theresponse property for the response status - warning
added the new
404.00enum value to theresponse property for the response status
- warning