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 load ; 0 to create a new Deck |
Parameters
| Parameter |
Type |
Required? |
Format |
Description |
| name |
string |
true |
|
Name of the Deck |
| decklist_id |
integer |
false |
|
Identifier of the Decklist from which the Deck is copied |
| description_md |
string |
false |
|
Description of the Decklist in Markdown |
| affiliation_code |
string |
false |
|
Code of the affiliation of the Deck |
| tags |
string |
false |
|
Space-separated list of tags |
| slots |
string |
true |
|
Content of the Decklist as a JSON object |