Reputation: 21
error": { "code": 400, "message": "Failed to fetch image from source_uri: https://drive.google.com/uc?id=xxxxxxxxxxxxxxxxxxxx", "status": "INVALID_ARGUMENT" }
Image { "contentUri": string, "altText": string, "properties": { object (MediaProperties) }, "sourceUri": string }
Upvotes: 1
Views: 802
Reputation: 1
I use this form
update = {
"requests": [{
{
"createItem": {
"item": {
"imageItem": {
"image": {
"sourceUri": https://drive.google.com/uc...
}
}
},
"location": {
"index": 0
}
},
},
]
}
service_form.forms().batchUpdate(
formId=form_id, body=update).execute()
Doc https://developers.google.com/forms/api/reference/rest/v1/forms/batchUpdate
Upvotes: 0