Sketchfab Forum

Authentication token not provided


(Nathaneltitane) #1

Hello all,

Currently updating my BASH batch upload/update script to V3 and seem to be experiencing issues with auth token:

"{"detail":"Authentication credentials were not provided."}"

Can someone validate the current syntax?

update () {
curl -# -k -X PUT \
-H 'Content-Type: multipart/form-data' \
-H 'Accept: application/json' \
-H "Authorization: Token ${token}" \
-F "modelFile=@${file}" \
-F "name=${filename}" \
-F "description=${description}" \
-F "password=${password}" \
-F "private=${private}" \
-F "tags=${tags}" \
'https://api.sketchfab.com/v3/models' > "${id_file}"
}

Thank you.


#2