POST
/
create-xp-goal
curl --request POST \
  --url http://dolphinflashcards.com/api/create-xp-goal \
  --header 'Content-Type: application/json' \
  --data '{
  "userID": "123",
  "goalXP": "100",
  "endDate": "30/07/2024"
}'
{
  "success": "Goal created successfully"
}

Body

application/json
userID
string
required

Identifies the user who is creating an XP goal.

Example:

"user1"

goalXP
string
required

The desired amount of experience points (XP) the user aims to achieve with this goal.

Example:

"100"

endDate
string
required

The date by which the user intends to achieve the XP goal, in dd/mm/yyyy format.

Example:

"30/07/2024"

Response

200
application/json
OK
success
string

Provides additional information confirming that the request was successful.

Example:

"Goal created successfully"