In the Google documentation about it is not written, I use retrofit 2. Help. Write what request should be sent and what parameters to transmit
interface:
It's there in the documentation https://developers.google.com/drive/v2/reference/files/patch
You need to send an HTTP PATCH request
PATCH https://www.googleapis.com/drive/v2/files/{fileId}
RequestBody:
{"title":"newTitle"}
For version 3 https://developers.google.com/drive/v3/reference/files/update
PATCH https://www.googleapis.com/drive/v3/files/{fileId}
RequestBody:
{"name":"newTitle"}