How do I update `current_status` through Google Apps Script?

How do I update current_status through Google Apps Script?

Do you have a way to share the request that was sent?

I indeed don’t see any issue here… @Diakoptis any idea?

This code works from the terminal:

curl --request PUT -H “Authorization: Bearer :token” -H “Content-Type: application/json” https://app.asana.com/api/1.0/projects/:projects -d ‘{“data”: {“notes”: “Any notes!”, “current_status”: { “color” : “green”, “text” : “Any text!” } } }’

And this code does not work in Google Apps Script:

@romankondratev no idea. Code seems correct.

Perhaps the headers are incorrectly specified?