API reference
PublishForm
Publish a form's draft as its live version. Write access, forms toolset, MCP tool publish_form. Part of the MISSIN public API: call it with an API key, or…
Access: Write
Variables
| Variable | Type | Required | Accepts | Description |
|---|---|---|---|---|
input | PublishFormInput! | yes | Input object, below |
Input types
PublishFormInput
| Field | Type | Required | Accepts | Description |
|---|---|---|---|---|
formId | UUID! | yes | ||
shares | [PromotionShareInput!] | no | PromotionShareInput. at least 1 items | The full promotion split, required when other forms are already published. Omitted for the workspace's only published form (it takes 100% as main). |
Call it
bash
curl https://api.missin.co.uk/graphql/v1 \
-H "Authorization: Bearer $MISSIN_API_KEY" \
-H "Content-Type: application/json" \
-d '{"operationName":"PublishForm","variables":{"input":{"formId":"00000000-0000-0000-0000-000000000000"}},"extensions":{"persistedQuery":{"version":1,"sha256Hash":"ca1e418a71d7e1f824338e971f1886eb0bf7d0c1adbafd9b115746553a1572c2"}}}'Document
graphql
mutation PublishForm($input: PublishFormInput!) { __typename publishForm(input: $input) { __typename formId snapshotId userErrors { __typename code field message } version } }