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

Body

application/json
jwtToken
string
required

Identifies the user who is editing their XP goal.

goalID
string
required

A 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"