Hi folks,

I’ve recently run into an issue when trying to stop some ongoing measurements 
that I created.
I’ve tried two approaches:

1. Using the Cousteau API wrapper:

from ripe.atlas.cousteau import AtlasStopRequest
stop_request = AtlasStopRequest(msm_id=m_id, key=API_KEY)
success, response = stop_request.create()

2. Attempting a raw DELETE via the API

I attempted to stop them using the DELETE method via the /measurements/{id}/ 
endpoint.

These two approaches worked for some measurmeents but then I get the following 
error:

 {"error":{"detail":"That measurement cannot be 
stopped","status":400,"title":"Bad Request","code":104}}

3. Using raw PATCH via the API

I then tried to use a PATCH request to update the stop_time to a timestamp in 
the past. Here I get no error but the measurements are not updated.
All these measurements appear under my user account and are marked as 
“Ongoing.” I’m unsure why they can’t be stopped.

Could you please advise on:
        1.      Why these measurements might be undeletable?
        2.      Whether there’s an alternative way to terminate them?

Thanks in advance for your help!

Best,
Loqman
-----
To unsubscribe from this mailing list or change your subscription options, 
please visit: https://mailman.ripe.net/mailman3/lists/ripe-atlas.ripe.net/
As we have migrated to Mailman 3, you will need to create an account with the 
email matching your subscription before you can change your settings. 
More details at: https://www.ripe.net/membership/mail/mailman-3-migration/

Reply via email to