Boxes that have an inside and outside.
Accessible via /api/hookbox
.
Each hook box has the following properties. Complete details in HookBoxProperties.
The unique id for this hook box. It will never change.
The style of box you want.
hookbox
.
A date when the hook box was created.
A date when the hook box was last updated.
The name the hook box is known by.
A Game id. The unique id of a game that this hook box belongs to.
An integer between 1 and 99.
Defaults to 1
.
Allows for multiple copies of a hook box to be included in the game.
A File id.
Sets the image that will be printed on the outside of the box.
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.
A File id.
Sets the image that will be printed on the inside of the box.
The ID is from a File.
If a inside_id is specified,
then an extra property called inside
will be added which will briefly describe the image.
A boolean indicating whether the inside image has been verified by the user to be correct.
The methods used to fetch and manipulate hook boxes.
POST /api/hookbox
Required. The unique session id provided by a Session method.
Required.
Required.
Optional.
Optional.
Optional.
Optional.
Optional.
Returns:
{ "id" : "xxx", "name" : "Box", ... }
PUT /api/hookbox/xxx
See Create for details.
DELETE /api/hookbox/xxx
Required. The unique session id provided by a Session method.
Returns:
{ "success" : 1 }
GET /api/hookbox/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" : "Box", ... }