revise

Create a card; repeating a client-generated id returns the existing card

post/revise/cards

Request

  • Base URL
    https://api.focusbear.io (the document declares no server; this is the origin it was published from)
  • Auth
    HTTP bearer

Request body

frontstring required
backstring required
idstring uuid

Client-generated id; repeating it returns the existing card

source_type'manual' | 'note' | 'pdf' | 'anki' | 'algoapp' | 'file'

Import sources are accepted too: the Mac reads Anki and AlgoApp files itself (preview mode) and copies those cards to the account, and they must stay imported cards, due at once and outside the daily new-card allowance. Refusing them failed every 100-card batch of a copy with a 400.

source_note_idstring uuid

The user's note the card came from

source_labelstring

PDF file name or note title

created_by'user' | 'ai'
deck_idstring uuid

Response

idstring required
deck_idstring nullable required
frontstring required
backstring required
source_type'manual' | 'note' | 'pdf' | 'anki' | 'algoapp' | 'file' required
source_note_idstring nullable required
source_labelstring nullable required
created_by'user' | 'ai' required
needs_rewriteboolean required
rewrite_flagged_atstring nullable required
rewrite_resolved_atstring nullable required
state'learning' | 'review' | 'relearning' required
stepnumber nullable required
stabilitynumber nullable required
difficultynumber nullable required
due_atstring required
last_reviewed_atstring nullable required
first_reviewed_atstring nullable required
review_countnumber required
lapse_countnumber required
is_newboolean required

Never reviewed

created_atstring required
updated_atstring required
deleted_atstring nullable required

Changes

No recorded changes to this operation across all 1 revision of this API.