Skip to Content

Update Form

Updates a form’s name or settings. Only the fields you include in the request body are changed.

PATCH /v1/forms/{formId}

Request

curl -X PATCH https://api.formtorch.com/v1/forms/a1b2c3d4e5 \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{"name": "Contact Us"}'

Path parameters

ParameterDescription
formIdThe 10-character form ID

Request body

All fields are optional. Only provided fields are updated.

FieldTypeDescription
namestringNew display name for the form

Response

Returns the updated form object.

{ "id": "a1b2c3d4e5", "name": "Contact Us", "projectId": "p9q8r7s6t5", "endpoint": "https://formtorch.com/f/a1b2c3d4e5", "submissionCount": 142, "createdAt": "2025-01-10T09:00:00.000Z", "updatedAt": "2025-03-15T10:00:00.000Z" }

Error responses

StatusCodeDescription
404form_not_foundNo form with this ID in your account
422validation_errorName is empty or too long
Last updated on