bad_files
HTTP 400 · Uploading versions
What it means
files isn't a list of files in the shape the call takes.
What to do
Give files as a list of { path, content_base64 } or { path, size_bytes, sha256 }, as the call's input schema shows.
The error's own fix says what to do in that case, and comes first. Search the forum for others who hit it, or see every error.