Update a form
const url = 'https://api.deploybase.eu/api/v1/api/v1/forms/example';const options = { method: 'PATCH', headers: {Authorization: '<Authorization>', 'Content-Type': 'application/json'}, body: '{"allowed_origins":["example"],"enabled":true,"honeypot_field":"example","name":"example","notify_emails":["example"],"redirect_url":"example","retention_days":1,"store_ip":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://api.deploybase.eu/api/v1/api/v1/forms/example \ --header 'Authorization: <Authorization>' \ --header 'Content-Type: application/json' \ --data '{ "allowed_origins": [ "example" ], "enabled": true, "honeypot_field": "example", "name": "example", "notify_emails": [ "example" ], "redirect_url": "example", "retention_days": 1, "store_ip": "example" }'Partially updates a form’s settings. public_id and project_id are immutable.
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ”Form ID
Request Body
Section titled “ Request Body ”Settings to change
object
NotifyEmails / AllowedOrigins: pointer-to-slice so an explicit [] can clear the list while an omitted key leaves it alone. A plain slice couldn’t tell those apart.
RedirectURL: empty string clears it.
RetentionDays: 0 clears it (keep forever), positive sets it, negative is rejected.
Example generated
{ "allowed_origins": [ "example" ], "enabled": true, "honeypot_field": "example", "name": "example", "notify_emails": [ "example" ], "redirect_url": "example", "retention_days": 1, "store_ip": "example"}Responses
Section titled “ Responses ”OK
object
object
object
Name is the dashboard identity, unique per project among live rows only — a soft-deleted form releases its name (uq_forms_project_name_active).
ProjectID is immutable after creation. This is enforced structurally rather than by a check: UpdateFormInput has no project_id field, so no code path can reassign it.
PublicID is immutable after creation: it is baked into the customer’s deployed HTML, so regenerating it would silently break every live form pointing at it.
Example
{ "data": { "source": "manual", "store_ip": "none" }}Bad Request
object
object
Example generated
{ "code": "example", "details": "example", "error": "example", "meta": { "request_id": "example", "timestamp": "example", "trace_id": "example" }}Unauthorized
object
object
Example generated
{ "code": "example", "details": "example", "error": "example", "meta": { "request_id": "example", "timestamp": "example", "trace_id": "example" }}Forbidden
object
object
Example generated
{ "code": "example", "details": "example", "error": "example", "meta": { "request_id": "example", "timestamp": "example", "trace_id": "example" }}Not Found
object
object
Example generated
{ "code": "example", "details": "example", "error": "example", "meta": { "request_id": "example", "timestamp": "example", "trace_id": "example" }}A form with this name already exists in this project
object
object
Example generated
{ "code": "example", "details": "example", "error": "example", "meta": { "request_id": "example", "timestamp": "example", "trace_id": "example" }}