diff --git a/bash/drive-utils.bash b/bash/drive-utils.bash index c2f92c8..5c640bd 100755 --- a/bash/drive-utils.bash +++ b/bash/drive-utils.bash @@ -508,7 +508,7 @@ _share_id() { -H "Authorization: Bearer ${token}" \ -H "Content-Type: application/json; charset=UTF-8" \ -d "${share_post_data}" \ - "${API_URL}/drive/${API_VERSION}/files/${id}/permissions" || :)" && _clear_line 1 1>&2 + "${API_URL}/drive/${API_VERSION}/files/${id}/permissions?supportsAllDrives=true&includeItemsFromAllDrives=true" || :)" && _clear_line 1 1>&2 _clear_line 1 1>&2 { _json_value id 1 1 <<< "${share_response}" 2>| /dev/null 1>&2 && return 0; } || diff --git a/bash/release/gupload b/bash/release/gupload index 9474ce6..6c00912 100755 --- a/bash/release/gupload +++ b/bash/release/gupload @@ -897,7 +897,7 @@ _share_id() { -H "Authorization: Bearer ${token}" \ -H "Content-Type: application/json; charset=UTF-8" \ -d "${share_post_data}" \ - "${API_URL}/drive/${API_VERSION}/files/${id}/permissions" || :)" && _clear_line 1 1>&2 + "${API_URL}/drive/${API_VERSION}/files/${id}/permissions?supportsAllDrives=true&includeItemsFromAllDrives=true" || :)" && _clear_line 1 1>&2 _clear_line 1 1>&2 { _json_value id 1 1 <<< "${share_response}" 2>| /dev/null 1>&2 && return 0; } || diff --git a/sh/drive-utils.sh b/sh/drive-utils.sh index 12990b6..c322ecd 100755 --- a/sh/drive-utils.sh +++ b/sh/drive-utils.sh @@ -513,7 +513,7 @@ _share_id() { -H "Authorization: Bearer ${token_share_id}" \ -H "Content-Type: application/json; charset=UTF-8" \ -d "${post_data_share_id}" \ - "${API_URL}/drive/${API_VERSION}/files/${id_share_id}/permissions" || :)" && _clear_line 1 1>&2 + "${API_URL}/drive/${API_VERSION}/files/${id_share_id}/permissions?supportsAllDrives=true&includeItemsFromAllDrives=true" || :)" && _clear_line 1 1>&2 _clear_line 1 1>&2 { printf "%s\n" "${response_share_id}" | _json_value id 1 1 2>| /dev/null 1>&2 && return 0; } || diff --git a/sh/release/gupload b/sh/release/gupload index fc38a22..d0232af 100755 --- a/sh/release/gupload +++ b/sh/release/gupload @@ -880,7 +880,7 @@ _share_id() { -H "Authorization: Bearer ${token_share_id}" \ -H "Content-Type: application/json; charset=UTF-8" \ -d "${post_data_share_id}" \ - "${API_URL}/drive/${API_VERSION}/files/${id_share_id}/permissions" || :)" && _clear_line 1 1>&2 + "${API_URL}/drive/${API_VERSION}/files/${id_share_id}/permissions?supportsAllDrives=true&includeItemsFromAllDrives=true" || :)" && _clear_line 1 1>&2 _clear_line 1 1>&2 { printf "%s\n" "${response_share_id}" | _json_value id 1 1 2>| /dev/null 1>&2 && return 0; } ||