In SPARQL, query and update are different operations. In Fuseki, they reside on different endpoints (so query can be be more widely accessible than update).
You are calling the query endpoint (.../query or .../sparql usually) ; you need to call the update (.../update).