Events/Id
Delete event
Delete an event by its unique ID.
Authorization
x-kommunity-api-key<token>In: header
Path Parameters
idRequiredstringUnique identifier for the event
Response Body
Event deleted successfully
TypeScript Definitions
Use the response body type in TypeScript.
successbooleandataobjectMissing or invalid event ID
TypeScript Definitions
Use the response body type in TypeScript.
successRequiredbooleanValue in:
falseerrorRequiredstringdetailsstringUnauthorized - Invalid API key or permission
TypeScript Definitions
Use the response body type in TypeScript.
successRequiredbooleanValue in:
falseerrorRequiredstringdetailsstringEvent not found or no permission
TypeScript Definitions
Use the response body type in TypeScript.
successRequiredbooleanValue in:
falseerrorRequiredstringdetailsstringServer error
TypeScript Definitions
Use the response body type in TypeScript.
successRequiredbooleanValue in:
falseerrorRequiredstringdetailsstringcurl -X DELETE "/api/v1/events/string" \
-H "x-kommunity-api-key: <token>"fetch("/api/v1/events/string", {
headers: {
"x-kommunity-api-key": "<token>"
}
})package main
import (
"fmt"
"net/http"
"io/ioutil"
)
func main() {
url := "/api/v1/events/string"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("x-kommunity-api-key", "<token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := ioutil.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}import requests
url = "/api/v1/events/string"
response = requests.request("DELETE", url, headers = {
"x-kommunity-api-key": "<token>"
})
print(response.text){
"success": true,
"data": {
"eventId": "string"
}
}{
"success": false,
"error": "string",
"details": "string"
}{
"success": false,
"error": "string",
"details": "string"
}{
"success": false,
"error": "string",
"details": "string"
}{
"success": false,
"error": "string",
"details": "string"
}