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

status-updates

#1

How do I update current_status through Google Apps Script?


#2

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


#3


#4

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


#5

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:


#6

@romankondratev no idea. Code seems correct.


#7

Perhaps the headers are incorrectly specified?