Posting lead to Imported List
We want to add the lead info using API and its not bulk pushing. We want to push the lead info after member registered in our application.
I got the code from github and successfully added but its added to No Acquisition program folder. I want to add it to Group List > Imported List > Pyar.com folder.
Pyar.com folder is created by us.
I try to push using " /rest/v1/lists/1006/leads.json " endpoint url and getting below error.
{"requestId":"14b16#1628c2c5613","success":false,"errors":[{"code":"1003","message":"Invalid id 'null' specified"}]}
Another issue is,
/rest/v1/lead/10.json
10 is the lead id.
i am getting only the field that marketo created and i created custom fields and not adding into the json response.
Response-
{"requestId":"14863#1628c3030cf","result":[{"id":8,"firstName":"Stephanie","lastName":"Wong","email":"stefatmovers@gmail.com","updatedAt":"2018-03-22T17:01:39Z","createdAt":"2018-03-22T17:01:40Z"}],"success":true}
I created custom fields -
PGGender
state
country
registered
unregistered
coming soon
Please help us