I’ve used the cmd/bat methods here in the past but now they don’t appear to work and I get this message “Adding observation 265250089 to project 12294
curl: (35) schannel: next InitializeSecurityContext failed: CRYPT_E_NO_REVOCATION_CHECK (0x80092012) - The revocation function was unable to check revocation for the certificate.”
example:
set jwt=NEEDS A REAL VALUE
set project_id=12294
set observation_id=265214682 265223882 265230726 265250089
for %o in (%observation_id%) do ( echo Adding observation %o to project %project_id% & curl “https://api.inaturalist.org/v1/projects/%project_id%/add” -X “POST” -H “Content-Type: application/json” -H “Accept: application/json” -H “Authorization: %jwt%” -d “{"observation_id": %o}” & timeout 1 )
pause