curl --request POST \
--url http://dolphinflashcards.com/api/import-flashcards \
--header 'Content-Type: multipart/form-data' \
--form jwtToken=eyJ0eXAiOiJKV1QiLCJhbGciOiJFUzI1NiIsImtpZCI6ImEzMmZkZDRiMTQ2Njc3NzE5YWIyMzcyODYxYmRlZDg5In0.eyJpc3MiOiJodHRwOi8vZG9scGhpbmZsYXNoY2FyZHMuY29tIiwiYXVkIjoiYXBpIiwic3ViIjoidU5RR2lIencxdk9EaExybTVDRWtaQ1ZoTU93MSIsImFjY2Vzc190b2tlbiI6IjRiZTA2NDNmLTFkOTgtNTczYi05N2NkLWNhOThhNjUzNDdkZCIsImFjY2Vzc190b2tlbl9yYXciOiJ0ZXN0IiwiaWF0IjoxNzI2Nzc0MTYzfQ.F-fxFitPQF-gGHyhGPGxE_zj_b8XJybqe4J_iYG66BC4Dqm4LTb8RpcDLyYUhRCcpphihpWGbdp \
--form flashcardName=firstCard \
--form 'flashcardDescription=my first flashcard' \
--form folder=top-level-parent-name/parent-name-2/parent-name-3 \
--form 'delimiter=,' \
--form firstRowOfData=2 \
--form file=@example-file
[
{
"200": 123,
"success": true
}
]
Import flashcards from a CSV file. The API accepts CSV files and creates flashcards under the specified folder.
curl --request POST \
--url http://dolphinflashcards.com/api/import-flashcards \
--header 'Content-Type: multipart/form-data' \
--form jwtToken=eyJ0eXAiOiJKV1QiLCJhbGciOiJFUzI1NiIsImtpZCI6ImEzMmZkZDRiMTQ2Njc3NzE5YWIyMzcyODYxYmRlZDg5In0.eyJpc3MiOiJodHRwOi8vZG9scGhpbmZsYXNoY2FyZHMuY29tIiwiYXVkIjoiYXBpIiwic3ViIjoidU5RR2lIencxdk9EaExybTVDRWtaQ1ZoTU93MSIsImFjY2Vzc190b2tlbiI6IjRiZTA2NDNmLTFkOTgtNTczYi05N2NkLWNhOThhNjUzNDdkZCIsImFjY2Vzc190b2tlbl9yYXciOiJ0ZXN0IiwiaWF0IjoxNzI2Nzc0MTYzfQ.F-fxFitPQF-gGHyhGPGxE_zj_b8XJybqe4J_iYG66BC4Dqm4LTb8RpcDLyYUhRCcpphihpWGbdp \
--form flashcardName=firstCard \
--form 'flashcardDescription=my first flashcard' \
--form folder=top-level-parent-name/parent-name-2/parent-name-3 \
--form 'delimiter=,' \
--form firstRowOfData=2 \
--form file=@example-file
[
{
"200": 123,
"success": true
}
]
OK. Returned when the request is successfully executed.