Skip to main content
Level 2
Oct 27, 2020 4:20 PM UTC
Solved

Marketo API - How to create custom fields?

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.
Oz_Platero
Oz_PlateroAccepted solution
Level 6
Oct 27, 2020 4:42 PM UTC

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

2 replies

Oz_Platero
Oz_PlateroAccepted solution
Level 6
Oct 27, 2020 4:42 PM UTC

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

Translate
ernie-1Author
Level 2
Oct 28, 2020 8:14 AM UTC

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

 

 

 

 

Translate