Skip to main content

PUT /v1/forms/:id

Updates the details of a specific form by its unique ID.

Path Parameters

Body Parameters

Example Request

curl -X PUT "https://api.example.com/v1/forms/form_123" \
     -H "Authorization: Bearer <YOUR_API_KEY>" \
     -H "Content-Type: application/json" \
     -d '{
       "title": "Updated Contact Form Title"
     }'

Example Response

{
  "id": "form_123",
  "name": "Contact Form",
  "slug": "contact-form",
  "title": "Updated Contact Form Title",
  "description": "A simple contact form.",
  "status": "published",
  "fields": [
    { "id": "name", "type": "text", "label": "Name", "required": true },
    { "id": "email", "type": "email", "label": "Email", "required": true }
  ],
  "settings": null,
  "notification_emails": [],
  "created_by": "user_456",
  "created_at": "2023-01-01T00:00:00.000Z",
  "updated_at": "2023-01-02T00:00:00.000Z"
}