Browse and search developers
/
Forms
Publish a form
Publishes the current draft as a new version. Fails with a plan_error if the form uses a block your plan does not include.
On this page
POST
/v1/forms/{formId}/publishScope: forms:writecurl -X POST "https://api.formitai.com/v1/forms/FORM_ID/publish" \
-H "Authorization: Bearer $FORMIT_API_KEY" \
-H "Content-Type: application/json" \
-d 'null'Parameters
Path
formIdstringRequired
Request body
No fields.
Response 200
idstringRequiredpublishedtrueRequiredversioninteger or nullRequired
Example response
{
"id": "item_id",
"published": true,
"version": 1
}Errors
400Invalid request:validation_failedwith fielddetails, or malformed JSON.401Missing or invalid API key.403The key lacks the scope, or its creator lacks the workspace permission.404Not found in this key’s workspace.429Rate limit exceeded. Wait forRetry-Afterseconds.
Can't find what you need?