Unable to delete activity

411 views
Skip to first unread message

Matt Jamieson

unread,
Mar 18, 2015, 4:16:37 PM3/18/15
to strav...@googlegroups.com
Hi,

I can successfully upload a GPS trace via the API but I don't seem to be able to delete them (the app does have read/write permissions).

I'm submitting a httpDelete for the following url, with the auth token in the header:


the ID I'm using seems to be valid as I can browse to it on the website:


and this is the ID that shows up when uploading etc...

The error I'm getting is

{"message":"Record Not Found","errors":[{"resource":"Activity","field":"id","code":"invalid"}]}

Seems I'm missing something basic but I can't think what..

David Spence

unread,
Mar 18, 2015, 4:20:53 PM3/18/15
to strav...@googlegroups.com
There shouldn't be a colon before the activity id.

Matt Jamieson

unread,
Mar 18, 2015, 4:33:10 PM3/18/15
to strav...@googlegroups.com
Thanks David, that was exactly it. Originally I was getting authorization errors with the colon removed, but it turns out that's because I only had 'write' access and was trying to delete an activity marked as private. I updated the access scope and removed the colon and all is working well!

Cheers,

Gábor Németh

unread,
Jan 22, 2017, 3:17:20 PM1/22/17
to Strava API
Has anybody else experienced lately, that deleting an activity via REST API does not work?
I have write and view_private scopes, still receive HTTP 401. Accessing private activities works well.

Mateo Ortega

unread,
Jan 24, 2017, 5:46:49 PM1/24/17
to Strava API
Gábor,

It was listed in the API changelog, but that got moved to an application-level permission in addition to still needed the write scope on the token. The API docs say to mall developers@, but feel free to email directly with your request for delete access.

Mateo

Gábor Németh

unread,
Jan 25, 2017, 5:23:11 PM1/25/17
to Strava API
Mateo,

Thank you for the info. I haven't followed the changelog until now :) Going to drop a mail.
Reply all
Reply to author
Forward
0 new messages