Termin absagen
curl --request POST \
--url https://{instanz}/api/rest/v1/communities/{slug}/events/{eventId}/cancel \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"occurrence": "<string>",
"reason": "<string>"
}
'import requests
url = "https://{instanz}/api/rest/v1/communities/{slug}/events/{eventId}/cancel"
payload = {
"occurrence": "<string>",
"reason": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({occurrence: '<string>', reason: '<string>'})
};
fetch('https://{instanz}/api/rest/v1/communities/{slug}/events/{eventId}/cancel', 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://{instanz}/api/rest/v1/communities/{slug}/events/{eventId}/cancel",
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([
'occurrence' => '<string>',
'reason' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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://{instanz}/api/rest/v1/communities/{slug}/events/{eventId}/cancel"
payload := strings.NewReader("{\n \"occurrence\": \"<string>\",\n \"reason\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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://{instanz}/api/rest/v1/communities/{slug}/events/{eventId}/cancel")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"occurrence\": \"<string>\",\n \"reason\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://{instanz}/api/rest/v1/communities/{slug}/events/{eventId}/cancel")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"occurrence\": \"<string>\",\n \"reason\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"eventId": "<string>",
"occurrenceStart": "<string>",
"occurrenceEnd": "<string>",
"title": "<string>",
"description": "<string>",
"timezone": "<string>",
"location": "<string>",
"url": "<string>",
"recurrence": "none",
"recurrenceUntil": "<string>",
"minLevel": 123,
"planIds": [
"<string>"
],
"planNames": [
"<string>"
],
"ageGroupIds": [
"<string>"
],
"ageGroupNames": [
"<string>"
],
"formId": "<string>",
"formName": "<string>",
"capacity": 123,
"spotsLeft": 123,
"rsvpCount": 123,
"waitlistEnabled": true,
"waitlistCount": 123,
"createdByName": "<string>",
"webUrl": "<string>",
"tags": [
"<string>"
],
"postalCode": "<string>",
"country": "<string>",
"recurrenceWeeks": [
123
],
"draft": true,
"minAttendees": 123,
"minAttendeesDeadlineAt": "<string>",
"minAttendeesState": "<string>",
"minAttendeesMissing": 123,
"cancelled": true,
"cancellationKind": "<string>",
"cancellationReason": "<string>",
"cancelledAt": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>",
"violations": [
{
"propertyPath": "<string>",
"message": "<string>",
"code": "<string>"
}
]
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>",
"violations": [
{
"propertyPath": "<string>",
"message": "<string>",
"code": "<string>"
}
]
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>",
"violations": [
{
"propertyPath": "<string>",
"message": "<string>",
"code": "<string>"
}
]
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>",
"violations": [
{
"propertyPath": "<string>",
"message": "<string>",
"code": "<string>"
}
]
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>",
"violations": [
{
"propertyPath": "<string>",
"message": "<string>",
"code": "<string>"
}
]
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>",
"violations": [
{
"propertyPath": "<string>",
"message": "<string>",
"code": "<string>"
}
]
}Events
Termin absagen
Wie „Termin absagen“ in der Event-Ansicht: sagt genau den Termin occurrence ab (bei Serien nur diesen), optional mit Grund. Zusagen und Wartelistenplätze bleiben gespeichert, neue Zusagen sind gesperrt, Tickets ruhen; die Angemeldeten werden benachrichtigt (Benachrichtigung, E-Mail, ggf. SMS). Antwort ist der Termin mit cancelled: true. 404 bei unbekanntem Event oder Termin, 409 bei Vorschau, beendetem oder bereits abgesagtem Termin. Eintrag im Protokoll.
POST
/
api
/
rest
/
v1
/
communities
/
{slug}
/
events
/
{eventId}
/
cancel
Termin absagen
curl --request POST \
--url https://{instanz}/api/rest/v1/communities/{slug}/events/{eventId}/cancel \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"occurrence": "<string>",
"reason": "<string>"
}
'import requests
url = "https://{instanz}/api/rest/v1/communities/{slug}/events/{eventId}/cancel"
payload = {
"occurrence": "<string>",
"reason": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({occurrence: '<string>', reason: '<string>'})
};
fetch('https://{instanz}/api/rest/v1/communities/{slug}/events/{eventId}/cancel', 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://{instanz}/api/rest/v1/communities/{slug}/events/{eventId}/cancel",
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([
'occurrence' => '<string>',
'reason' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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://{instanz}/api/rest/v1/communities/{slug}/events/{eventId}/cancel"
payload := strings.NewReader("{\n \"occurrence\": \"<string>\",\n \"reason\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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://{instanz}/api/rest/v1/communities/{slug}/events/{eventId}/cancel")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"occurrence\": \"<string>\",\n \"reason\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://{instanz}/api/rest/v1/communities/{slug}/events/{eventId}/cancel")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"occurrence\": \"<string>\",\n \"reason\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"eventId": "<string>",
"occurrenceStart": "<string>",
"occurrenceEnd": "<string>",
"title": "<string>",
"description": "<string>",
"timezone": "<string>",
"location": "<string>",
"url": "<string>",
"recurrence": "none",
"recurrenceUntil": "<string>",
"minLevel": 123,
"planIds": [
"<string>"
],
"planNames": [
"<string>"
],
"ageGroupIds": [
"<string>"
],
"ageGroupNames": [
"<string>"
],
"formId": "<string>",
"formName": "<string>",
"capacity": 123,
"spotsLeft": 123,
"rsvpCount": 123,
"waitlistEnabled": true,
"waitlistCount": 123,
"createdByName": "<string>",
"webUrl": "<string>",
"tags": [
"<string>"
],
"postalCode": "<string>",
"country": "<string>",
"recurrenceWeeks": [
123
],
"draft": true,
"minAttendees": 123,
"minAttendeesDeadlineAt": "<string>",
"minAttendeesState": "<string>",
"minAttendeesMissing": 123,
"cancelled": true,
"cancellationKind": "<string>",
"cancellationReason": "<string>",
"cancelledAt": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>",
"violations": [
{
"propertyPath": "<string>",
"message": "<string>",
"code": "<string>"
}
]
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>",
"violations": [
{
"propertyPath": "<string>",
"message": "<string>",
"code": "<string>"
}
]
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>",
"violations": [
{
"propertyPath": "<string>",
"message": "<string>",
"code": "<string>"
}
]
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>",
"violations": [
{
"propertyPath": "<string>",
"message": "<string>",
"code": "<string>"
}
]
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>",
"violations": [
{
"propertyPath": "<string>",
"message": "<string>",
"code": "<string>"
}
]
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>",
"violations": [
{
"propertyPath": "<string>",
"message": "<string>",
"code": "<string>"
}
]
}Authorizations
Path Parameters
Body
application/json
Response
OK