Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

resourceName missing in response of Google chat media upload method

I'm using the media.upload method for uploading files in google chat. The documentation for the same is here links to google chat upload method docs 

According to google document response should be of following format.

{ "resourceName": string, "attachmentUploadToken": string }

But I'm getting a response with only attachmentUploadToken and resourceName is missing in the response.

resourceName is a required parameter for downloading the file.

API that I used:
 POST https://chat.googleapis.com/upload/v1/spaces/AAAA5XYqpEE/attachments:upload?filename=heyo.pdf

Wanted to check if there is an issue with my use of API or is this a bug from the API's end.

0 REPLIES 0