Create an event and optionally a recurring series in one atomic call
If series.freq is provided the event is converted into the anchor of a new recurring series. On series creation failure the event is rolled back.
curl --request POST \
--url https://api.linebundle.com/api/v1/events/with-series \
--header 'Content-Type: application/json' \
--data '
{
"title": "<string>",
"address": "<string>",
"description": "<string>",
"end_dt": "2023-11-07T05:31:56Z",
"keywords": [
"<string>"
],
"latitude": 123,
"longitude": 123,
"metadata": {},
"parent_event_id": 123,
"start_dt": "2023-11-07T05:31:56Z",
"timezone": "UTC",
"visibility": 10
}
'import requests
url = "https://api.linebundle.com/api/v1/events/with-series"
payload = {
"title": "<string>",
"address": "<string>",
"description": "<string>",
"end_dt": "2023-11-07T05:31:56Z",
"keywords": ["<string>"],
"latitude": 123,
"longitude": 123,
"metadata": {},
"parent_event_id": 123,
"start_dt": "2023-11-07T05:31:56Z",
"timezone": "UTC",
"visibility": 10
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
title: '<string>',
address: '<string>',
description: '<string>',
end_dt: '2023-11-07T05:31:56Z',
keywords: ['<string>'],
latitude: 123,
longitude: 123,
metadata: {},
parent_event_id: 123,
start_dt: '2023-11-07T05:31:56Z',
timezone: 'UTC',
visibility: 10
})
};
fetch('https://api.linebundle.com/api/v1/events/with-series', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.linebundle.com/api/v1/events/with-series",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'title' => '<string>',
'address' => '<string>',
'description' => '<string>',
'end_dt' => '2023-11-07T05:31:56Z',
'keywords' => [
'<string>'
],
'latitude' => 123,
'longitude' => 123,
'metadata' => [
],
'parent_event_id' => 123,
'start_dt' => '2023-11-07T05:31:56Z',
'timezone' => 'UTC',
'visibility' => 10
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.linebundle.com/api/v1/events/with-series"
payload := strings.NewReader("{\n \"title\": \"<string>\",\n \"address\": \"<string>\",\n \"description\": \"<string>\",\n \"end_dt\": \"2023-11-07T05:31:56Z\",\n \"keywords\": [\n \"<string>\"\n ],\n \"latitude\": 123,\n \"longitude\": 123,\n \"metadata\": {},\n \"parent_event_id\": 123,\n \"start_dt\": \"2023-11-07T05:31:56Z\",\n \"timezone\": \"UTC\",\n \"visibility\": 10\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.linebundle.com/api/v1/events/with-series")
.header("Content-Type", "application/json")
.body("{\n \"title\": \"<string>\",\n \"address\": \"<string>\",\n \"description\": \"<string>\",\n \"end_dt\": \"2023-11-07T05:31:56Z\",\n \"keywords\": [\n \"<string>\"\n ],\n \"latitude\": 123,\n \"longitude\": 123,\n \"metadata\": {},\n \"parent_event_id\": 123,\n \"start_dt\": \"2023-11-07T05:31:56Z\",\n \"timezone\": \"UTC\",\n \"visibility\": 10\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.linebundle.com/api/v1/events/with-series")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"title\": \"<string>\",\n \"address\": \"<string>\",\n \"description\": \"<string>\",\n \"end_dt\": \"2023-11-07T05:31:56Z\",\n \"keywords\": [\n \"<string>\"\n ],\n \"latitude\": 123,\n \"longitude\": 123,\n \"metadata\": {},\n \"parent_event_id\": 123,\n \"start_dt\": \"2023-11-07T05:31:56Z\",\n \"timezone\": \"UTC\",\n \"visibility\": 10\n}"
response = http.request(request)
puts response.read_body{
"event": {
"created_at": "2023-11-07T05:31:56Z",
"created_dt": "2023-11-07T05:31:56Z",
"creator_id": "<string>",
"id": 123,
"is_deleted": true,
"is_locked": true,
"status": "draft",
"timezone": "<string>",
"title": "<string>",
"updated_at": "2023-11-07T05:31:56Z",
"version": 123,
"visibility": 123,
"$schema": "https://api.linebundle.com/schemas/Event.json",
"address": "<string>",
"description": "<string>",
"description_override": "<string>",
"end_dt": "2023-11-07T05:31:56Z",
"keywords": [
"<string>"
],
"latitude": 123,
"longitude": 123,
"metadata": {},
"metadata_override": {},
"org_id": "<string>",
"parent_event_id": 123,
"published_at": "2023-11-07T05:31:56Z",
"published_id": 123,
"series_id": 123,
"series_index": 123,
"series_title": "<string>",
"start_dt": "2023-11-07T05:31:56Z",
"title_override": "<string>"
},
"$schema": "https://api.linebundle.com/schemas/CreateWithSeriesOutputBody.json",
"occurrences": [
{
"created_at": "2023-11-07T05:31:56Z",
"created_dt": "2023-11-07T05:31:56Z",
"creator_id": "<string>",
"id": 123,
"is_deleted": true,
"is_locked": true,
"status": "draft",
"timezone": "<string>",
"title": "<string>",
"updated_at": "2023-11-07T05:31:56Z",
"version": 123,
"visibility": 123,
"$schema": "https://api.linebundle.com/schemas/Event.json",
"address": "<string>",
"description": "<string>",
"description_override": "<string>",
"end_dt": "2023-11-07T05:31:56Z",
"keywords": [
"<string>"
],
"latitude": 123,
"longitude": 123,
"metadata": {},
"metadata_override": {},
"org_id": "<string>",
"parent_event_id": 123,
"published_at": "2023-11-07T05:31:56Z",
"published_id": 123,
"series_id": 123,
"series_index": 123,
"series_title": "<string>",
"start_dt": "2023-11-07T05:31:56Z",
"title_override": "<string>"
}
]
}{
"$schema": "https://api.linebundle.com/schemas/ErrorModel.json",
"detail": "Property foo is required but is missing.",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
],
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "https://example.com/errors/example"
}Body
Event title
1Venue address
Event description
End datetime (UTC)
Search keywords
Venue latitude
Venue longitude
Flexible metadata
Show child attributes
Show child attributes
Parent event ID
Optional recurrence rule. Omit to create a standalone event.
Show child attributes
Show child attributes
Start datetime (UTC)
IANA timezone
Visibility: 10=private, 20=members-only, 30=organization, 40=public
Response
Created
The created event (anchor when a series is created)
Show child attributes
Show child attributes
A URL to the JSON Schema for this object.
"https://api.linebundle.com/schemas/CreateWithSeriesOutputBody.json"
All series occurrences including the anchor (only present when series was created)
Show child attributes
Show child attributes
curl --request POST \
--url https://api.linebundle.com/api/v1/events/with-series \
--header 'Content-Type: application/json' \
--data '
{
"title": "<string>",
"address": "<string>",
"description": "<string>",
"end_dt": "2023-11-07T05:31:56Z",
"keywords": [
"<string>"
],
"latitude": 123,
"longitude": 123,
"metadata": {},
"parent_event_id": 123,
"start_dt": "2023-11-07T05:31:56Z",
"timezone": "UTC",
"visibility": 10
}
'import requests
url = "https://api.linebundle.com/api/v1/events/with-series"
payload = {
"title": "<string>",
"address": "<string>",
"description": "<string>",
"end_dt": "2023-11-07T05:31:56Z",
"keywords": ["<string>"],
"latitude": 123,
"longitude": 123,
"metadata": {},
"parent_event_id": 123,
"start_dt": "2023-11-07T05:31:56Z",
"timezone": "UTC",
"visibility": 10
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
title: '<string>',
address: '<string>',
description: '<string>',
end_dt: '2023-11-07T05:31:56Z',
keywords: ['<string>'],
latitude: 123,
longitude: 123,
metadata: {},
parent_event_id: 123,
start_dt: '2023-11-07T05:31:56Z',
timezone: 'UTC',
visibility: 10
})
};
fetch('https://api.linebundle.com/api/v1/events/with-series', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.linebundle.com/api/v1/events/with-series",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'title' => '<string>',
'address' => '<string>',
'description' => '<string>',
'end_dt' => '2023-11-07T05:31:56Z',
'keywords' => [
'<string>'
],
'latitude' => 123,
'longitude' => 123,
'metadata' => [
],
'parent_event_id' => 123,
'start_dt' => '2023-11-07T05:31:56Z',
'timezone' => 'UTC',
'visibility' => 10
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.linebundle.com/api/v1/events/with-series"
payload := strings.NewReader("{\n \"title\": \"<string>\",\n \"address\": \"<string>\",\n \"description\": \"<string>\",\n \"end_dt\": \"2023-11-07T05:31:56Z\",\n \"keywords\": [\n \"<string>\"\n ],\n \"latitude\": 123,\n \"longitude\": 123,\n \"metadata\": {},\n \"parent_event_id\": 123,\n \"start_dt\": \"2023-11-07T05:31:56Z\",\n \"timezone\": \"UTC\",\n \"visibility\": 10\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.linebundle.com/api/v1/events/with-series")
.header("Content-Type", "application/json")
.body("{\n \"title\": \"<string>\",\n \"address\": \"<string>\",\n \"description\": \"<string>\",\n \"end_dt\": \"2023-11-07T05:31:56Z\",\n \"keywords\": [\n \"<string>\"\n ],\n \"latitude\": 123,\n \"longitude\": 123,\n \"metadata\": {},\n \"parent_event_id\": 123,\n \"start_dt\": \"2023-11-07T05:31:56Z\",\n \"timezone\": \"UTC\",\n \"visibility\": 10\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.linebundle.com/api/v1/events/with-series")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"title\": \"<string>\",\n \"address\": \"<string>\",\n \"description\": \"<string>\",\n \"end_dt\": \"2023-11-07T05:31:56Z\",\n \"keywords\": [\n \"<string>\"\n ],\n \"latitude\": 123,\n \"longitude\": 123,\n \"metadata\": {},\n \"parent_event_id\": 123,\n \"start_dt\": \"2023-11-07T05:31:56Z\",\n \"timezone\": \"UTC\",\n \"visibility\": 10\n}"
response = http.request(request)
puts response.read_body{
"event": {
"created_at": "2023-11-07T05:31:56Z",
"created_dt": "2023-11-07T05:31:56Z",
"creator_id": "<string>",
"id": 123,
"is_deleted": true,
"is_locked": true,
"status": "draft",
"timezone": "<string>",
"title": "<string>",
"updated_at": "2023-11-07T05:31:56Z",
"version": 123,
"visibility": 123,
"$schema": "https://api.linebundle.com/schemas/Event.json",
"address": "<string>",
"description": "<string>",
"description_override": "<string>",
"end_dt": "2023-11-07T05:31:56Z",
"keywords": [
"<string>"
],
"latitude": 123,
"longitude": 123,
"metadata": {},
"metadata_override": {},
"org_id": "<string>",
"parent_event_id": 123,
"published_at": "2023-11-07T05:31:56Z",
"published_id": 123,
"series_id": 123,
"series_index": 123,
"series_title": "<string>",
"start_dt": "2023-11-07T05:31:56Z",
"title_override": "<string>"
},
"$schema": "https://api.linebundle.com/schemas/CreateWithSeriesOutputBody.json",
"occurrences": [
{
"created_at": "2023-11-07T05:31:56Z",
"created_dt": "2023-11-07T05:31:56Z",
"creator_id": "<string>",
"id": 123,
"is_deleted": true,
"is_locked": true,
"status": "draft",
"timezone": "<string>",
"title": "<string>",
"updated_at": "2023-11-07T05:31:56Z",
"version": 123,
"visibility": 123,
"$schema": "https://api.linebundle.com/schemas/Event.json",
"address": "<string>",
"description": "<string>",
"description_override": "<string>",
"end_dt": "2023-11-07T05:31:56Z",
"keywords": [
"<string>"
],
"latitude": 123,
"longitude": 123,
"metadata": {},
"metadata_override": {},
"org_id": "<string>",
"parent_event_id": 123,
"published_at": "2023-11-07T05:31:56Z",
"published_id": 123,
"series_id": 123,
"series_index": 123,
"series_title": "<string>",
"start_dt": "2023-11-07T05:31:56Z",
"title_override": "<string>"
}
]
}{
"$schema": "https://api.linebundle.com/schemas/ErrorModel.json",
"detail": "Property foo is required but is missing.",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
],
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "https://example.com/errors/example"
}