No description available
const fetch = require('node-fetch');
let url = 'https://api.coralogix.com/mgmt/openapi/v1/custom_enrichment';
let options = {
method: 'PUT',
headers: {Authorization: 'Bearer <API_KEY>', 'content-type': 'application/json'},
body: '{"customEnrichmentId":1,"name":"custom_enrichment_name","description":"custom_enrichment_description","file":{"name":"file_name","extension":"csv","size":100,"textual":"row1,row2 value1,value2","binary":"0xFABB32"}}'
};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error('error:' + err));
{
"message": "Custom enrichment updated successfully",
"customEnrichment": {
"id": 123,
"name": "<string>",
"description": "<string>",
"version": 123,
"isQueryOnly": true,
"fileName": "<string>",
"fileSize": 123
}
}
API key authentication
This request data structure is used to update a custom enrichment
A successful response.
This response data structure is obtained when a custom enrichment is updated
Was this page helpful?
const fetch = require('node-fetch');
let url = 'https://api.coralogix.com/mgmt/openapi/v1/custom_enrichment';
let options = {
method: 'PUT',
headers: {Authorization: 'Bearer <API_KEY>', 'content-type': 'application/json'},
body: '{"customEnrichmentId":1,"name":"custom_enrichment_name","description":"custom_enrichment_description","file":{"name":"file_name","extension":"csv","size":100,"textual":"row1,row2 value1,value2","binary":"0xFABB32"}}'
};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error('error:' + err));
{
"message": "Custom enrichment updated successfully",
"customEnrichment": {
"id": 123,
"name": "<string>",
"description": "<string>",
"version": 123,
"isQueryOnly": true,
"fileName": "<string>",
"fileSize": 123
}
}
No description available
const fetch = require('node-fetch');
let url = 'https://api.coralogix.com/mgmt/openapi/v1/custom_enrichment';
let options = {
method: 'PUT',
headers: {Authorization: 'Bearer <API_KEY>', 'content-type': 'application/json'},
body: '{"customEnrichmentId":1,"name":"custom_enrichment_name","description":"custom_enrichment_description","file":{"name":"file_name","extension":"csv","size":100,"textual":"row1,row2 value1,value2","binary":"0xFABB32"}}'
};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error('error:' + err));
{
"message": "Custom enrichment updated successfully",
"customEnrichment": {
"id": 123,
"name": "<string>",
"description": "<string>",
"version": 123,
"isQueryOnly": true,
"fileName": "<string>",
"fileSize": 123
}
}
API key authentication
This request data structure is used to update a custom enrichment
A successful response.
This response data structure is obtained when a custom enrichment is updated
Was this page helpful?
const fetch = require('node-fetch');
let url = 'https://api.coralogix.com/mgmt/openapi/v1/custom_enrichment';
let options = {
method: 'PUT',
headers: {Authorization: 'Bearer <API_KEY>', 'content-type': 'application/json'},
body: '{"customEnrichmentId":1,"name":"custom_enrichment_name","description":"custom_enrichment_description","file":{"name":"file_name","extension":"csv","size":100,"textual":"row1,row2 value1,value2","binary":"0xFABB32"}}'
};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error('error:' + err));
{
"message": "Custom enrichment updated successfully",
"customEnrichment": {
"id": 123,
"name": "<string>",
"description": "<string>",
"version": 123,
"isQueryOnly": true,
"fileName": "<string>",
"fileSize": 123
}
}