Adding projects to Portfolios

I am attempting to add a project to a portfolio by POST to

https://app.asana.com/api/1.0/portfolios/[portfolio_gid]/addItem

I have tried it with &item=[project_gid] in the url and item=[project_gid] in the body

Either way I get back “No matching route for request”

And help would be appreciated

@Joe_Trollo @Ross_Grambo Can you help? Unfortunately I haven’t worked with the portfolios API yet.

EDIT:
"Never mind!"

Hi @mkoehler,

I just tried this and it worked when I put the item in the body. So it’s not clear on why it didn’t work for you, but here is my request in Postman:

image

1 Like

Thank you for the working Postman example. I was not wrapping the parameter in data { }.

1 Like