bad_publish_when_approved
HTTP 400 · Uploading versions
What it means
publish_when_approved isn't true or false.
What to do
Give publish_when_approved as true or false.
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.