SOLVED

Re: Marketo API - How to create custom fields?

Go to solution
ernie
Level 2

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

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Oz_Platero
Level 6

Re: Marketo API - How to create custom fields?

Hello @ernie ,


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

View solution in original post

2 REPLIES 2
Oz_Platero
Level 6

Re: Marketo API - How to create custom fields?

Hello @ernie ,


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
Level 2

Re: Marketo API - How to create custom fields?

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