Skip to main content
PUT
Update Facebook Lead Ads automation

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

Facebook Lead Ads automation id. Get it from facebookLeadAds.list.

Pattern: ^\d+$

Body

application/json
name
string

New automation name.

Required string length: 1 - 100
fieldMapping
object[]

Mappings from lead form fields to contact/custom fields.

flowId

Flow id to start when a new lead arrives, or null to send no flow.

Response

OK

id
string
required
createdAt
string<date-time>
required
updatedAt
string<date-time>
required
name
string
required
pageId
string
required
pageName
string | null
required
formId
string
required
formName
string | null
required
fieldMapping
object[]
required
flowId
string | null
required
leadsHandledCount
integer
required
Required range: -2147483648 <= x <= 2147483647