Replace a Connector
curl --request PUT \
--url https://api.coralogix.com/mgmt/openapi/3/notifications/notification-center/v1/connector \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"connector": {
"configOverrides": [
{
"fields": [
{
"fieldName": "<string>",
"template": "<string>"
}
]
}
],
"connectorConfig": {
"fields": [
{
"fieldName": "<string>",
"value": "<string>"
}
]
},
"createTime": "2023-11-07T05:31:56Z",
"description": "Connector for team notifications",
"diagnostics": {},
"id": "a16e24c8-4db2-4abf-ba3c-c9e1fc35a3b9",
"name": "My Slack Connector",
"teamId": 12345,
"updateTime": "2023-11-07T05:31:56Z"
}
}
'import requests
url = "https://api.coralogix.com/mgmt/openapi/3/notifications/notification-center/v1/connector"
payload = { "connector": {
"configOverrides": [{ "fields": [
{
"fieldName": "<string>",
"template": "<string>"
}
] }],
"connectorConfig": { "fields": [
{
"fieldName": "<string>",
"value": "<string>"
}
] },
"createTime": "2023-11-07T05:31:56Z",
"description": "Connector for team notifications",
"diagnostics": {},
"id": "a16e24c8-4db2-4abf-ba3c-c9e1fc35a3b9",
"name": "My Slack Connector",
"teamId": 12345,
"updateTime": "2023-11-07T05:31:56Z"
} }
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
connector: {
configOverrides: [{fields: [{fieldName: '<string>', template: '<string>'}]}],
connectorConfig: {fields: [{fieldName: '<string>', value: '<string>'}]},
createTime: '2023-11-07T05:31:56Z',
description: 'Connector for team notifications',
diagnostics: {},
id: 'a16e24c8-4db2-4abf-ba3c-c9e1fc35a3b9',
name: 'My Slack Connector',
teamId: 12345,
updateTime: '2023-11-07T05:31:56Z'
}
})
};
fetch('https://api.coralogix.com/mgmt/openapi/3/notifications/notification-center/v1/connector', 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.coralogix.com/mgmt/openapi/3/notifications/notification-center/v1/connector",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'connector' => [
'configOverrides' => [
[
'fields' => [
[
'fieldName' => '<string>',
'template' => '<string>'
]
]
]
],
'connectorConfig' => [
'fields' => [
[
'fieldName' => '<string>',
'value' => '<string>'
]
]
],
'createTime' => '2023-11-07T05:31:56Z',
'description' => 'Connector for team notifications',
'diagnostics' => [
],
'id' => 'a16e24c8-4db2-4abf-ba3c-c9e1fc35a3b9',
'name' => 'My Slack Connector',
'teamId' => 12345,
'updateTime' => '2023-11-07T05:31:56Z'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"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.coralogix.com/mgmt/openapi/3/notifications/notification-center/v1/connector"
payload := strings.NewReader("{\n \"connector\": {\n \"configOverrides\": [\n {\n \"fields\": [\n {\n \"fieldName\": \"<string>\",\n \"template\": \"<string>\"\n }\n ]\n }\n ],\n \"connectorConfig\": {\n \"fields\": [\n {\n \"fieldName\": \"<string>\",\n \"value\": \"<string>\"\n }\n ]\n },\n \"createTime\": \"2023-11-07T05:31:56Z\",\n \"description\": \"Connector for team notifications\",\n \"diagnostics\": {},\n \"id\": \"a16e24c8-4db2-4abf-ba3c-c9e1fc35a3b9\",\n \"name\": \"My Slack Connector\",\n \"teamId\": 12345,\n \"updateTime\": \"2023-11-07T05:31:56Z\"\n }\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "<api-key>")
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.put("https://api.coralogix.com/mgmt/openapi/3/notifications/notification-center/v1/connector")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"connector\": {\n \"configOverrides\": [\n {\n \"fields\": [\n {\n \"fieldName\": \"<string>\",\n \"template\": \"<string>\"\n }\n ]\n }\n ],\n \"connectorConfig\": {\n \"fields\": [\n {\n \"fieldName\": \"<string>\",\n \"value\": \"<string>\"\n }\n ]\n },\n \"createTime\": \"2023-11-07T05:31:56Z\",\n \"description\": \"Connector for team notifications\",\n \"diagnostics\": {},\n \"id\": \"a16e24c8-4db2-4abf-ba3c-c9e1fc35a3b9\",\n \"name\": \"My Slack Connector\",\n \"teamId\": 12345,\n \"updateTime\": \"2023-11-07T05:31:56Z\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.coralogix.com/mgmt/openapi/3/notifications/notification-center/v1/connector")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"connector\": {\n \"configOverrides\": [\n {\n \"fields\": [\n {\n \"fieldName\": \"<string>\",\n \"template\": \"<string>\"\n }\n ]\n }\n ],\n \"connectorConfig\": {\n \"fields\": [\n {\n \"fieldName\": \"<string>\",\n \"value\": \"<string>\"\n }\n ]\n },\n \"createTime\": \"2023-11-07T05:31:56Z\",\n \"description\": \"Connector for team notifications\",\n \"diagnostics\": {},\n \"id\": \"a16e24c8-4db2-4abf-ba3c-c9e1fc35a3b9\",\n \"name\": \"My Slack Connector\",\n \"teamId\": 12345,\n \"updateTime\": \"2023-11-07T05:31:56Z\"\n }\n}"
response = http.request(request)
puts response.read_body{
"connector": {
"configOverrides": [
{
"fields": [
{
"fieldName": "<string>",
"template": "<string>"
}
]
}
],
"connectorConfig": {
"fields": [
{
"fieldName": "<string>",
"value": "<string>"
}
]
},
"createTime": "2023-11-07T05:31:56Z",
"description": "Connector for team notifications",
"diagnostics": {},
"id": "a16e24c8-4db2-4abf-ba3c-c9e1fc35a3b9",
"name": "My Slack Connector",
"teamId": 12345,
"updateTime": "2023-11-07T05:31:56Z"
}
}Connectors Service
Replace a Connector
No description available
Replace a Connector
curl --request PUT \
--url https://api.coralogix.com/mgmt/openapi/3/notifications/notification-center/v1/connector \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"connector": {
"configOverrides": [
{
"fields": [
{
"fieldName": "<string>",
"template": "<string>"
}
]
}
],
"connectorConfig": {
"fields": [
{
"fieldName": "<string>",
"value": "<string>"
}
]
},
"createTime": "2023-11-07T05:31:56Z",
"description": "Connector for team notifications",
"diagnostics": {},
"id": "a16e24c8-4db2-4abf-ba3c-c9e1fc35a3b9",
"name": "My Slack Connector",
"teamId": 12345,
"updateTime": "2023-11-07T05:31:56Z"
}
}
'import requests
url = "https://api.coralogix.com/mgmt/openapi/3/notifications/notification-center/v1/connector"
payload = { "connector": {
"configOverrides": [{ "fields": [
{
"fieldName": "<string>",
"template": "<string>"
}
] }],
"connectorConfig": { "fields": [
{
"fieldName": "<string>",
"value": "<string>"
}
] },
"createTime": "2023-11-07T05:31:56Z",
"description": "Connector for team notifications",
"diagnostics": {},
"id": "a16e24c8-4db2-4abf-ba3c-c9e1fc35a3b9",
"name": "My Slack Connector",
"teamId": 12345,
"updateTime": "2023-11-07T05:31:56Z"
} }
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
connector: {
configOverrides: [{fields: [{fieldName: '<string>', template: '<string>'}]}],
connectorConfig: {fields: [{fieldName: '<string>', value: '<string>'}]},
createTime: '2023-11-07T05:31:56Z',
description: 'Connector for team notifications',
diagnostics: {},
id: 'a16e24c8-4db2-4abf-ba3c-c9e1fc35a3b9',
name: 'My Slack Connector',
teamId: 12345,
updateTime: '2023-11-07T05:31:56Z'
}
})
};
fetch('https://api.coralogix.com/mgmt/openapi/3/notifications/notification-center/v1/connector', 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.coralogix.com/mgmt/openapi/3/notifications/notification-center/v1/connector",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'connector' => [
'configOverrides' => [
[
'fields' => [
[
'fieldName' => '<string>',
'template' => '<string>'
]
]
]
],
'connectorConfig' => [
'fields' => [
[
'fieldName' => '<string>',
'value' => '<string>'
]
]
],
'createTime' => '2023-11-07T05:31:56Z',
'description' => 'Connector for team notifications',
'diagnostics' => [
],
'id' => 'a16e24c8-4db2-4abf-ba3c-c9e1fc35a3b9',
'name' => 'My Slack Connector',
'teamId' => 12345,
'updateTime' => '2023-11-07T05:31:56Z'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"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.coralogix.com/mgmt/openapi/3/notifications/notification-center/v1/connector"
payload := strings.NewReader("{\n \"connector\": {\n \"configOverrides\": [\n {\n \"fields\": [\n {\n \"fieldName\": \"<string>\",\n \"template\": \"<string>\"\n }\n ]\n }\n ],\n \"connectorConfig\": {\n \"fields\": [\n {\n \"fieldName\": \"<string>\",\n \"value\": \"<string>\"\n }\n ]\n },\n \"createTime\": \"2023-11-07T05:31:56Z\",\n \"description\": \"Connector for team notifications\",\n \"diagnostics\": {},\n \"id\": \"a16e24c8-4db2-4abf-ba3c-c9e1fc35a3b9\",\n \"name\": \"My Slack Connector\",\n \"teamId\": 12345,\n \"updateTime\": \"2023-11-07T05:31:56Z\"\n }\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "<api-key>")
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.put("https://api.coralogix.com/mgmt/openapi/3/notifications/notification-center/v1/connector")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"connector\": {\n \"configOverrides\": [\n {\n \"fields\": [\n {\n \"fieldName\": \"<string>\",\n \"template\": \"<string>\"\n }\n ]\n }\n ],\n \"connectorConfig\": {\n \"fields\": [\n {\n \"fieldName\": \"<string>\",\n \"value\": \"<string>\"\n }\n ]\n },\n \"createTime\": \"2023-11-07T05:31:56Z\",\n \"description\": \"Connector for team notifications\",\n \"diagnostics\": {},\n \"id\": \"a16e24c8-4db2-4abf-ba3c-c9e1fc35a3b9\",\n \"name\": \"My Slack Connector\",\n \"teamId\": 12345,\n \"updateTime\": \"2023-11-07T05:31:56Z\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.coralogix.com/mgmt/openapi/3/notifications/notification-center/v1/connector")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"connector\": {\n \"configOverrides\": [\n {\n \"fields\": [\n {\n \"fieldName\": \"<string>\",\n \"template\": \"<string>\"\n }\n ]\n }\n ],\n \"connectorConfig\": {\n \"fields\": [\n {\n \"fieldName\": \"<string>\",\n \"value\": \"<string>\"\n }\n ]\n },\n \"createTime\": \"2023-11-07T05:31:56Z\",\n \"description\": \"Connector for team notifications\",\n \"diagnostics\": {},\n \"id\": \"a16e24c8-4db2-4abf-ba3c-c9e1fc35a3b9\",\n \"name\": \"My Slack Connector\",\n \"teamId\": 12345,\n \"updateTime\": \"2023-11-07T05:31:56Z\"\n }\n}"
response = http.request(request)
puts response.read_body{
"connector": {
"configOverrides": [
{
"fields": [
{
"fieldName": "<string>",
"template": "<string>"
}
]
}
],
"connectorConfig": {
"fields": [
{
"fieldName": "<string>",
"value": "<string>"
}
]
},
"createTime": "2023-11-07T05:31:56Z",
"description": "Connector for team notifications",
"diagnostics": {},
"id": "a16e24c8-4db2-4abf-ba3c-c9e1fc35a3b9",
"name": "My Slack Connector",
"teamId": 12345,
"updateTime": "2023-11-07T05:31:56Z"
}
}Authorizations
API key authentication
Body
application/json
Request to replace an existing connector
A connector configuration for sending notifications
Show child attributes
Show child attributes
Response
200 - application/json
Response containing the updated connector
A connector configuration for sending notifications
Show child attributes
Show child attributes
Was this page helpful?
⌘I