Skip to main content
URL: https://xapi.duelduck.com/admin/duel/edit Updates editable fields of an existing prediction (question, source of truth, logo URL, prediction info, deadline). The action is recorded in the audit log.

Parameters

NameTypeHeaderRequiredDescription
AuthorizationstringBearer
<refresh_token>
yesAuthorization
Bearer token

Request

Prediction edit request. Type: object. Request content type: application / json . Body:
{
  "deadline": "string",
  "duel_info": {
    "additionalProp1": "string",
    "additionalProp2": "string",
    "additionalProp3": "string"
  },
  "duel_type": "string",
  "id": "string",
  "logo_url": "string",
  "question": "string",
  "source_of_truth": "string"
}

Responses

Response content type: application / json .

Code 200

Duel updated successfully.

Code 400

Invalid request data.
{
  "message": "string",
  "status": 0
}

Code 401

Unauthorized.
{
  "message": "string",
  "status": 0
}

Code 403

Admin permission required.
{
  "message": "string",
  "status": 0
}

Code 500

Internal server error.
{
  "message": "string",
  "status": 0
}