Custom Color D6

This API allows you to create custom color D6 objects. Accessible via /api/customcolord6.

Identities

CustomColorD6

Properties

Each custom color D6 object is accessed via /api/customcolord6 and has the following properties. Complete details in CustomColorD6Properties.

id

The unique id for this custom color D6 object. It will never change.

identity

The style of custom color D6 object you want.

object_type

customcolord6

date_created

A date when the custom color D6 object was created.

date_updated

A date when the custom color D6 object was last updated.

name

The name the custom color D6 object is known by.

game_id

A Game id. The unique id of a game that this custom color D6 object belongs to.

quantity

An integer between 1 and 99. Defaults to 1. Allows for multiple copies of a custom color D6 object to be included in the game.

diecolor

The color of the dice itself before printing. Defaults to white.

side1_id

A File id. Optional. Sets the side1 image of the custom color D6 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.

has_proofed_side1

A boolean indicating whether the side1 image has been verified by the user to be correct.

side2_id

A File id. Optional. Sets the side2 image of the custom color D6 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.

has_proofed_side2

A boolean indicating whether the side2 image has been verified by the user to be correct.

side3_id ... side6_id

Same as side1 and side2.

Related Objects

game

The Game that this custom color D6 object is a member of.

Methods

The methods used to fetch and manipulate custom color D6 objects.

Create

 POST /api/customcolord6
session_id

Required. The unique session id provided by a Session method.

name

Required.

game_id

Required.

quantity

Optional.

side1_id

Optional.

has_proofed_side1

Optional.

Returns:

 {
   "id" : "xxx",
   "name" : "Guard",
   ...
 }

Update

 PUT /api/customcolord6/xxx

See Create for details.

Delete

 DELETE /api/customcolord6/xxx
session_id

Required. The unique session id provided by a Session method.

Returns:

 {
   "success" : 1
 }

Fetch

 GET /api/customcolord6/xxx
session_id

Optional. The unique session id provided by a Session method.

_include_relationships

Optional. See "Related Objects" in Intro and Related Objects above for details.

Returns:

 {
   "id" : "xxx",
   "name" : "Guard",
   ...
 }
^ Back to Top ^