Skip to main content

Create a new quest for projectId

POST 

/quest

Create a new quest for projectId

Request

Body

Quest data

    expiresAt date-timenullable

    Expiration date for the quest

    questTypeId stringrequired

    Unique identifier for the QuestType

    data string

    Quest-specific data in JSON format

    prerequisites questId (string)[]nullable

    List of prerequisite quests that must be completed before starting this quest

    userQuestsLimit integer

    Maximum allowed number of times for the quest to be completed by a single user

    refereeQuestId stringnullable

    Unique identifier for the referee quest

    descriptions string

    Detailed descriptions of the different stages/applications of the quest

    points integerrequired

    Possible values: <= 1000000

    The amount of points you gain after finishing the quest

    periodic questPeriodic (string)

    Possible values: [daily, weekly, monthly, hourly]

    rankOrder integer

    The order in which the quest should be displayed

    state questState (string)

    Possible values: [open, closed]

    thumbnail stringnullable

    URL to the quest's thumbnail image

    projectId projectId (string)required

    Unique identifier for Project

    name questName (string)required

    Possible values: <= 64 characters

    Name of the quest

    id questId (string)

    Unique identifier for Quest

Responses

Quest successfully created

Schema

    referrerQuestId string

    Unique identifier for the referrer quest

    expiresAt date-timenullable

    Expiration date for the quest

    questTypeId stringrequired

    Unique identifier for the QuestType

    data string

    Quest-specific data in JSON format

    prerequisites questId (string)[]nullable

    List of prerequisite quests that must be completed before starting this quest

    userQuestsLimit integer

    Maximum allowed number of times for the quest to be completed by a single user

    refereeQuestId stringnullable

    Unique identifier for the referee quest

    descriptions string

    Detailed descriptions of the different stages/applications of the quest

    points integerrequired

    Possible values: <= 1000000

    The amount of points you gain after finishing the quest

    userQuestCount integer

    Number of times this quest has been completed.

    myUserQuestCount integer

    Number of times this quest has been completed by the current user

    maxStage integer

    The index of the last stage (0 if not a StagesQuest)

    periodic questPeriodic (string)

    Possible values: [daily, weekly, monthly, hourly]

    rankOrder integer

    The order in which the quest should be displayed

    createdAt date-time

    Time representation of entity creation

    state questState (string)

    Possible values: [open, closed]

    thumbnail stringnullable

    URL to the quest's thumbnail image

    projectId projectId (string)required

    Unique identifier for Project

    name questName (string)required

    Possible values: <= 64 characters

    Name of the quest

    id questId (string)

    Unique identifier for Quest

Loading...