Templates
Update a template
Updates a template by ID. The previous version is tombstoned.
put/v1/templates/{id}
Request
- Base URLhttps://docs.grepr.ai (the document declares no server; this is the origin it was published from)
- Auth
- API key in header GREPR-API-KEY
- or OpenID Connect (https://grepr-prod.us.auth0.com/.well-known/openid-configuration)
Path parameters
idstring required
Request body
Example request
{
"description": "Parses JSON log events and extracts fields.",
"draftOutputs": [
{
"name": "parsedOutput",
"tagKey": "draft",
"tagValue": "true"
}
],
"id": "template-123",
"inputs": {
"input": "log_reducer:input"
},
"name": "Parse JSON Logs",
"organizationId": "org-456",
"sourceHash": "c354755d7b9b669e3111fcdd40a3432386d13a1b5548c2464ca2d73bcf3f70f1",
"teamIds": [
"team-1",
"team-2"
],
"version": 1
}Response
Template updated successfully
Example response
{
"description": "Parses JSON log events and extracts fields.",
"draftOutputs": [
{
"name": "parsedOutput",
"tagKey": "draft",
"tagValue": "true"
}
],
"id": "template-123",
"inputs": {
"input": "log_reducer:input"
},
"name": "Parse JSON Logs",
"organizationId": "org-456",
"sourceHash": "c354755d7b9b669e3111fcdd40a3432386d13a1b5548c2464ca2d73bcf3f70f1",
"teamIds": [
"team-1",
"team-2"
],
"version": 1
}Changes
No recorded changes to this operation across all 1 revision of this API.