gspread
gspread copied to clipboard
copy and transferOwnership
The code:
serviceAccount = gspread.service_account(filename='google-credentials.json')
serviceAccount.copy(file_id, title, copy_permissions=True, copy_comments=False)
return the following error with gspread 6.1.4
gspread.exceptions.APIError: APIError: [403]: The transferOwnership parameter must be enabled when the permission role is 'owner'.
But it works with gpsread 5.12.4.
It seems that the copy function has not been adapted to the new way of transferring ownership.
thanks for the issue :]
did Google change the way this API works?
do we have any links/documentation?
@alifeee you can check the doc here. https://developers.google.com/drive/api/reference/rest/v3/permissions/create
thanks :]
it seems we want to add a test or refresh the cassette if we have one. would you like to give this a go ?
otherwise, it may be waiting for a while ...