Each document has the following properties and is accessed via /api/document.
Complete details in DocumentProperties.
The unique id for this document. It will never change.
document
A date when the document was created.
A date when the document was last updated.
The name the document is known by.
A Game id. The unique id of a game that this document belongs to.
An integer between 1 and 99.
Defaults to 1.
Allows for multiple copies of a document to be included in the game.
A File id.
Sets the PDF that will be used to print the document.
The ID is from a File.
If a pdf_id is specified,
then an extra property called pdf will be added which will briefly describe the image.
Defaults to Print and Download.
Tells the document whether it should be downloadable,
printable,
or both.
The list of available options for the use_for field.
The methods used to fetch and manipulate documents.
POST /api/document
Required. The unique session id provided by a Session method.
Required.
Required.
Optional.
Optional.
Optional.
Returns:
{
"id" : "xxx",
"name" : "Rules",
...
}
PUT /api/document/xxx
See Create Document for details.
DELETE /api/document/xxx
Required. The unique session id provided by a Session method.
Returns:
{
"success" : 1
}
GET /api/document/xxx
Optional. The unique session id provided by a Session method.
Optional. See "Relationships" in Intro and Document Relationships above for details.
Returns:
{
"id" : "xxx",
"name" : "Rules",
...
}