v1

latestSwagger 2.02026-07-17290378721.8 KB
correlations

Updates a correlation.

patch/datasources/uid/{sourceUID}/correlations/{correlationUID}

Path parameters

sourceUIDstring required
correlationUIDstring required

Request body

descriptionstring

Optional description of the correlation

labelstring

Optional label identifying the correlation

Example request

{
  "config": {
    "field": "message",
    "target": {
      "expr": "job=app"
    }
  },
  "description": "Logs to Traces",
  "label": "My label"
}

Response

(empty)

messagestring

Example response

{
  "message": "Correlation updated",
  "result": {
    "config": {
      "field": "message",
      "target": {
        "expr": "job=app"
      }
    },
    "description": "Logs to Traces",
    "label": "My Label",
    "sourceUID": "d0oxYRg4z",
    "targetUID": "PE1C5CBDA0504A6A3",
    "uid": "50xhMlg9k"
  }
}