Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejs
titleRequest
collapsetrue
curl
    --header "X-API-KEY: <your-api-key>"
    --header "Content-Type: application/json"
    --request POST https://app.competitionlabs.com/api/<your-space-name>/competitions/AVaIeGLa4Zm8V4vzCObS/contests/
    -d '{{ "competitionType": "Leaderboard", "entrantMemberType": "Individual", "numberOfRounds": 1, "label": "TEST API Comp", "description": "test", "termsConditions": "test", "options": { "numberOfEntrants": { "minimum": 1 }, "products": [{ "name": "fruits", "productType": "UNKNOWN", "description": "", "adjustmentFactor": 1.0, "productRefId": "fruits", "actionAdjustmentFactors": [{ "ruleActionHelper": { "jsonClass": "RuleActionHelper", "name": "spin", "key": "spin", "description": "", "accountId": "FuyNjGYBZ-qHKtWicfwh", "system": false, "metadata": [], "created": "2019-05-17T08:35:08.984+00:00", "id": "EpTuxGoBfMYIl33APh04" }, "adjustmentFactor": 1.0 }], "productGroups": [ "" ], "metadata": [], "created": "2019-05-17T08:33:05.483+00:00", "id": "2THsxGoBkhPuXvX2WyHL" }], "autoStart": true, "autoStop": true, "scheduledDates": { "start": "2019-09-24T11:39:00.000+00:00", "end": "2019-09-24T12:39:00.000+00:00" }, "includeEntrantsWhere": { "filters": [], "must": [], "mustNot": [], "should": [], "shouldMatchAtLeast": 0 }, "optinRequiredForEntrants": true }}'

...