/enrichment
A Graze API endpoint that allows you to add and delete records from the enrichment data store. To use the Enrichment API, you must install Moogsoft Add-ons v1.4 or later and set up the Enrichment API Integration.
After you load data into the enrichment data store, you can add the data to an alert's custom_info
object under the enrichment
key using the Enrichment Workflow Engine getEnrichment function.
For an tutorial on how to use the Enrichment API, see Enrich Alerts Using the Enrichment API.
Back to Graze API EndPoint Reference.
POST
The enrichment endpoint only supports the POST HTTP method to create, update, and delete enrichment records.
Response
Endpoint enrichment
returns the following response:
Examples
The following examples demonstrate typical use of endpoint grazeApiEndpointName
:
Request example
Example cURL request to create enrichment data:
curl -k -X POST 'https://localhost/graze/v1/integrations/enrichment' \ --header 'Content-Type: application/json; charset=UTF-8' \ -u graze:graze \ -d '{"action":"post", "data":[ {"attribute":"source", "value":"SFlinux101", "enrichment": { "location":"1265 Battery St., San Francisco, CA", "support_group":"SF NOC"} }, {"attribute":"source", "value":"DENlinux102", "enrichment": { "location":"1700 Lincoln Street, Denver, CO", "support_group":"DENVER NOC"} }]}'