# duplicateForm

Copy a form: its fields, steps and settings, never its submissions or analytics. name defaults to "<name> copy". Returns the new form.

- Call: `POST https://server.goliathdata.com/api/v1/call` with `{ "operationId": "duplicateForm", "variables": {...} }`
- Scope: `WRITE`
- Type: mutation
- Idempotency: honors `Idempotency-Key` (24 h)
- Rate-limited: no

## Variables

- `formId`: `ID!` (required)
- `name`: `String`

## Response (data, an example)

```json
{
  "embedFormMutation": {
    "duplicate": {
      "id": "<ID>",
      "name": "…"
    }
  }
}
```

## Example

```bash
curl https://server.goliathdata.com/api/v1/call \
  -H "Authorization: Bearer $GOLIATH_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "operationId": "duplicateForm",
    "variables": {
      "formId": "<formId>"
    }
  }'
```
