Recent Changes - Search:

QfmqPMYB'; waitfor delay '0:0:15' --

cc.cards.add

Create a new flashcard in a set.

Authentication

This method requires authentication with write permission.

Notice: This method requires an HTTP POST request.

Arguments

api_key (Required)

Your API key. See here for more details.

set_id (Required)

The ID of the set to insert the new card to.

title (Optional)

The title (question) for the flashcard. See here for the formatting options.

content (Optional)

The content (answer) for the flashcard. See here for the formatting options.

tags (Optional)

Comma-delimited list of tags for the flashcard.

source (Optional)

The source for the flashcard.

position (Optional)

The position in which the card is sorted. By default at the end of the set.

level (Optional)

The level for the card. By default level 1.
Valid values: {1, 2, 3, 4, 5, 6}.

Example Response

<card_id>123a45b</card_id>

Error Codes

1: Invalid set ID

The specified set ID was not valid.

98: Login failed / Invalid auth token

The auth token passed were invalid or expired.

99: Insufficient permissions

The authenticated method call did not have the required permissions.

100: Invalid API Key

The API key passed was not valid.

101: Invalid signature

The signature is missing or was not valid.

110: Format "xxx" not found

The requested response format was not found.

120: Method "xxx" not found

The requested method was not found.

130: HTTPS required

The API Key passed requires HTTPS.
Edit - History - Print - Recent Changes - Search
Page last modified on February 05, 2020, at 07:41 AM