This API allows you to create custom color D8 objects.
Accessible via /api/customcolord8
.
Each custom color D8 object is accessed via /api/customcolord8
and has the following properties.
Complete details in CustomColorD8Properties.
The unique id for this custom color D8 object. It will never change.
The style of custom color D8 object you want.
customcolord8
A date when the custom color D8 object was created.
A date when the custom color D8 object was last updated.
The name the custom color D8 object is known by.
A Game id. The unique id of a game that this custom color D8 object belongs to.
An integer between 1 and 99.
Defaults to 1
.
Allows for multiple copies of a custom color D8 object to be included in the game.
The color of the dice itself before printing.
Defaults to white
.
A File id.
Optional.
Sets the side1 image of the custom color D8 object.
The ID is from a File.
If a side1_id is specified,
then an extra property called side1
will be added which will briefly describe the image.
A boolean indicating whether the side1 image has been verified by the user to be correct.
A File id.
Optional.
Sets the side2 image of the custom color D8 object.
The ID is from a File.
If a side2_id is specified,
then an extra property called side2
will be added which will briefly describe the image.
A boolean indicating whether the side2 image has been verified by the user to be correct.
Same as side1 and side2.
The methods used to fetch and manipulate custom color D8 objects.
POST /api/customcolord8
Required. The unique session id provided by a Session method.
Required.
Required.
Optional.
Optional.
Optional.
Returns:
{ "id" : "xxx", "name" : "Guard", ... }
PUT /api/customcolord8/xxx
See Create for details.
DELETE /api/customcolord8/xxx
Required. The unique session id provided by a Session method.
Returns:
{ "success" : 1 }
GET /api/customcolord8/xxx
Optional. The unique session id provided by a Session method.
Optional. See "Related Objects" in Intro and Related Objects above for details.
Returns:
{ "id" : "xxx", "name" : "Guard", ... }