SOLVED

What is the default value set as the 'type' in /rest/asset/v1/folder/{id}/content.json method

Go to solution
Anonymous
Not applicable

What is the default value set as the 'type' in /rest/asset/v1/folder/{id}/content.json method

Hi,

When I'm calling the /rest/asset/v1/folder/{id}/content.json resource of Folders : Folder Controller it returns the content of the relevant Folder or the Program depending on the value you pass as the 'type'.

However, if you don't pass a value for the 'type' parameter, it takes the value as 'Folder'. Is this the correct behavior of this API resource?

I checked the Marketo documentation at [1] but it does not mention anything about it. Could you kindly confirm this?

[1] - http://developers.marketo.com/rest-api/endpoint-reference/asset-endpoint-reference/#!/Folders/getFol...

Regards,

Evanthika

Tags (1)
1 ACCEPTED SOLUTION

Accepted Solutions
SanfordWhiteman
Level 10 - Community Moderator

Re: What is the default value set as the 'type' in /rest/asset/v1/folder/{id}/content.json method

Yes, this is consistent, but undocumented.

View solution in original post

1 REPLY 1
SanfordWhiteman
Level 10 - Community Moderator

Re: What is the default value set as the 'type' in /rest/asset/v1/folder/{id}/content.json method

Yes, this is consistent, but undocumented.