Skip to main content
DELETE
/
api
/
v1
/
config
/
mapping-rules
/
{slug}
cURL
curl --request DELETE \
  --url https://{tenant}.chronosphere.io/api/v1/config/mapping-rules/{slug} \
  --header 'API-Token: <api-key>'
package main

import (
"fmt"
"net/http"
"io"
)

func main() {

url := "https://{tenant}.chronosphere.io/api/v1/config/mapping-rules/{slug}"

req, _ := http.NewRequest("DELETE", url, nil)

req.Header.Add("API-Token", "<api-key>")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.delete("https://{tenant}.chronosphere.io/api/v1/config/mapping-rules/{slug}")
.header("API-Token", "<api-key>")
.asString();
const options = {method: 'DELETE', headers: {'API-Token': '<api-key>'}};

fetch('https://{tenant}.chronosphere.io/api/v1/config/mapping-rules/{slug}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
import requests

url = "https://{tenant}.chronosphere.io/api/v1/config/mapping-rules/{slug}"

headers = {"API-Token": "<api-key>"}

response = requests.delete(url, headers=headers)

print(response.text)
{}
{
"message": "<string>"
}
{
"message": "<string>"
}
{
"message": "<string>"
}
{}

Authorizations

API-Token
string
header
required

Chronosphere API token

Path Parameters

slug
string
required

Response

A successful response.

The response is of type object.