Not able to access variable from JS query to the REST api query

Taking a look at this as well! Just to double check, are you trying to pass in additionalScope from your save_details JS query to your upload_thumbnail query?