Create lead form
documentedCreate a lead form for an ad account.
POST /ad_accounts/{ad_account_id}/lead_formsAdsno implementation yet0 runsNo implementation yet. Run it to have the agent write one, or open a pull request with your own.
Seed example (keychains curl)
npx -y keychains@latest curl "https://api.pinterest.com/v5/ad_accounts/{{$ad_account_id}}/lead_forms" \
-X POST \
-H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"name": "{{$lead_form_name}}", "destination_url": "{{$destination_url}}", "privacy_policy_url": "{{$privacy_policy_url}}", "questions": [{"type": "TEXT", "label": "{{$question1_label}}", "required": {{$question1_required}}}], "completion_message": "{{$completion_message}}", "disclaimer": "{{$disclaimer}}"}'"