---
title: "Replace Form"
method: PUT
path: "/v3/portals/{portalId}/forms/{formId}"
tags: ["Portal Forms"]
---

# Replace Form

`PUT /v3/portals/{portalId}/forms/{formId}`

## 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

Replaces 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.

## Path parameters

- `portalId` string, uuid, required
- `formId` string, uuid, required

## Request body

- union: Request body for updating a form. The `type` must match the form's existing type — it can't be changed. To remove a field, leave it out of `fields`; to rename a field, edit its `label`.
  - intersection
    - [`UpdateDeveloperRegistrationFormRequest`](https://skmtc.dev/kong/apis/konnect-api-go-sdk/revisions/3b071797f6e4/schema?at=%2Fcomponents%2Fschemas%2FUpdateDeveloperRegistrationFormRequest)
  - intersection
    - [`UpdateApiRegistrationFormRequest`](https://skmtc.dev/kong/apis/konnect-api-go-sdk/revisions/3b071797f6e4/schema?at=%2Fcomponents%2Fschemas%2FUpdateApiRegistrationFormRequest)

## Response `200`

A custom form belonging to a portal.

- CustomFormResponse: A custom form configured for a developer portal, including its fields.
  - `id` string, uuid, required: Contains a unique identifier used for this resource.
  - `name` string, required: 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.
  - `type` 'developer_registration' | 'api_registration', required: The kind of form. Determines which fields are required and where developers see the form on the portal.
  - `status` 'published' | 'unpublished', required: 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.
  - `fields` CustomFormField[], required: 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.
    - union: A field on a form, as returned by the API. The `type` property determines what kind of field it is. Fields that came with the form by default carry a `built_in` flag.
      - intersection
        - [`CustomFormContentField`](https://skmtc.dev/kong/apis/konnect-api-go-sdk/revisions/3b071797f6e4/schema?at=%2Fcomponents%2Fschemas%2FCustomFormContentField)
      - intersection
        - [`CustomFormTextField`](https://skmtc.dev/kong/apis/konnect-api-go-sdk/revisions/3b071797f6e4/schema?at=%2Fcomponents%2Fschemas%2FCustomFormTextField)
      - intersection
        - [`CustomFormEmailField`](https://skmtc.dev/kong/apis/konnect-api-go-sdk/revisions/3b071797f6e4/schema?at=%2Fcomponents%2Fschemas%2FCustomFormEmailField)
      - intersection
        - [`CustomFormNumberField`](https://skmtc.dev/kong/apis/konnect-api-go-sdk/revisions/3b071797f6e4/schema?at=%2Fcomponents%2Fschemas%2FCustomFormNumberField)
      - intersection
        - [`CustomFormTextareaField`](https://skmtc.dev/kong/apis/konnect-api-go-sdk/revisions/3b071797f6e4/schema?at=%2Fcomponents%2Fschemas%2FCustomFormTextareaField)
      - intersection
        - [`CustomFormSelectField`](https://skmtc.dev/kong/apis/konnect-api-go-sdk/revisions/3b071797f6e4/schema?at=%2Fcomponents%2Fschemas%2FCustomFormSelectField)
      - intersection
        - [`CustomFormCheckboxField`](https://skmtc.dev/kong/apis/konnect-api-go-sdk/revisions/3b071797f6e4/schema?at=%2Fcomponents%2Fschemas%2FCustomFormCheckboxField)
      - intersection
        - [`CustomFormSubmitField`](https://skmtc.dev/kong/apis/konnect-api-go-sdk/revisions/3b071797f6e4/schema?at=%2Fcomponents%2Fschemas%2FCustomFormSubmitField)
  - `created_at` string, date-time, required: An ISO-8601 timestamp representation of entity creation date.
  - `updated_at` string, date-time, required: An ISO-8601 timestamp representation of entity update date.

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found

## Changes

- **2026-11-19** `3b071797f6e4`: 9 info
  - the response property `fields/items/oneOf[#/components/schemas/CustomFormCheckboxField]/required` became required for the status `200`
  - the response property `fields/items/oneOf[#/components/schemas/CustomFormEmailField]/required` became required for the status `200`
  - the response property `fields/items/oneOf[#/components/schemas/CustomFormNumberField]/required` became required for the status `200`
  - the response property `fields/items/oneOf[#/components/schemas/CustomFormSelectField]/oneOf[#/components/schemas/CustomFormMultiSelectField]/options/items/selected` became required for the status `200`
  - …5 more
- **2026-10-15** `7aab863a6daa`: 1 breaking, 2 warning
  - added `#/components/schemas/InvalidParameterMinimumTime, #/components/schemas/InvalidParameterMaximumTime` to the `invalid_parameters/items/` response property `oneOf` list for the response status `400`
  - added the new `key_invalid` enum value to the `invalid_parameters/items/oneOf[#/components/schemas/InvalidParameterStandard]/rule` response property for the response status `400`
  - added the new `unique` enum value to the `invalid_parameters/items/oneOf[#/components/schemas/InvalidParameterStandard]/rule` response property for the response status `400`
- …earlier changes not shown

[Operation history](https://skmtc.dev/kong/apis/konnect-api-go-sdk/changes/v3/portals/:portalId/forms/:formId/put.md)

---

[API](https://skmtc.dev/kong/apis/konnect-api-go-sdk.md) - [All operations](https://skmtc.dev/kong/apis/konnect-api-go-sdk/llms.txt) - [OpenAPI document](https://skmtc.dev/kong/apis/konnect-api-go-sdk/revisions/3b071797f6e4?raw)
