curl --request POST \
--url http://dolphinflashcards.com/api/create-quest \
--header 'Content-Type: application/json' \
--data '{
"jwtToken": "<string>",
"deadline": "2023-11-07T05:31:56Z",
"questType": "cards_revised",
"questSubType": "monthly",
"quantity": 123
}'
{
"message": "Quest created successfully",
"quest": {
"quest_id": "<string>",
"title": "<string>",
"deadline": "2023-11-07T05:31:56Z",
"quest_type": "<string>",
"quest_sub_type": "<string>",
"quantity": 123,
"progress": 123,
"participants": [
{
"user_id": "<string>",
"status": "<string>",
"progress": 123,
"isOwner": true
}
]
}
}
Create a new quest and add the user as a participant(owner from the quest).
curl --request POST \
--url http://dolphinflashcards.com/api/create-quest \
--header 'Content-Type: application/json' \
--data '{
"jwtToken": "<string>",
"deadline": "2023-11-07T05:31:56Z",
"questType": "cards_revised",
"questSubType": "monthly",
"quantity": 123
}'
{
"message": "Quest created successfully",
"quest": {
"quest_id": "<string>",
"title": "<string>",
"deadline": "2023-11-07T05:31:56Z",
"quest_type": "<string>",
"quest_sub_type": "<string>",
"quantity": 123,
"progress": 123,
"participants": [
{
"user_id": "<string>",
"status": "<string>",
"progress": 123,
"isOwner": true
}
]
}
}
Quest created successfully.
The response is of type object
.