Skip to main content

Create a new quest for projectId

POST 

/quest

Create a new quest for projectId

Request

Body

Quest data

    name questName (string)required

    Possible values: <= 64 characters

    Name of the quest

    id questId (string)

    Unique identifier for Quest

    questTypeId stringrequired

    Unique identifier for the QuestType

    thumbnail stringnullable

    URL to the quest's thumbnail image

    refereeQuestId stringnullable

    Unique identifier for the referee quest

    descriptions string

    Detailed descriptions of the different stages/applications of the quest

    state questState (string)

    Possible values: [open, closed]

    data string

    Quest-specific data in JSON format

    points integerrequired

    Possible values: <= 1000000

    The amount of points you gain after finishing the quest

    rankOrder integer

    The order in which the quest should be displayed

    prerequisites questId (string)[]nullable

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

    projectId projectId (string)required

    Unique identifier for Project

    userQuestsLimit integer

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

    expiresAt date-timenullable

    Expiration date for the quest

    periodic questPeriodic (string)

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

Responses

Quest successfully created

Schema

    name questName (string)required

    Possible values: <= 64 characters

    Name of the quest

    id questId (string)

    Unique identifier for Quest

    questTypeId stringrequired

    Unique identifier for the QuestType

    createdAt date-time

    Time representation of entity creation

    maxStage integer

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

    thumbnail stringnullable

    URL to the quest's thumbnail image

    refereeQuestId stringnullable

    Unique identifier for the referee quest

    descriptions string

    Detailed descriptions of the different stages/applications of the quest

    myUserQuestCount integer

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

    state questState (string)

    Possible values: [open, closed]

    userQuestCount integer

    Number of times this quest has been completed.

    data string

    Quest-specific data in JSON format

    points integerrequired

    Possible values: <= 1000000

    The amount of points you gain after finishing the quest

    rankOrder integer

    The order in which the quest should be displayed

    prerequisites questId (string)[]nullable

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

    projectId projectId (string)required

    Unique identifier for Project

    referrerQuestId string

    Unique identifier for the referrer quest

    userQuestsLimit integer

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

    expiresAt date-timenullable

    Expiration date for the quest

    periodic questPeriodic (string)

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

Loading...