Space.create in import mode

I am trying to create a space over chat API and I keep getting this error:

GoogleJsonResponseException: API call to chat.spaces.create failed with error: Creating a space in import mode requires the chat.import authorization scope.

I have these scopes setup in appscript.json:

“oauthScopes”: [

https://www.googleapis.com/auth/chat.import”

]

Can anybody help?
Thanks

1 Like