---
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-beta/revisions/9c8d300657bd/schema?at=%2Fcomponents%2Fschemas%2FUpdateDeveloperRegistrationFormRequest)
  - intersection
    - [`UpdateApiRegistrationFormRequest`](https://skmtc.dev/kong/apis/konnect-api-beta/revisions/9c8d300657bd/schema?at=%2Fcomponents%2Fschemas%2FUpdateApiRegistrationFormRequest)

## Response `200`

A custom form belonging to a portal.

- union: A custom form configured for a developer portal, including its fields.
  - intersection
    - [`PortalFormDeveloperRegistrationResponse`](https://skmtc.dev/kong/apis/konnect-api-beta/revisions/9c8d300657bd/schema?at=%2Fcomponents%2Fschemas%2FPortalFormDeveloperRegistrationResponse)
  - intersection
    - [`PortalFormApiRegistrationResponse`](https://skmtc.dev/kong/apis/konnect-api-beta/revisions/9c8d300657bd/schema?at=%2Fcomponents%2Fschemas%2FPortalFormApiRegistrationResponse)

## Other responses

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

## Changes

- **2026-12-03** `9c8d300657bd`: 1 info
  - endpoint added

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

---

[API](https://skmtc.dev/kong/apis/konnect-api-beta.md) - [All operations](https://skmtc.dev/kong/apis/konnect-api-beta/llms.txt) - [OpenAPI document](https://skmtc.dev/kong/apis/konnect-api-beta/revisions/9c8d300657bd?raw)
