Update lead forms
This feature is currently in beta and not available to all apps, if you're interested in joining the beta, please reach out to your Pinterest account manager.
Update lead forms. Lead ads help you reach people who are actively looking for, and interested in, your goods and services. The lead form can be associated with an ad to allow people to fill out the form.
For more, see Lead ads.
Path parameters
Unique identifier of an ad account.
Request body
Example request
[
{
"completion_message": "Thank you for submitting. We will contact you soon.",
"disclosure_language": "By entering your personal information, you agree that your data will be collected and used.",
"name": "Lead Form 3/14/2023",
"policy_links": [
{
"label": "Copyright",
"link": "https://policy.pinterest.com/en/copyright"
}
],
"privacy_policy_link": "https://www.advertisername.com/privacy-policy",
"questions": [
{
"question_type": "CUSTOM",
"custom_question_field_type": "CHECKBOX",
"custom_question_label": "What is your favorite animal?",
"custom_question_options": [
"Dog",
"Cat",
"Bird",
"Turtle"
]
}
],
"status": "DRAFT"
}
]Response
The request has succeeded.
Example response
{
"items": [
{
"data": {
"completion_message": "Thank you for submitting. We will contact you soon.",
"disclosure_language": "By entering your personal information, you agree that your data will be collected and used.",
"name": "Lead Form 3/14/2023",
"policy_links": [
{
"label": "Copyright",
"link": "https://policy.pinterest.com/en/copyright"
}
],
"privacy_policy_link": "https://www.advertisername.com/privacy-policy",
"questions": [
{
"question_type": "CUSTOM",
"custom_question_field_type": "CHECKBOX",
"custom_question_label": "What is your favorite animal?",
"custom_question_options": [
"Dog",
"Cat",
"Bird",
"Turtle"
]
}
],
"status": "DRAFT"
},
"exceptions": [
{
"code": 2,
"message": "Advertiser not found."
}
]
}
]
}Changes
Changed in 2 of the 29 revisions of this API.1128
- ▲
added the new required request property
items/idnew-required-request-property
- ●
removed
LeadFormCommonsubschema #1subschema #3from theitems/request propertyallOflistrequest-property-all-of-removed
- ○
added the new optional request property
items/completion_messagenew-optional-request-property
- ○
added the new optional request property
items/disclosure_languagenew-optional-request-property
- ○
added the new optional request property
items/has_accepted_termsnew-optional-request-property
- ○
added the new optional request property
items/namenew-optional-request-property
- ○
added the new optional request property
items/policy_linksnew-optional-request-property
- ○
added the new optional request property
items/privacy_policy_linknew-optional-request-property
- ○
added the new optional request property
items/questionsnew-optional-request-property
- ○
added the new optional request property
items/statusnew-optional-request-property
- ○
added the non-success response with the status
401response-non-success-status-added
- ○
added the non-success response with the status
403response-non-success-status-added
- ○
added the non-success response with the status
404response-non-success-status-added
- ○
added the non-success response with the status
429response-non-success-status-added
- ○
added the optional property
items/items/data/ad_account_idto the response with the200statusresponse-optional-property-added
- ○
added the optional property
items/items/data/created_timeto the response with the200statusresponse-optional-property-added
- ○
added the optional property
items/items/data/disclosure_languageto the response with the200statusresponse-optional-property-added
- ○
added the optional property
items/items/data/policy_linksto the response with the200statusresponse-optional-property-added
- ○
added the optional property
items/items/data/statusto the response with the200statusresponse-optional-property-added
- ○
added the optional property
items/items/data/updated_timeto the response with the200statusresponse-optional-property-added
- ○
removed
LeadFormCommonsubschema #2from theitems/items/dataresponse propertyallOflist for the response status200response-property-all-of-removed
- ○
the response property
itemsbecame required for the status200response-property-became-required
- ○
the response property
items/items/exceptions/items/messagebecame required for the status200response-property-became-required
- ○
added the required property
items/items/data/completion_messageto the response with the200statusresponse-required-property-added
- ○
added the required property
items/items/data/has_accepted_termsto the response with the200statusresponse-required-property-added
- ○
added the required property
items/items/data/idto the response with the200statusresponse-required-property-added
- ○
added the required property
items/items/data/nameto the response with the200statusresponse-required-property-added
- ○
added the required property
items/items/data/privacy_policy_linkto the response with the200statusresponse-required-property-added
- ○
added the required property
items/items/data/questionsto the response with the200statusresponse-required-property-added
This revision also has 182 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲
- ○
endpoint added
endpoint-added
This revision also has 4 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○