Error response in upload file to comment from API


I am trying to upload csv file to update in MOnday using API and Curl. however I am getting html page in return and no output. can someone help me out what issue in below bash script

response=$(curl --location --request POST “$API_ENDPOINT”
–header “Authorization: $API_KEY”
–form “query=mutation ($file: File!) {
add_file_to_update (file: $file, update_id: $ITEM_ID) {id}
–form “variables[file]=@/home/jayant/$FILE_PATH”)

echo “$response”