This API allows you to create custom acrylic shape objects like meeples and tokens.
Accessible via /api/acrylicshape
.
Each acrylic shape object is accessed via /api/acrylicshape
and has the following properties.
Complete details in AcrylicShapeProperties.
The unique id for this acrylic shape object. It will never change.
The style of acrylic shape object you want.
acrylicshape
A date when the acrylic shape object was created.
A date when the acrylic shape object was last updated.
The name the acrylic shape object is known by.
A Game id. The unique id of a game that this acrylic shape object belongs to.
An integer between 1 and 99.
Defaults to 1
.
Allows for multiple copies of a acrylic shape object to be included in the game.
A File id.
Optional.
Sets the side1 image of the acrylic shape 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 acrylic shape 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.
A File id.
Sets the SVG cut file for this shape.
If a cut_id is specified,
then an extra property called cut
will be added which will briefly describe the svg image.
The methods used to fetch and manipulate acrylic shape objects.
POST /api/acrylicshape
Required. The unique session id provided by a Session method.
Required.
Required.
Optional.
Optional.
Optional.
Returns:
{ "id" : "xxx", "name" : "Guard", ... }
PUT /api/acrylicshape/xxx
See Create for details.
DELETE /api/acrylicshape/xxx
Required. The unique session id provided by a Session method.
Returns:
{ "success" : 1 }
GET /api/acrylicshape/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", ... }