Events
Create a batch of events
API Reference
- Introduction
- Authentication
- Authorization
- Endpoints
- Me
- Announcements
- Attachments
- Awards
- Cache
- Calendars
- Categories
- Comments
- Documents
- Events
- Forms
- Groups
- Images
- Messages
- Newsfeed
- Positions
- Qualifications
- Ranks
- Records
- Roster
- Settings
- Specialties
- Statuses
- Submissions
- Tasks
- Units
- Users
Events
Create a batch of events
POST
/
{version}
/
events
/
batch
curl --request POST \
--url https://api.perscom.io/{version}/events/batch \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"resources": [
{
"name": "<string>",
"calendar_id": 123,
"description": "<string>",
"content": "<string>",
"location": "<string>",
"url": "<string>",
"author_id": 123,
"all_day": false,
"starts": "2023-11-07T05:31:56Z",
"ends": "2023-11-07T05:31:56Z",
"repeats": false,
"registration_enabled": true,
"registration_deadline": "2023-11-07T05:31:56Z",
"notifications_enabled": true,
"notifications_interval": [
"pt0m"
],
"notifications_channels": [
"broadcast"
]
}
]
}'
{
"data": [
{
"id": 123,
"name": "<string>",
"calendar_id": 123,
"description": "<string>",
"content": "<string>",
"location": "<string>",
"url": "<string>",
"author_id": 123,
"all_day": false,
"starts": "2023-11-07T05:31:56Z",
"ends": "2023-11-07T05:31:56Z",
"repeats": false,
"registration_enabled": true,
"registration_deadline": "2023-11-07T05:31:56Z",
"notifications_enabled": true,
"notifications_interval": [
"pt0m"
],
"notifications_channels": [
"broadcast"
],
"label": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
]
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
The API version to use.
Available options:
v1
, v2
Query Parameters
Available options:
attachments
, author
, author.*
, calendar
, calendar.*
, comments
, comments.*
, image
, schedule
, tags
Body
application/json
Supports HTML.
Supports HTML.
Available options:
pt0m
, pt15m
, pt1h
, p1d
, p1w
Available options:
broadcast
, database
, discord_private
, discord_public
, mail
, sms
Response
200
application/json
OK
Supports HTML.
Supports HTML.
Available options:
pt0m
, pt15m
, pt1h
, p1d
, p1w
Available options:
broadcast
, database
, discord_private
, discord_public
, mail
, sms
The date the resource was created. Stored in UTC.
The date the resource was updated. Stored in UTC.
Was this page helpful?
curl --request POST \
--url https://api.perscom.io/{version}/events/batch \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"resources": [
{
"name": "<string>",
"calendar_id": 123,
"description": "<string>",
"content": "<string>",
"location": "<string>",
"url": "<string>",
"author_id": 123,
"all_day": false,
"starts": "2023-11-07T05:31:56Z",
"ends": "2023-11-07T05:31:56Z",
"repeats": false,
"registration_enabled": true,
"registration_deadline": "2023-11-07T05:31:56Z",
"notifications_enabled": true,
"notifications_interval": [
"pt0m"
],
"notifications_channels": [
"broadcast"
]
}
]
}'
{
"data": [
{
"id": 123,
"name": "<string>",
"calendar_id": 123,
"description": "<string>",
"content": "<string>",
"location": "<string>",
"url": "<string>",
"author_id": 123,
"all_day": false,
"starts": "2023-11-07T05:31:56Z",
"ends": "2023-11-07T05:31:56Z",
"repeats": false,
"registration_enabled": true,
"registration_deadline": "2023-11-07T05:31:56Z",
"notifications_enabled": true,
"notifications_interval": [
"pt0m"
],
"notifications_channels": [
"broadcast"
],
"label": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
]
}