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

Body

application/json
userID
string
required

Identifies the user who is creating a card goal.

Example:

"user1"

cardsToRevise
string
required

The number of cards the user intends to revise for the current goal.

Example:

"5"

endDate
string
required

The date by which the user intends to achieve the card revision 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"