Automette docs

Update a form

PATCH
/api/v1/forms/{id}

Authorization

ApiKeyAuth
AuthorizationBearer <token>

API key from Settings → API Keys.

In: header

Path Parameters

id*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Properties1 <= properties

Response Body

application/json

application/json

application/json

application/json

curl -X PATCH "https://example.com/api/v1/forms/string" \  -H "Content-Type: application/json" \  -d '{    "title": "Book a trial class",    "fields": [      {        "key": "parent_name",        "type": "text",        "label": "Your name",        "required": true      },      {        "key": "parent_email",        "type": "email",        "label": "Email",        "required": true      },      {        "key": "heard_from",        "type": "text",        "label": "How did you hear about us?"      }    ]  }'
{  "id": "cm4frm2xy0001kp04a7c9v1de",  "title": "Book a trial class",  "status": "published",  "version": 2,  "warnings": [    "Removed field \"message\".",    "Dropped 1 conditional logic rule(s) that depended on a removed field."  ]}