logo
Events/Id

Delete event

Delete an event by its unique ID.

DELETE
/events/{id}

Authorization

x-kommunity-api-key<token>

In: header

Path Parameters

idRequiredstring

Unique identifier for the event

Response Body

Event deleted successfully

TypeScript Definitions

Use the response body type in TypeScript.

successboolean
dataobject

Missing or invalid event ID

TypeScript Definitions

Use the response body type in TypeScript.

successRequiredboolean
Value in: false
errorRequiredstring
detailsstring

Unauthorized - Invalid API key or permission

TypeScript Definitions

Use the response body type in TypeScript.

successRequiredboolean
Value in: false
errorRequiredstring
detailsstring

Event not found or no permission

TypeScript Definitions

Use the response body type in TypeScript.

successRequiredboolean
Value in: false
errorRequiredstring
detailsstring

Server error

TypeScript Definitions

Use the response body type in TypeScript.

successRequiredboolean
Value in: false
errorRequiredstring
detailsstring
curl -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"
}