Backendless Support
 
Waiting for user's response

"code":12014,"message":"The version is not found" Rest API

curl \

-H application-id:B1C50FB0-5D98-6BCF-FF60-C2F9C44EFF00 \

-H secret-key:xxx \

-X DELETE \

-v https://api.backendless.com/console/appversion/v1/data/tables/DailyRanking14/all

Am I doing something wrong? thanks

Leave a Comment

Comments (3)

photo
1

The URL of the file is wrong - you're using the URL which is accessible through console. That URL is available only for the app developer, but cannot be used from the API.

Take a look at the URL format in the doc for "File deletion:

https://backendless.com/documentation/files/rest/files_file_deletion.htm

photo
1

Thanks for your quick answer Mark

Your link is about the file API, not sure if that applies to my problem or not

I'm trying to delete all the rows of a table(DailyRanking14) through the Rest API that I bought in the marketplace. I know I can use the bulk delete from the free console API but I wanted to use some of the functionality I'm paying for(very cheap by the way)

My url was based on this documentation

https://docs.google.com/document/d/1GCTuE3DD3R-T2cfi5vMZzP8WbWXRYLBH2MxRTOsqfuY/edit#heading=h.czsfop8m6zia

photo
1

Hi Alfredo,

The <versionid> field means version ID, not version name. You can retrieve the mappings via this route: https://docs.google.com/document/d/1GCTuE3DD3R-T2cfi5vMZzP8WbWXRYLBH2MxRTOsqfuY/edit#heading=h.tq4poxhp7ee8