Dials are accessed via /api/dial
.
Each dial has the following properties. Complete details in DialProperties.
The unique id for this dial. It will never change.
The style of dial you want. See Identities above.
smalldial
A date when the dial was created.
A date when the dial was last updated.
The name the dial is known by.
A Game id. The unique id of a game that this dial belongs to.
An integer between 1 and 99.
Defaults to 1
.
Allows for multiple copies of a dial to be included in the game.
A File id.
Sets the image that will be printed on the outside of the dial.
The ID is from a File.
If a outside_id is specified,
then an extra property called outside
will be added which will briefly describe the image.
A boolean indicating whether the outside image has been verified by the user to be correct.
The methods used to fetch and manipulate diales.
POST /api/dial
Required. The unique session id provided by a Session method.
Required.
Required.
Optional.
Optional.
Optional.
Returns:
{ "id" : "xxx", "name" : "Dial", ... }
PUT /api/dial/xxx
See Create Dial for details.
DELETE /api/dial/xxx
Required. The unique session id provided by a Session method.
Returns:
{ "success" : 1 }
GET /api/dial/xxx
Optional. The unique session id provided by a Session method.
Optional. See "Relationships" in Intro and Dial Relationships above for details.
Returns:
{ "id" : "xxx", "name" : "Dial", ... }