Update api.rst

fix curl example for uploading a report