Craig
Craig

Reputation: 4399

Google Drive file properties - how to set multiple properties in one request?

Using the following API allows you to obtain multiple properties assigned to a file:

props = service.properties().list(fileId=fileId).execute().get('items', [])

However, I don't see any way to set multiple properties. Is this just missing from the documentation, or have Google really overlooked this?

Upvotes: 0

Views: 215

Answers (1)

pinoyyid
pinoyyid

Reputation: 22306

Think of properties as a list, rather than a map. So the answer is no.

To save http traffic you could batch your requests as described here https://code.google.com/p/google-api-java-client/wiki/Batch

Upvotes: 1

Related Questions