---
title: "Publish the previewed revision: it becomes the form's fill contract"
method: POST
path: "/api/v1/custom-forms/{id}/publish"
tags: ["Custom forms"]
---

# Publish the previewed revision: it becomes the form's fill contract

`POST /api/v1/custom-forms/{id}/publish`

## Request

- Base URL: `https://philforms.com`
- URL: `https://philforms.com/api/v1/custom-forms/{id}/publish`
- Auth: HTTP bearer

## Path parameters

- `id` string, required

## Response `200`

Custom form + warning_count

## Other responses

- `400`: Fix the errors first
- `404`: No such custom form
- `409`: Preview this revision first

---

[API](https://skmtc.dev/philforms/apis/philforms-api.md) · [All operations](https://skmtc.dev/philforms/apis/philforms-api/llms.txt) · [OpenAPI document](https://skmtc.dev/philforms/apis/philforms-api/revisions/a43bf313729c?raw)
