POST
/
move-flashcard-set
curl --request POST \
  --url http://dolphinflashcards.com/api/move-flashcard-set \
  --header 'Content-Type: application/json' \
  --data '{
  "jwtToken": "eyJ0eXAiOiJKV1QiLCJhbGciOiJFUzI1NiIsImtpZCI6ImEzMmZkZDRiMTQ2Njc3NzE5YWIyMzcyODYxYmRlZDg5In0.eyJpc3MiOiJodHRwOi8vZG9scGhpbmZsYXNoY2FyZHMuY29tIiwiYXVkIjoiYXBpIiwic3ViIjoidU5RR2lIencxdk9EaExybTVDRWtaQ1ZoTU93MSIsImFjY2Vzc190b2tlbiI6IjRiZTA2NDNmLTFkOTgtNTczYi05N2NkLWNhOThhNjUzNDdkZCIsImFjY2Vzc190b2tlbl9yYXciOiJ0ZXN0IiwiaWF0IjoxNzI2Nzc0MTYzfQ.F-fxFitPQF-gGHyhGPGxE_zj_b8XJybqe4J_iYG66BC4Dqm4LTb8RpcDLyYUhRCcpphihpWGbdp",
  "currentLocation": "My-first-folder",
  "flashcardID": "22456683691481111127441553357143855166282726011111761972795191711430217049598",
  "moveLocation": "My-third-folder"
}'
{
  "success": "The flashcard set at /users/user700430/flashcards/top-level-parent-name/parent-name-2/parent-name-3/flashcardName/6796878844881389968582206160161573797336081897254331165973477783999823937257 has been moved to My third folder"
}

Body

application/json
jwtToken
string
required

The identity of the user moving their flashcard set to a new location.

Example:

"eyJ0eXAiOiJKV1QiLCJhbGciOiJFUzI1NiIsImtpZCI6ImEzMmZkZDRiMTQ2Njc3NzE5YWIyMzcyODYxYmRlZDg5In0.eyJpc3MiOiJodHRwOi8vZG9scGhpbmZsYXNoY2FyZHMuY29tIiwiYXVkIjoiYXBpIiwic3ViIjoidU5RR2lIencxdk9EaExybTVDRWtaQ1ZoTU93MSIsImFjY2Vzc190b2tlbiI6IjRiZTA2NDNmLTFkOTgtNTczYi05N2NkLWNhOThhNjUzNDdkZCIsImFjY2Vzc190b2tlbl9yYXciOiJ0ZXN0IiwiaWF0IjoxNzI2Nzc0MTYzfQ.F-fxFitPQF-gGHyhGPGxE_zj_b8XJybqe4J_iYG66BC4Dqm4LTb8RpcDLyYUhRCcpphihpWGbdp"

currentLocation
string
required

The current folder path.

Example:

"My-first-folder"

flashcardID
string
required

A unique numerical identifier of the flashcard. This is different from cardID.

Example:

"22456683691481111127441553357143855166282726011111761972795191711430217049598"

moveLocation
string
required

The destination folder path.

Example:

"My-third-folder"

Response

200
application/json
OK. Returns the string: `"Flashcard not found in current location"` when supplied an invalid folder path.
success
string

Indicates that the flashcard set at the specified path has been successfully moved to a new folder.

Example:

"The flashcard set at /users/user700430/flashcards/top-level-parent-name/parent-name-2/parent-name-3/flashcardName/6796878844881389968582206160161573797336081897254331165973477783999823937257 has been moved to My third folder"