Hello. I am running into issues trying to make API calls via urlencoded. I see in documents urlencoded is supported along with JSON. The platform I plan to use does not support JSON so I am forced to use urlencoded (to give some background).
I am using Postman for now to test.
Here is my request:
URL: https://app.asana.com/api/1.0/project_templates/1203024773680182/instantiateProject/
Header Body:
access_token: “unique token string goes here”
data[name]: “TesTDDD”
data[public]: “true”
data[team]: “1202624198223502”
data[is_strict]: “false”
Note: Again, the platform I plan to use has limited capabilities which is why the access_token is in my body. That portion seems to be working fine though.
Error from Postman:
{
“errors”: [
{
“message”: “Could not interpret data[is_strict] as an identifier in data[is_strict].”,
“help”: “For more information on API status codes and how to handle them, read the docs on errors: Build an app with Asana”
}
]
}
My biggest issue I think is I am unsure how to construct the data points for the body since data has embedded values. It looks right to me though so not sure what Asana endpoint is expecting that I am missing.
Any guidance would be greatly appreciated.
Thanks,