update_openai_ads_lead_form
Save a new draft of a ChatGPT Ads lead form destructive
Description
Save a NEW DRAFT REVISION of a ChatGPT Ads lead form (the whole definition: name + fields are replaced). expectedDraftRevisionId must be the draftRevisionId you last read — ChatGPT Ads refuses a stale one so two editors cannot clobber each other. The published version is untouched until publish_openai_ads_lead_form.
Parameters
| Parameter | Type | Description |
|---|---|---|
leadFormIdrequired | string | lead form id to edit |
expectedDraftRevisionIdrequired | string | draftRevisionId from the last read; refused if stale |
namerequired | string | lead form name; the whole definition is replaced |
privacyPolicyUrl | string | privacy policy URL shown with the form |
fieldsrequired | object[] | all form questions in order; replaces the whole field list |
fields[].fieldIdrequired | string | your stable key for the field, e.g. email |
fields[].fieldTyperequired | "text" | "choice" | text, or choice (choice needs options) |
fields[].labelrequired | string | question text shown to the person |
fields[].required | boolean | true = the person must answer this question |
fields[].options | string[] | answer choices; choice fields only |
Example call
Every required parameter is shown, filled from the schema where it gives a value and otherwise with a placeholder naming the type. Replace the placeholders with real values. The same call works on the MCP server, the CLI and POST https://app.hermoso.ai/v1/tools/update_openai_ads_lead_form.
MCP (tools/call)
{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"update_openai_ads_lead_form","arguments":{"leadFormId":"<string>","expectedDraftRevisionId":"<string>","name":"<string>","fields":"<array>"}}}
CLI
hermoso call update_openai_ads_lead_form --json '{"leadFormId":"<string>","expectedDraftRevisionId":"<string>","name":"<string>","fields":"<array>"}'
Credits
Credits are spent only on two things: running an AI model (image, video, voice, text, planning, post-production) and Ad Spy research. See Credits & costs.
Related tools
publish_openai_ads_lead_formPublish a ChatGPT Ads lead formget_openai_ads_lead_formRead a ChatGPT Ads lead formcreate_openai_ads_lead_formCreate a ChatGPT Ads lead form (draft)archive_openai_ads_lead_formArchive a ChatGPT Ads lead formlist_openai_ads_lead_formsList ChatGPT Ads lead formstest_openai_ads_lead_formSend a synthetic test leadlist_openai_ads_lead_syncList ChatGPT Ads lead-sync subscriptionsset_openai_ads_lead_syncProvision ChatGPT Ads lead delivery (webhook)list_openai_ads_leadsChatGPT Ads leads receiveddelete_openai_ads_lead_syncDelete a ChatGPT Ads lead-sync subscription