Creating a new program in marketo
Hi,
I am trying to create a new program in marketo using api calls.I am using the following post call according to documentation.
Function-Post
https://068-qnu-696.mktorest.com/rest/asset/v1/programs.json
Headers-
Authorization- Bearer "accesstoken"
Content-type-application/x-www-form-urlencoded
Body-name=new hello&folder={"id":14,"type":"Folder"}&description=Sample API Program&type=Default&channel=Email Blast&costs=[{"startDate":"2015-01-01","cost":2000}]
name=new hello&folder={"id":14,"type":"Folder"}&description=Sample API Program&type=Default&channel=Email Blast&costs=[{"startDate":"2015-01-01","cost":2000}]
But i am getting the following response-
{
"requestId": "c980#15a4b368a9c",
"success": false,
"errors": [
{
"code": "709",
"message": "Invalid folder type for program"
}
]
}
Can someone help fix this issue?