You can get a list of all the events 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 | events |
Default |
The list of returned entities can be filtered. The available filters are available here
{
"data": [
{
"id": 1,
"name": "Battle of Hadish",
"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,
"location_id": "4",
"date": "44-3-16",
"type": "Battle",
"calendar_id": 2,
"calendar_year": 2,
"calendar_month": 4,
"calendar_day": 3
}
]
}
To get the details of a single event, use the following endpoint.
Method | URI | Headers |
---|---|---|
GET/HEAD | events/{event.id} |
Default |
{
"data": {
"id": 1,
"name": "Battle of Hadish",
"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,
"location_id": "4",
"date": "44-3-16",
"type": "Battle",
"calendar_id": 2,
"calendar_year": 2,
"calendar_month": 4,
"calendar_day": 3
}
}
To create a event, use the following endpoint.
Method | URI | Headers |
---|---|---|
POST | events |
Default |
Parameter | Type | Detail |
---|---|---|
name |
string (Required) |
Name of the event |
entry |
string |
The html description of the event |
type |
string |
The event's type |
date |
string |
Fictional date at which the event took place |
location_id |
string |
Location of the event |
tags |
array |
Array of tag ids |
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 event is only visible to admin members of the campaign |
{success} Code 200 with JSON body of the new event.
To update a event, use the following endpoint.
Method | URI | Headers |
---|---|---|
PUT/PATCH | events/{event.id} |
Default |
The same body parameters are available as for when creating a event.
{success} Code 200 with JSON body of the updated event.
To delete a event, use the following endpoint.
Method | URI | Headers |
---|---|---|
DELETE | events/{event.id} |
Default |
{success} Code 200 with JSON.