Marketo API - How to create custom fields? | Community
Skip to main content
New Participant
October 27, 2020
Solved

Marketo API - How to create custom fields?

  • October 27, 2020
  • 1 reply
  • 3493 views

Hello marketo community! 

 

Using the interface, one can create new custom fields. More specifically via --> Admin --> Lead Management --> Create new custom field -> and filling out the required information on the pop-up and hitting save.

 

Now, let's say that you have a list of 40 custom fields that you need to create, and that you have to do this every once in a while. 

 

How can one automate this process via the Marketo API? Is it even possible to create custom fields via the API? 

 

I checked the docs and could only find information on how to update a custom field (https://developers.marketo.com/blog/create-a-custom-field-in-marketo-and-update-this-field-via-api/). 

 

But I cannot find any info in the docs, or in the Marketo community on how to create custom fields via the API.

 

Any help would be much appreciated!

 

Best, Ernie

 

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Oz_Platero

Hello @ernie-1 ,


I do not see that as an option here:  https://developers.marketo.com/rest-api/endpoint-reference/endpoint-index/

 

It looks like you can for custom objects but not the standard objects.

End point:   /rest/v1/customobjects/schema/{apiName}/addField.json

1 reply

Oz_Platero
Oz_PlateroAccepted solution
New Participant
October 27, 2020

Hello @ernie-1 ,


I do not see that as an option here:  https://developers.marketo.com/rest-api/endpoint-reference/endpoint-index/

 

It looks like you can for custom objects but not the standard objects.

End point:   /rest/v1/customobjects/schema/{apiName}/addField.json

ernie-1Author
New Participant
October 28, 2020

Hi @oz_platero 

 

Thanks for your comment! 

 

I double checked the endpont-index, and there is no reference to creating custom lead fields via the API.

 

So it seems like it's not currently possible

 

Have a good one! 

/ernie