update_x_ads_lead_form
Change an X lead form destructive
Description
Change an X lead form. Only the fields you pass change — but X replaces the fields list and each section (intro, thank-you page, privacy policy) WHOLE, so pass the complete new value of any you touch. An archived form cannot be changed. Read back from X. Free.
Parameters
| Parameter | Type | Description |
|---|---|---|
adAccountId | string | X ad account id (list_x_ads_accounts); omit if only one is shared |
accountId | string | older name for adAccountId (MCP only) |
leadFormIdrequired | string | lead form id from list_x_ads_lead_forms |
name | string | new internal name of the lead form |
purpose | string | what the leads are used for, shown to the person |
fields | object[] | replaces the whole field list; each entry as in create_x_ads_lead_form |
fields[].keyrequired | "EMAIL" | "PHONE_NUMBER" | "STREET_ADDRESS" | "CITY" | "STATE" | "COUNTRY" | "ZIP_CODE" | "FULL_NAME" | "FIRST_NAME" | "LAST_NAME" | "DATE_OF_BIRTH" | "COMPANY_NAME" | "JOB_TITLE" | "WORK_EMAIL" | "WORK_PHONE_NUMBER" | "GENDER" | "HANDLE" | lead field the form collects, from X's fixed list of lead field keys |
fields[].optional | boolean | true = the person may skip this field; at least one field must not be optional |
privacyPolicyUrl | string | https link to the privacy policy shown on the form |
companyName | string | company name shown on the form |
headline | string | intro card headline |
description | string | intro card text |
thankYouHeadline | string | thank-you page headline; X replaces the whole section |
thankYouDescription | string | thank-you page text; X replaces the whole section |
thankYouUrl | string | https link on the thank-you button |
thankYouButton | string | thank-you page button label |
conversionEventId | string | X Events Manager event id; needed when the account has no X Pixel |
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_x_ads_lead_form.
MCP (tools/call)
{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"update_x_ads_lead_form","arguments":{"leadFormId":"<string>"}}}
CLI
hermoso call update_x_ads_lead_form --json '{"leadFormId":"<string>"}'
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
create_x_ads_lead_formCreate an X lead formget_x_ads_leadsRead the leads from an X lead formlist_x_ads_lead_formsList X lead formsupload_x_ads_mediaUpload media to an X ad accountlist_x_ads_mediaList an X ad account’s Media Librarycreate_x_ads_cardBuild an X ad cardlist_x_ads_cardsList X ad cardscreate_x_ads_postWrite a promoted-only X post for adslist_x_ads_postsList the posts an X ad account can promotepreview_x_ads_postPreview an X ad post