hermosodocs

update_openai_ads_lead_form

Save a new draft of a ChatGPT Ads lead form destructive

Area: ChatGPT ADS BREADTH · Ad campaign management. Generated from the running MCP server, like the rest of the tool reference.

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

ParameterTypeDescription
leadFormIdrequiredstringlead form id to edit
expectedDraftRevisionIdrequiredstringdraftRevisionId from the last read; refused if stale
namerequiredstringlead form name; the whole definition is replaced
privacyPolicyUrlstringprivacy policy URL shown with the form
fieldsrequiredobject[]all form questions in order; replaces the whole field list
fields[].fieldIdrequiredstringyour stable key for the field, e.g. email
fields[].fieldTyperequired"text" | "choice"text, or choice (choice needs options)
fields[].labelrequiredstringquestion text shown to the person
fields[].requiredbooleantrue = the person must answer this question
fields[].optionsstring[]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.

All 759 Ad campaign management tools · tools.json