POST
/
edit-card-goal
Edit Card Goal
curl --request POST \
  --url http://dolphinflashcards.com/api/edit-card-goal \
  --header 'Content-Type: application/json' \
  --data '{
  "userID": "123",
  "goalID": "goal1",
  "newEndDate": "30/07/2024",
  "newTitle": "title1",
  "newCardsToRevise": "4"
}'
{
  "success": "Goal updated successfully"
}

Body

application/json
userID
string
required

Identifies the user who is editing their card goal.

Example:

"user1"

goalID
string
required

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

Example:

"11110748168480479028433924465493243860761911102946223297681236368808083322222"

newEndDate
string
required

The new end date for the card goal, in dd/mm/yyyy format.

Example:

"30/07/2024"

newTitle
string
required

The new title assigned to the card goal.

Example:

"Updated Goal"

newCardsToRevise
string
required

Specifies the updated number of cards the user intends to revise for this goal.

Example:

"4"

Response

OK

success
string

Provides additional information confirming that the request was successful.

Example:

"Goal updated successfully"