Post

2 followers Follow
0
Avatar

Creating a New View via the API

Hey guys, 

 

I am trying to create a view based on a tag, but I am getting an "Unexpected" error when I do this. Here is my JSON post:

{ "name": "View Name", "sort_by": "title", "filters": [ { "key": "tags", "values": "2016-03-01" } ], "grouping": null }

Here is the JSON response: 

{"error_parameters":{},"error_detail":null,"error_propagate":false,"request":{"url":"http:\/\/api.podio.com\/view\/app\/14965810","query_string":"","method":"POST"},"error_description":"An unexpected error occured during execution","error":"unexpected"}

 

Any Idea what is causing this?

Aaron Biehl

Please sign in to leave a comment.

3 comments

0
Avatar

I checked our logs. It looks like your POST request is missing the body.
I'll make the error message a bit better.

br
Marek

Marek Hruzik 0 votes
0
Avatar

Looks like I forgot to set the CURL parameters, but now I've made sure to do that and I'm still getting the same error. Can you check again?

Thanks!

Aaron Biehl 0 votes
0
Avatar

Our API does not like this:
   "grouping": null

Remove it or change it to:
   "grouping": {}

I'll fix API to accept null next week.

br
Marek

Marek Hruzik 0 votes