For the complete documentation index, see llms.txt. This page is also available as Markdown.

Update form

Rename a form and/or change its status.

Update form

patch

Rename a form and/or change its status.

Setting a draft or paused form to active takes it live: its latest saved design is published and visitors can submit it. paused and draft stop the form from accepting submissions. A form is not reachable by visitors until it is taken live. Design changes saved while the form is already active stay unpublished until the form is paused and set to active again. Renaming does not rename the automatic form:{name} tag.

Authorizations
AuthorizationstringRequired

API Token authentication

Path parameters
profileUuidstringRequired

Profile uuid parameter

Example: 550e8400-e09b-41d4-a716-400055000000
formUuidstringRequired

Form uuid parameter

Example: 550e8400-e09b-41d4-a716-400055000000
Body

Rename a form and/or change its status. Send at least one field.

namestring · max: 255Optional

Form name. Letters, digits, spaces and - . ' _ only.

Example: Newsletter signupPattern: ^[\p{L}\p{M}\p{N}\s\-.'_]+$
statusstring · enumOptional

active takes the form live, paused and draft stop it accepting submissions.

Example: activePossible values:
Responses
200

Success response

application/json
uuidstringOptionalExample: 550e8400-e29b-41d4-a716-446655440000
namestringOptionalExample: Newsletter signup
statusstring · enumOptional

A paused form keeps its template online but stops accepting submissions.

Example: activePossible values:
typestring · enumOptionalExample: formPossible values:
created_atstring · date-timeOptionalExample: 2025-02-27T11:54:22Z
updated_atstring · date-time · nullableOptionalExample: 2025-03-04T09:12:07Z
patch/api/reach/v1/profiles/{profileUuid}/forms/{formUuid}
PATCH /api/reach/v1/profiles/{profileUuid}/forms/{formUuid} HTTP/1.1
Host: developers.hostinger.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 46

{
  "name": "Newsletter signup",
  "status": "active"
}
{
  "uuid": "550e8400-e29b-41d4-a716-446655440000",
  "name": "Newsletter signup",
  "status": "active",
  "type": "form",
  "template": {
    "uuid": "2080cc86-e026-4f7b-9598-d4132f8c7c2f",
    "path": "forms/8f2c1b9e-1f4a-4a1e-9a2b-2f3c4d5e6f70/9a1b2c3d.html"
  },
  "created_at": "2025-02-27T11:54:22Z",
  "updated_at": "2025-03-04T09:12:07Z"
}

Last updated

Was this helpful?