Edit Contest Entry

From KickApps Documentation

Jump to: navigation, search

This is a Premium feature - Please contact your Account Manager or Sales Representative to best utilize this feature.

This method is an admin only method that edits a contest entry for a given contest (by contestEntryId).

Contents

Authentication

Requires an Admin or Webmaster API Token.

Call Structure

http://api.kickapps.com/rest/contestentry/edit/{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.
rank int rank of this entry as selected by te site administrator (1 is the winner, 2 is 2nd place)
communityRank int Rank of this entry based on community voting and the Bayesian Ranking (1 is the winner, 2 is 2nd place)
published bool Is this entry published?

Response

Success

{
    "status": 1,
    "created": true,
    "contestEntryId": "1234"
}

Failure

{
    "status": -1,
    "errorId": "123",
    "error": "Error Message"
}

Error Codes

1 Invalid Token
7 invalid value for field (must be true or false)
1 communityRank must be a positive integer, or is missing
13 invalid userId
18 Insufficient user permissions for this operation.
26 field must be be from <X> to <Y> characters
40 contestId not found (or not an int).
41 contestEntryId not found (or not an int)
43 Invalid media reference
44 token required
53 contestId and contestEntryId mismatch