Documentation
Save one Deck of the authenticated user. The parameters are the same as in the response to the load method, but only a few are writable.
So you can parse the result from the load, change a few values, then send the object as the param of an ajax request.
If successful, id of Deck is in the msg
Requirements
Name |
Requirement |
Type |
Description |
id |
\d+ |
integer |
The numeric identifier of the Deck to update. |
Parameters
Parameter |
Type |
Required? |
Format |
Description |
name |
string |
false |
|
Name of the Deck if a change is needed. |
decklist_id |
integer |
false |
|
Identifier of the Decklist from which the Deck is copied |
description_md |
string |
false |
|
Description of the Decklist in Markdown |
tags |
string |
false |
|
Space-separated list of tags |
slots |
string |
true |
|
Content of the Decklist as a JSON object |
problem |
string |
true |
|
A short code description of the problem with the provided slots, if one exists. Must be one of: too_few_cards,too_many_cards,too_many_copies,invalid_cards,deck_options_limit,investigator |
taboo |
integer |
false |
|
Taboo set this deck conforms to |
meta |
string |
false |
|
JSON formatted meta data |