Authorizations
API key authentication
Body
application/json
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,"description":"custom_enrichment_description","file":{"extension":"csv","name":"file_name","size":100,"textual":"row1,row2 value1,value2"},"name":"custom_enrichment_name"}'
};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error('error:' + err));
{
"customEnrichment": {
"description": "<string>",
"fileName": "<string>",
"fileSize": 123,
"id": 123,
"isQueryOnly": true,
"name": "<string>",
"version": 123
},
"message": "Custom enrichment updated successfully"
}
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,"description":"custom_enrichment_description","file":{"extension":"csv","name":"file_name","size":100,"textual":"row1,row2 value1,value2"},"name":"custom_enrichment_name"}'
};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error('error:' + err));
{
"customEnrichment": {
"description": "<string>",
"fileName": "<string>",
"fileSize": 123,
"id": 123,
"isQueryOnly": true,
"name": "<string>",
"version": 123
},
"message": "Custom enrichment updated successfully"
}
API key authentication
This request data structure is used to update a custom enrichment
1
"custom_enrichment_description"
This data structure represents a file
Show child attributes
"custom_enrichment_name"
Was this page helpful?