Admin — Learned Patterns
Get a learned pattern
Returns a single learned pattern by ID.
Path Parameters
id*string
Length
1 <= length <= 128Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "http://localhost:3001/api/v1/admin/learned-patterns/abc123"{
"id": "string",
"orgId": "string",
"patternSql": "string",
"description": "string",
"sourceEntity": "string",
"sourceQueries": [
"string"
],
"confidence": 0,
"repetitionCount": 0,
"status": "pending",
"proposedBy": "agent",
"reviewedBy": "string",
"createdAt": "string",
"updatedAt": "string",
"reviewedAt": "string",
"type": "query_pattern",
"amendmentPayload": {
"property1": null,
"property2": null
}
}{
"property1": null,
"property2": null
}{
"property1": null,
"property2": null
}{
"error": "string",
"message": "string",
"requestId": "string"
}{
"property1": null,
"property2": null
}{
"error": "string",
"message": "string",
"requestId": "string"
}