Remove Contest Entry

From KickApps Documentation

Jump to: navigation, search
This method removes a contest entry from a given contest (by contestEntryId). A user token can only remove an entry that belongs to that user. An administrator (webmaster/admin/editor) can remove any entry. No entry can be removed after the contest voting period has ended (except by an administrator).

Contents

Authentication

This method requires a authenticated user token from any type of user.

Call Structure

http://api.kickapps.com/rest/contestentry/remove/{asid}

URL Arguments

{asid} required The site Id to search. as is unique for each of the affiliate's sites.

HTTP Headers

HTTP Method must be POST

Post Arguments

t required the user token generated via the "Create Token" API call.
contestId int,required The ID of the contest.
contestEntryId int,required The ID of the contest entry.
callback String The name of your JavaScript callback function.

Response

Success

{

   "status": 1,
   "removed": True,
   "contestEntryId": "1234"

}

Failure

{

   "status": -1,
   "errid": "123",
   "error": "Error Message"

}

Error Codes

1 Invalid Token
40 contestId not found (or not an int).
41 contestEntryId not found (or not an int)
44 token required
73 You can only remove a contest entry that belongs to you (unless you’re an administrator)
74 You cannot remove a contest entry after voting has ended (unless you’re an administrator)