POST
/
edit-xp-goal
curl --request POST \
  --url http://dolphinflashcards.com/api/edit-xp-goal \
  --header 'Content-Type: application/json' \
  --data '{
  "userID": "user123",
  "goalID": "goal1",
  "newEndDate": "15/07/2024",
  "newTitle": "title1",
  "newGoalXP": "40"
}'
{
  "success": "Goal updated successfully"
}

Body

application/json
userID
string
required

Identifies the user who is editing their XP goal.

goalID
string
required

A 77-digit unique identifier or key associated with the XP goal being edited.

Example:

"55335192866017507647804408894345572659406282731228567391554804537877046919111"

newEndDate
string
required

The new end date for the XP goal, formatted as dd/mm/yyyy.

Example:

"15/07/2024"

newTitle
string
required

The new title assigned to the XP goal.

Example:

"Updated Title for XP Goal"

newGoalXP
string
required

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

Example:

"80"

Response

200
application/json
OK.
success
string

Provides additional information confirming that the request was successful.

Example:

"Goal updated successfully"