You can get a list of all the creatures of a campaign by using the following endpoint.
{warning} Don't forget that all endpoints documented here need to be prefixed with
1.0/campaigns/{campaign.id}/
.
Method | URI | Headers |
---|---|---|
GET/HEAD | creatures |
Default |
The list of returned entities can be filtered. The available filters are available here
{
"data": [
{
"id": 1,
"name": "Raven",
"entry": "\n<p>Lorem Ipsum.</p>\n",
"image": "{path}",
"image_full": "{url}",
"image_thumb": "{url}",
"has_custom_image": false,
"is_private": true,
"entity_id": 7,
"tags": [],
"created_at": "2019-01-30T00:01:44.000000Z",
"created_by": 1,
"updated_at": "2019-08-29T13:48:54.000000Z",
"updated_by": 1,
"creature_id": null,
"type": "Bird",
"is_extinct": true,
"is_dead": true,
"locations": [
67,
66,
65
]
}
]
}
To get the details of a single creature, use the following endpoint.
Method | URI | Headers |
---|---|---|
GET/HEAD | creatures/{creature.id} |
Default |
{
"data": {
"id": 1,
"name": "Raven",
"entry": "\n<p>Lorem Ipsum.</p>\n",
"image": "{path}",
"image_full": "{url}",
"image_thumb": "{url}",
"has_custom_image": false,
"is_private": true,
"entity_id": 7,
"tags": [],
"created_at": "2019-01-30T00:01:44.000000Z",
"created_by": 1,
"updated_at": "2019-08-29T13:48:54.000000Z",
"updated_by": 1,
"creature_id": null,
"type": "Bird",
"is_extinct": true,
"is_dead": true,
"locations": [
67,
66,
65
]
}
}
To create a creature, use the following endpoint.
Method | URI | Headers |
---|---|---|
POST | creatures |
Default |
Parameter | Type | Detail |
---|---|---|
name |
string (Required) |
Name of the creature |
entry |
string |
The html description of the creature |
type |
string |
The creature's type |
creature_id |
string |
Parent creature of the creature |
tags |
array |
Array of tag ids |
locations |
array |
Array of location ids |
is_extinct |
boolean |
If the creature is extinct |
is_dead |
boolean |
If the creature is dead |
entity_image_uuid |
string |
Gallery image UUID for the entity image |
entity_header_uuid |
string |
Gallery image UUID for the entity header (limited to premium campaigns) |
is_private |
boolean |
If the creature is only visible to admin members of the campaign |
{success} Code 200 with JSON body of the new creature.
To update a creature, use the following endpoint.
Method | URI | Headers |
---|---|---|
PUT/PATCH | creatures/{creature.id} |
Default |
The same body parameters are available as for when creating a creature.
{success} Code 200 with JSON body of the updated creature.
To delete a creature, use the following endpoint.
Method | URI | Headers |
---|---|---|
DELETE | creatures/{creature.id} |
Default |
{success} Code 200 with JSON.