Update a detection
PATCH /api/v1/public/detections/{detectionId}
PATCH /api/v1/public/detections/{detectionId}Partially update public detections.
Operation ID: patch_api_v1_public_detections_detectionId.
Authentication
Choose a credential. Each row is an accepted alternative; access also depends on current roles, project bindings, and entitlements.
| Credential | Carrier | OAuth scopes |
|---|---|---|
ServiceAccountBearerAuth | Authorization: Bearer | See credential policy |
OAuth2 | Authorization: Bearer | configuration:write |
For OAuth and service-account credentials, send the selected project UUID in x-project-id, including when the header is optional for legacy keys.
Service-account tokens need the corresponding functional scopes listed for OAuth, as well as an active binding and role for the selected project.
Availability
This operation requires the public-api-mutations capability to be enabled for the deployment. Its presence in the contract does not guarantee availability. See operation availability.
Request parameters
| Name | Location | Required | Type / allowed values | Description / constraints |
|---|---|---|---|---|
detectionId | path | Yes | string | detectionId path parameter; format: uuid; Pattern constrained; see the downloadable schema. |
idempotency-key | header | Yes | string | idempotency-key header parameter; Required canonical UUIDv4 or high-entropy base64url idempotency key; minLength: 22; maxLength: 43; Pattern constrained; see the downloadable schema. |
x-project-id | header | Yes | string | x-project-id header parameter; format: uuid; Pattern constrained; see the downloadable schema. |
Request body
Body required: no.
application/json
| Field | Type / allowed values | Required in parent | Description / constraints |
|---|---|---|---|
$ | object | Yes | additionalProperties: false |
batchFields | array<string> | null | No | — |
batchFields (anyOf 1) | array<string> | Yes | maxItems: 128 |
batchFields (anyOf 1)[] | string | Yes | minLength: 1; maxLength: 1024 |
config | object | object | object | object | object | object | object | object | No | — |
config (anyOf 1) | object | Yes | additionalProperties: false |
config (anyOf 1).classifier_slug | string | Yes | minLength: 1; maxLength: 100 |
config (anyOf 1).backend | "azure" | "decision" | No | — |
config (anyOf 1).target | "span" | "trace" | No | — |
config (anyOf 2) | object | Yes | additionalProperties: false |
config (anyOf 2).case_sensitive | boolean | No | default: false |
config (anyOf 2).input_pattern | string | null | No | — |
config (anyOf 2).input_pattern (anyOf 1) | string | Yes | minLength: 1; maxLength: 32768 |
config (anyOf 2).operator | "AND" | "OR" | No | default: OR |
config (anyOf 2).output_pattern | string | null | No | — |
config (anyOf 2).output_pattern (anyOf 1) | string | Yes | minLength: 1; maxLength: 32768 |
config (anyOf 3) | object | Yes | additionalProperties: false |
config (anyOf 3).conditions | array<object> | null | No | — |
config (anyOf 3).conditions (anyOf 1) | array<object> | Yes | minItems: 1; maxItems: 100 |
config (anyOf 3).conditions (anyOf 1)[] | object | Yes | additionalProperties: false |
config (anyOf 3).conditions (anyOf 1)[].field | string | Yes | minLength: 1; maxLength: 512 |
config (anyOf 3).conditions (anyOf 1)[].operator | "=" | "!=" | ">" | "<" | ">=" | "<=" | "contains" | "not_contains" | "in" | "not_in" | "is_empty" | "is_not_empty" | Yes | — |
config (anyOf 3).conditions (anyOf 1)[].value | string | number | boolean | null | array<string | number | boolean> | No | — |
config (anyOf 3).conditions (anyOf 1)[].value (anyOf 1) | string | Yes | maxLength: 32768 |
config (anyOf 3).conditions (anyOf 1)[].value (anyOf 2) | number | Yes | — |
config (anyOf 3).conditions (anyOf 1)[].value (anyOf 3) | boolean | Yes | — |
config (anyOf 3).conditions (anyOf 1)[].value (anyOf 5) | array<string | number | boolean> | Yes | maxItems: 100 |
config (anyOf 3).conditions (anyOf 1)[].value (anyOf 5)[] | string | number | boolean | Yes | — |
config (anyOf 3).conditions (anyOf 1)[].value (anyOf 5)[] (anyOf 1) | string | Yes | maxLength: 32768 |
config (anyOf 3).conditions (anyOf 1)[].value (anyOf 5)[] (anyOf 2) | number | Yes | — |
config (anyOf 3).conditions (anyOf 1)[].value (anyOf 5)[] (anyOf 3) | boolean | Yes | — |
config (anyOf 3).logic | "AND" | "OR" | null | No | — |
config (anyOf 3).logic (anyOf 1) | "AND" | "OR" | Yes | — |
config (anyOf 3).root | object | null | No | — |
config (anyOf 3).root (anyOf 1) | object | Yes | additionalProperties: false |
config (anyOf 3).root (anyOf 1).children | array<object | object> | Yes | minItems: 1; maxItems: 100 |
config (anyOf 3).root (anyOf 1).children[] | object | object | Yes | — |
config (anyOf 3).root (anyOf 1).children[] (anyOf 1) | object | Yes | additionalProperties: false |
config (anyOf 3).root (anyOf 1).children[] (anyOf 1).field | string | Yes | minLength: 1; maxLength: 512 |
config (anyOf 3).root (anyOf 1).children[] (anyOf 1).operator | "=" | "!=" | ">" | "<" | ">=" | "<=" | "contains" | "not_contains" | "in" | "not_in" | "is_empty" | "is_not_empty" | Yes | — |
config (anyOf 3).root (anyOf 1).children[] (anyOf 1).type | "rule" | Yes | — |
config (anyOf 3).root (anyOf 1).children[] (anyOf 1).value | string | number | boolean | null | array<string | number | boolean> | No | — |
config (anyOf 3).root (anyOf 1).children[] (anyOf 1).value (anyOf 1) | string | Yes | maxLength: 32768 |
config (anyOf 3).root (anyOf 1).children[] (anyOf 1).value (anyOf 2) | number | Yes | — |
config (anyOf 3).root (anyOf 1).children[] (anyOf 1).value (anyOf 3) | boolean | Yes | — |
config (anyOf 3).root (anyOf 1).children[] (anyOf 1).value (anyOf 5) | array<string | number | boolean> | Yes | maxItems: 100 |
config (anyOf 3).root (anyOf 1).children[] (anyOf 1).value (anyOf 5)[] | string | number | boolean | Yes | — |
config (anyOf 3).root (anyOf 1).children[] (anyOf 1).value (anyOf 5)[] (anyOf 1) | string | Yes | maxLength: 32768 |
config (anyOf 3).root (anyOf 1).children[] (anyOf 1).value (anyOf 5)[] (anyOf 2) | number | Yes | — |
config (anyOf 3).root (anyOf 1).children[] (anyOf 1).value (anyOf 5)[] (anyOf 3) | boolean | Yes | — |
config (anyOf 3).root (anyOf 1).children[] (anyOf 2) | object | Yes | additionalProperties: false |
config (anyOf 3).root (anyOf 1).children[] (anyOf 2).children | array<object | object> | Yes | minItems: 1; maxItems: 100 |
config (anyOf 3).root (anyOf 1).children[] (anyOf 2).children[] | object | object | Yes | — |
config (anyOf 3).root (anyOf 1).children[] (anyOf 2).children[] (anyOf 1) | object | Yes | additionalProperties: false |
config (anyOf 3).root (anyOf 1).children[] (anyOf 2).children[] (anyOf 1).field | string | Yes | minLength: 1; maxLength: 512 |
config (anyOf 3).root (anyOf 1).children[] (anyOf 2).children[] (anyOf 1).operator | "=" | "!=" | ">" | "<" | ">=" | "<=" | "contains" | "not_contains" | "in" | "not_in" | "is_empty" | "is_not_empty" | Yes | — |
config (anyOf 3).root (anyOf 1).children[] (anyOf 2).children[] (anyOf 1).type | "rule" | Yes | — |
config (anyOf 3).root (anyOf 1).children[] (anyOf 2).children[] (anyOf 1).value | string | number | boolean | null | array<string | number | boolean> | No | — |
config (anyOf 3).root (anyOf 1).children[] (anyOf 2).children[] (anyOf 1).value (anyOf 1) | string | Yes | maxLength: 32768 |
config (anyOf 3).root (anyOf 1).children[] (anyOf 2).children[] (anyOf 1).value (anyOf 2) | number | Yes | — |
config (anyOf 3).root (anyOf 1).children[] (anyOf 2).children[] (anyOf 1).value (anyOf 3) | boolean | Yes | — |
config (anyOf 3).root (anyOf 1).children[] (anyOf 2).children[] (anyOf 1).value (anyOf 5) | array<string | number | boolean> | Yes | maxItems: 100 |
config (anyOf 3).root (anyOf 1).children[] (anyOf 2).children[] (anyOf 1).value (anyOf 5)[] | string | number | boolean | Yes | — |
config (anyOf 3).root (anyOf 1).children[] (anyOf 2).children[] (anyOf 1).value (anyOf 5)[] (anyOf 1) | string | Yes | maxLength: 32768 |
config (anyOf 3).root (anyOf 1).children[] (anyOf 2).children[] (anyOf 1).value (anyOf 5)[] (anyOf 2) | number | Yes | — |
config (anyOf 3).root (anyOf 1).children[] (anyOf 2).children[] (anyOf 1).value (anyOf 5)[] (anyOf 3) | boolean | Yes | — |
config (anyOf 3).root (anyOf 1).children[] (anyOf 2).children[] (anyOf 2) | object | Yes | additionalProperties: false |
config (anyOf 3).root (anyOf 1).children[] (anyOf 2).children[] (anyOf 2).children | array<object | object> | Yes | minItems: 1; maxItems: 100 |
config (anyOf 3).root (anyOf 1).children[] (anyOf 2).children[] (anyOf 2).children[] | object | object | Yes | — |
config (anyOf 3).root (anyOf 1).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 1) | object | Yes | additionalProperties: false |
config (anyOf 3).root (anyOf 1).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 1).field | string | Yes | minLength: 1; maxLength: 512 |
config (anyOf 3).root (anyOf 1).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 1).operator | "=" | "!=" | ">" | "<" | ">=" | "<=" | "contains" | "not_contains" | "in" | "not_in" | "is_empty" | "is_not_empty" | Yes | — |
config (anyOf 3).root (anyOf 1).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 1).type | "rule" | Yes | — |
config (anyOf 3).root (anyOf 1).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 1).value | string | number | boolean | null | array<string | number | boolean> | No | — |
config (anyOf 3).root (anyOf 1).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 1).value (anyOf 1) | string | Yes | maxLength: 32768 |
config (anyOf 3).root (anyOf 1).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 1).value (anyOf 2) | number | Yes | — |
config (anyOf 3).root (anyOf 1).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 1).value (anyOf 3) | boolean | Yes | — |
config (anyOf 3).root (anyOf 1).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 1).value (anyOf 5) | array<string | number | boolean> | Yes | maxItems: 100 |
config (anyOf 3).root (anyOf 1).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 1).value (anyOf 5)[] | string | number | boolean | Yes | — |
config (anyOf 3).root (anyOf 1).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 1).value (anyOf 5)[] (anyOf 1) | string | Yes | maxLength: 32768 |
config (anyOf 3).root (anyOf 1).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 1).value (anyOf 5)[] (anyOf 2) | number | Yes | — |
config (anyOf 3).root (anyOf 1).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 1).value (anyOf 5)[] (anyOf 3) | boolean | Yes | — |
config (anyOf 3).root (anyOf 1).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2) | object | Yes | additionalProperties: false |
config (anyOf 3).root (anyOf 1).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children | array<object | object> | Yes | minItems: 1; maxItems: 100 |
config (anyOf 3).root (anyOf 1).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] | object | object | Yes | — |
config (anyOf 3).root (anyOf 1).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 1) | object | Yes | additionalProperties: false |
config (anyOf 3).root (anyOf 1).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 1).field | string | Yes | minLength: 1; maxLength: 512 |
config (anyOf 3).root (anyOf 1).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 1).operator | "=" | "!=" | ">" | "<" | ">=" | "<=" | "contains" | "not_contains" | "in" | "not_in" | "is_empty" | "is_not_empty" | Yes | — |
config (anyOf 3).root (anyOf 1).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 1).type | "rule" | Yes | — |
config (anyOf 3).root (anyOf 1).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 1).value | string | number | boolean | null | array<string | number | boolean> | No | — |
config (anyOf 3).root (anyOf 1).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 1).value (anyOf 1) | string | Yes | maxLength: 32768 |
config (anyOf 3).root (anyOf 1).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 1).value (anyOf 2) | number | Yes | — |
config (anyOf 3).root (anyOf 1).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 1).value (anyOf 3) | boolean | Yes | — |
config (anyOf 3).root (anyOf 1).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 1).value (anyOf 5) | array<string | number | boolean> | Yes | maxItems: 100 |
config (anyOf 3).root (anyOf 1).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 1).value (anyOf 5)[] | string | number | boolean | Yes | — |
config (anyOf 3).root (anyOf 1).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 1).value (anyOf 5)[] (anyOf 1) | string | Yes | maxLength: 32768 |
config (anyOf 3).root (anyOf 1).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 1).value (anyOf 5)[] (anyOf 2) | number | Yes | — |
config (anyOf 3).root (anyOf 1).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 1).value (anyOf 5)[] (anyOf 3) | boolean | Yes | — |
config (anyOf 3).root (anyOf 1).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2) | object | Yes | additionalProperties: false |
config (anyOf 3).root (anyOf 1).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children | array<object | object> | Yes | minItems: 1; maxItems: 100 |
config (anyOf 3).root (anyOf 1).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] | object | object | Yes | — |
config (anyOf 3).root (anyOf 1).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 1) | object | Yes | additionalProperties: false |
config (anyOf 3).root (anyOf 1).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 1).field | string | Yes | minLength: 1; maxLength: 512 |
config (anyOf 3).root (anyOf 1).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 1).operator | "=" | "!=" | ">" | "<" | ">=" | "<=" | "contains" | "not_contains" | "in" | "not_in" | "is_empty" | "is_not_empty" | Yes | — |
config (anyOf 3).root (anyOf 1).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 1).type | "rule" | Yes | — |
config (anyOf 3).root (anyOf 1).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 1).value | string | number | boolean | null | array<string | number | boolean> | No | — |
config (anyOf 3).root (anyOf 1).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 1).value (anyOf 1) | string | Yes | maxLength: 32768 |
config (anyOf 3).root (anyOf 1).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 1).value (anyOf 2) | number | Yes | — |
config (anyOf 3).root (anyOf 1).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 1).value (anyOf 3) | boolean | Yes | — |
config (anyOf 3).root (anyOf 1).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 1).value (anyOf 5) | array<string | number | boolean> | Yes | maxItems: 100 |
config (anyOf 3).root (anyOf 1).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 1).value (anyOf 5)[] | string | number | boolean | Yes | — |
config (anyOf 3).root (anyOf 1).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 1).value (anyOf 5)[] (anyOf 1) | string | Yes | maxLength: 32768 |
config (anyOf 3).root (anyOf 1).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 1).value (anyOf 5)[] (anyOf 2) | number | Yes | — |
config (anyOf 3).root (anyOf 1).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 1).value (anyOf 5)[] (anyOf 3) | boolean | Yes | — |
config (anyOf 3).root (anyOf 1).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2) | object | Yes | additionalProperties: false |
config (anyOf 3).root (anyOf 1).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children | array<object> | Yes | minItems: 1; maxItems: 100 |
config (anyOf 3).root (anyOf 1).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] | object | Yes | additionalProperties: false |
config (anyOf 3).root (anyOf 1).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[].field | string | Yes | minLength: 1; maxLength: 512 |
config (anyOf 3).root (anyOf 1).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[].operator | "=" | "!=" | ">" | "<" | ">=" | "<=" | "contains" | "not_contains" | "in" | "not_in" | "is_empty" | "is_not_empty" | Yes | — |
config (anyOf 3).root (anyOf 1).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[].type | "rule" | Yes | — |
config (anyOf 3).root (anyOf 1).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[].value | string | number | boolean | null | array<string | number | boolean> | No | — |
config (anyOf 3).root (anyOf 1).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[].value (anyOf 1) | string | Yes | maxLength: 32768 |
config (anyOf 3).root (anyOf 1).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[].value (anyOf 2) | number | Yes | — |
config (anyOf 3).root (anyOf 1).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[].value (anyOf 3) | boolean | Yes | — |
config (anyOf 3).root (anyOf 1).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[].value (anyOf 5) | array<string | number | boolean> | Yes | maxItems: 100 |
config (anyOf 3).root (anyOf 1).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[].value (anyOf 5)[] | string | number | boolean | Yes | — |
config (anyOf 3).root (anyOf 1).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[].value (anyOf 5)[] (anyOf 1) | string | Yes | maxLength: 32768 |
config (anyOf 3).root (anyOf 1).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[].value (anyOf 5)[] (anyOf 2) | number | Yes | — |
config (anyOf 3).root (anyOf 1).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[].value (anyOf 5)[] (anyOf 3) | boolean | Yes | — |
config (anyOf 3).root (anyOf 1).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).logic | "AND" | "OR" | Yes | — |
config (anyOf 3).root (anyOf 1).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).type | "group" | Yes | — |
config (anyOf 3).root (anyOf 1).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).logic | "AND" | "OR" | Yes | — |
config (anyOf 3).root (anyOf 1).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).type | "group" | Yes | — |
config (anyOf 3).root (anyOf 1).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).logic | "AND" | "OR" | Yes | — |
config (anyOf 3).root (anyOf 1).children[] (anyOf 2).children[] (anyOf 2).children[] (anyOf 2).type | "group" | Yes | — |
config (anyOf 3).root (anyOf 1).children[] (anyOf 2).children[] (anyOf 2).logic | "AND" | "OR" | Yes | — |
config (anyOf 3).root (anyOf 1).children[] (anyOf 2).children[] (anyOf 2).type | "group" | Yes | — |
config (anyOf 3).root (anyOf 1).children[] (anyOf 2).logic | "AND" | "OR" | Yes | — |
config (anyOf 3).root (anyOf 1).children[] (anyOf 2).type | "group" | Yes | — |
config (anyOf 3).root (anyOf 1).logic | "AND" | "OR" | Yes | — |
config (anyOf 3).root (anyOf 1).type | "group" | Yes | — |
config (anyOf 4) | object | Yes | additionalProperties: false |
config (anyOf 4).entities | array<"EMAIL_ADDRESS" | "PHONE_NUMBER" | "CREDIT_CARD" | "IP_ADDRESS" | "URL"> | null | No | — |
config (anyOf 4).entities (anyOf 1) | array<"EMAIL_ADDRESS" | "PHONE_NUMBER" | "CREDIT_CARD" | "IP_ADDRESS" | "URL"> | Yes | maxItems: 5 |
config (anyOf 4).entities (anyOf 1)[] | "EMAIL_ADDRESS" | "PHONE_NUMBER" | "CREDIT_CARD" | "IP_ADDRESS" | "URL" | Yes | — |
config (anyOf 5) | object | Yes | additionalProperties: false |
config (anyOf 5).project_id | string | Yes | format: uuid; Pattern constrained; see the downloadable schema. |
config (anyOf 5).custom_detection_id | string | Yes | format: uuid; Pattern constrained; see the downloadable schema. |
config (anyOf 5).version | integer | Yes | maximum: 9007199254740991; exclusiveMinimum: 0 |
config (anyOf 5).method | "setfit" | "qlora" | Yes | — |
config (anyOf 5).artifact_uri | string | null | No | — |
config (anyOf 5).artifact_uri (anyOf 1) | string | Yes | — |
config (anyOf 5).temperature | number | No | default: 1; exclusiveMinimum: 0 |
config (anyOf 6) | object | Yes | additionalProperties: false |
config (anyOf 6).schema_version | "trace-rules.v1" | No | default: trace-rules.v1 |
config (anyOf 6).combine | "all" | "any" | Yes | — |
config (anyOf 6).rows | array<object | object | object | object> | Yes | minItems: 1; maxItems: 20 |
config (anyOf 6).rows[] | object | object | object | object | Yes | — |
config (anyOf 6).rows[] (oneOf 1) | object | Yes | additionalProperties: false |
config (anyOf 6).rows[] (oneOf 1).kind | "match" | Yes | — |
config (anyOf 6).rows[] (oneOf 1).span | object | Yes | additionalProperties: false |
config (anyOf 6).rows[] (oneOf 1).span.tests | array<object> | Yes | minItems: 1; maxItems: 12 |
config (anyOf 6).rows[] (oneOf 1).span.tests[] | object | Yes | additionalProperties: false |
config (anyOf 6).rows[] (oneOf 1).span.tests[].field | string | Yes | minLength: 1; maxLength: 128 |
config (anyOf 6).rows[] (oneOf 1).span.tests[].op | "is" | "is_not" | "in" | "not_in" | "contains" | "not_contains" | "matches" | "not_matches" | "contains_pii" | "not_contains_pii" | "gt" | "gte" | "lt" | "lte" | "exists" | "not_exists" | Yes | — |
config (anyOf 6).rows[] (oneOf 1).span.tests[].value | any | null | No | — |
config (anyOf 6).rows[] (oneOf 1).span.tests[].value (anyOf 1) | any | Yes | — |
config (anyOf 6).rows[] (oneOf 1).quantifier | object | Yes | additionalProperties: false |
config (anyOf 6).rows[] (oneOf 1).quantifier.kind | "at_least" | "at_most" | "exactly" | "none" | Yes | — |
config (anyOf 6).rows[] (oneOf 1).quantifier.count | integer | null | No | — |
config (anyOf 6).rows[] (oneOf 1).quantifier.count (anyOf 1) | integer | Yes | minimum: 0; maximum: 100000 |
config (anyOf 6).rows[] (oneOf 1).relation | object | null | No | — |
config (anyOf 6).rows[] (oneOf 1).relation (anyOf 1) | object | Yes | additionalProperties: false |
config (anyOf 6).rows[] (oneOf 1).relation (anyOf 1).kind | "preceded_by" | "not_preceded_by" | "followed_by" | "not_followed_by" | Yes | — |
config (anyOf 6).rows[] (oneOf 1).relation (anyOf 1).span | object | Yes | additionalProperties: false |
config (anyOf 6).rows[] (oneOf 1).relation (anyOf 1).span.tests | array<object> | Yes | minItems: 1; maxItems: 12 |
config (anyOf 6).rows[] (oneOf 1).relation (anyOf 1).span.tests[] | object | Yes | additionalProperties: false |
config (anyOf 6).rows[] (oneOf 1).relation (anyOf 1).span.tests[].field | string | Yes | minLength: 1; maxLength: 128 |
config (anyOf 6).rows[] (oneOf 1).relation (anyOf 1).span.tests[].op | "is" | "is_not" | "in" | "not_in" | "contains" | "not_contains" | "matches" | "not_matches" | "contains_pii" | "not_contains_pii" | "gt" | "gte" | "lt" | "lte" | "exists" | "not_exists" | Yes | — |
config (anyOf 6).rows[] (oneOf 1).relation (anyOf 1).span.tests[].value | any | null | No | — |
config (anyOf 6).rows[] (oneOf 1).relation (anyOf 1).span.tests[].value (anyOf 1) | any | Yes | — |
config (anyOf 6).rows[] (oneOf 2) | object | Yes | additionalProperties: false |
config (anyOf 6).rows[] (oneOf 2).kind | "aggregate" | Yes | — |
config (anyOf 6).rows[] (oneOf 2).function | "count" | "sum" | "average" | "minimum" | "maximum" | Yes | — |
config (anyOf 6).rows[] (oneOf 2).field | string | null | No | — |
config (anyOf 6).rows[] (oneOf 2).field (anyOf 1) | string | Yes | maxLength: 128 |
config (anyOf 6).rows[] (oneOf 2).where | object | null | No | — |
config (anyOf 6).rows[] (oneOf 2).where (anyOf 1) | object | Yes | additionalProperties: false |
config (anyOf 6).rows[] (oneOf 2).where (anyOf 1).tests | array<object> | Yes | minItems: 1; maxItems: 12 |
config (anyOf 6).rows[] (oneOf 2).where (anyOf 1).tests[] | object | Yes | additionalProperties: false |
config (anyOf 6).rows[] (oneOf 2).where (anyOf 1).tests[].field | string | Yes | minLength: 1; maxLength: 128 |
config (anyOf 6).rows[] (oneOf 2).where (anyOf 1).tests[].op | "is" | "is_not" | "in" | "not_in" | "contains" | "not_contains" | "matches" | "not_matches" | "contains_pii" | "not_contains_pii" | "gt" | "gte" | "lt" | "lte" | "exists" | "not_exists" | Yes | — |
config (anyOf 6).rows[] (oneOf 2).where (anyOf 1).tests[].value | any | null | No | — |
config (anyOf 6).rows[] (oneOf 2).where (anyOf 1).tests[].value (anyOf 1) | any | Yes | — |
config (anyOf 6).rows[] (oneOf 2).compare | object | Yes | additionalProperties: false |
config (anyOf 6).rows[] (oneOf 2).compare.kind | "at_least" | "at_most" | "exactly" | Yes | — |
config (anyOf 6).rows[] (oneOf 2).compare.value | number | Yes | minimum: 0; maximum: 1000000000 |
config (anyOf 6).rows[] (oneOf 3) | object | Yes | additionalProperties: false |
config (anyOf 6).rows[] (oneOf 3).kind | "repeat" | Yes | — |
config (anyOf 6).rows[] (oneOf 3).span | object | Yes | additionalProperties: false |
config (anyOf 6).rows[] (oneOf 3).span.tests | array<object> | Yes | minItems: 1; maxItems: 12 |
config (anyOf 6).rows[] (oneOf 3).span.tests[] | object | Yes | additionalProperties: false |
config (anyOf 6).rows[] (oneOf 3).span.tests[].field | string | Yes | minLength: 1; maxLength: 128 |
config (anyOf 6).rows[] (oneOf 3).span.tests[].op | "is" | "is_not" | "in" | "not_in" | "contains" | "not_contains" | "matches" | "not_matches" | "contains_pii" | "not_contains_pii" | "gt" | "gte" | "lt" | "lte" | "exists" | "not_exists" | Yes | — |
config (anyOf 6).rows[] (oneOf 3).span.tests[].value | any | null | No | — |
config (anyOf 6).rows[] (oneOf 3).span.tests[].value (anyOf 1) | any | Yes | — |
config (anyOf 6).rows[] (oneOf 3).group_by | "name" | "type" | "tool.name" | "llm.model" | Yes | — |
config (anyOf 6).rows[] (oneOf 3).compare | object | Yes | additionalProperties: false |
config (anyOf 6).rows[] (oneOf 3).compare.kind | "at_least" | "at_most" | "exactly" | Yes | — |
config (anyOf 6).rows[] (oneOf 3).compare.value | number | Yes | minimum: 0; maximum: 1000000000 |
config (anyOf 6).rows[] (oneOf 4) | object | Yes | additionalProperties: false |
config (anyOf 6).rows[] (oneOf 4).kind | "trace" | Yes | — |
config (anyOf 6).rows[] (oneOf 4).field | "trace.input" | "trace.output" | "trace.status" | "trace.duration_ms" | Yes | — |
config (anyOf 6).rows[] (oneOf 4).op | "is" | "is_not" | "in" | "not_in" | "contains" | "not_contains" | "matches" | "not_matches" | "contains_pii" | "not_contains_pii" | "gt" | "gte" | "lt" | "lte" | "exists" | "not_exists" | Yes | — |
config (anyOf 6).rows[] (oneOf 4).value | any | null | No | — |
config (anyOf 6).rows[] (oneOf 4).value (anyOf 1) | any | Yes | — |
config (anyOf 7) | object | Yes | additionalProperties: false |
config (anyOf 7).criterion | string | Yes | minLength: 1; maxLength: 4000 |
config (anyOf 7).target | "span" | "trace" | "session" | No | default: span |
config (anyOf 7).context | "target" | "related" | No | default: target |
config (anyOf 8) | object | Yes | additionalProperties: false |
config (anyOf 8).entrypoint | "detect" | No | — |
config (anyOf 8).input_schema | "span.v1" | "trace.v1" | "session.v1" | No | — |
config (anyOf 8).language | "python" | "javascript" | Yes | — |
config (anyOf 8).source | string | Yes | minLength: 1; maxLength: 16384 |
config (anyOf 8).required_evidence | array<string> | No | maxItems: 32 |
config (anyOf 8).required_evidence[] | string | Yes | minLength: 1; maxLength: 128 |
config (anyOf 8).target | "span" | "trace" | "session" | Yes | — |
description | string | null | No | — |
description (anyOf 1) | string | Yes | maxLength: 32768 |
displayName | string | No | minLength: 1; maxLength: 255 |
groupId | string | No | format: uuid; Pattern constrained; see the downloadable schema. |
runOn | object | No | additionalProperties: false |
runOn.frequency | "trace" | "session" | "span_type" | "span_name" | No | default: trace |
runOn.span_names | array<string> | null | No | — |
runOn.span_names (anyOf 1) | array<string> | Yes | maxItems: 128 |
runOn.span_names (anyOf 1)[] | string | Yes | minLength: 1; maxLength: 1024 |
runOn.span_types | array<string> | null | No | — |
runOn.span_types (anyOf 1) | array<string> | Yes | maxItems: 128 |
runOn.span_types (anyOf 1)[] | string | Yes | minLength: 1; maxLength: 255 |
threshold | number | No | minimum: 0; maximum: 1 |
Request example
Replace placeholder IDs and environment variables with values from your authorized project. Credentials are expanded into curl's stdin configuration, not its command arguments. Keep shell tracing off and do not log this configuration. For requests with a body, put a payload matching the schema in request-body.txt; form requests use URL-encoded content.
curl --fail-with-body --silent --show-error --config - <<CURL_CONFIG
request = "PATCH"
header = "Authorization: Bearer ${NEATLOGS_TOKEN}"
header = "idempotency-key: ${IDEMPOTENCY_KEY}"
header = "x-project-id: ${NEATLOGS_PROJECT_ID}"
header = "Content-Type: application/json"
data-binary = "@request-body.txt"
url = "https://app.neatlogs.com/api/v1/public/detections/<detectionId>"
CURL_CONFIGResponses
| Status | Description | Content type |
|---|---|---|
200 | Detection updated | application/json |
400 | Invalid public API request | application/problem+json |
401 | Missing or invalid public API credential | application/problem+json |
403 | Public API request is not authorized | application/problem+json |
404 | Detection not found | application/problem+json |
409 | Detection conflict | application/problem+json |
413 | Public API request body too large | application/problem+json |
415 | Unsupported public API request body | application/problem+json |
429 | Public API rate limit exceeded | application/problem+json |
500 | Internal server error | application/problem+json |
503 | Public API credential, project context, or rate limiting unavailable. Backend is draining; retry after the Retry-After delay. | application/problem+json, application/json |
200 response fields
Content type: application/json.
| Field | Type / allowed values | Required in parent | Description / constraints |
|---|---|---|---|
$ | object | Yes | additionalProperties: false |
data | object | Yes | additionalProperties: false |
data.createdAt | string | Yes | format: date-time; Pattern constrained; see the downloadable schema. |
data.displayName | string | Yes | minLength: 1; maxLength: 255 |
data.groupId | string | Yes | format: uuid; Pattern constrained; see the downloadable schema. |
data.groupName | string | null | Yes | — |
data.groupName (anyOf 1) | string | Yes | maxLength: 255 |
data.id | string | Yes | format: uuid; Pattern constrained; see the downloadable schema. |
data.isActive | boolean | Yes | — |
data.showHistoricalResults | boolean | No | — |
data.activeAlertCount | integer | No | minimum: 0; maximum: 9007199254740991 |
data.lifecycleStatus | "active" | "paused" | "disabled" | No | — |
data.catalogRevision | string | No | maxLength: 128 |
data.policyRevision | string | No | maxLength: 128 |
data.issueSemantics | object | null | No | — |
data.issueSemantics (anyOf 1) | object | Yes | additionalProperties: false |
data.issueSemantics (anyOf 1).schema_version | "detector-issue-semantics-v1" | Yes | — |
data.issueSemantics (anyOf 1).polarity | "problem" | "healthy" | "informational" | "unknown" | Yes | — |
data.issueSemantics (anyOf 1).authority | "none" | "project_authoritative" | Yes | default: none |
data.issueSemantics (anyOf 1).truth_role | string | No | minLength: 1; maxLength: 100 |
data.issueSemantics (anyOf 1).contract_id | string | No | minLength: 1; maxLength: 256 |
data.issueSemantics (anyOf 1).contract_version | string | No | minLength: 1; maxLength: 100 |
data.slug | string | Yes | minLength: 1; maxLength: 100 |
data.threshold | number | Yes | minimum: 0; maximum: 1 |
data.type | "classifier" | "regex" | "conditional" | "pii" | "custom_trained" | "code" | "trace_rules" | "decision" | Yes | — |
data.updatedAt | string | Yes | format: date-time; Pattern constrained; see the downloadable schema. |
requestId | string | Yes | Pattern constrained; see the downloadable schema. |
success | true | Yes | — |
Response headers
| Header | Description / constraints |
|---|---|
RateLimit-Limit | Effective request ceiling for the current window; minimum: 1 |
RateLimit-Remaining | Requests remaining in the current window; minimum: 0 |
RateLimit-Reset | Unix timestamp in seconds when the current window resets; minimum: 0 |
X-NeatLogs-RateLimit-Degraded | Whether bounded emergency enforcement is active; — |
X-NeatLogs-RateLimit-Limit | Effective request ceiling for the current window; minimum: 1 |
X-NeatLogs-RateLimit-Policy | Applied pre-authentication or authenticated rate class; — |
X-NeatLogs-RateLimit-Remaining | Requests remaining in the current window; minimum: 0 |
X-NeatLogs-RateLimit-Reset-After | Whole seconds until the current window resets; minimum: 1 |
X-NeatLogs-RateLimit-Version | NeatLogs rate-limit contract version; — |
X-Request-Id | Server-owned request correlation identifier; Pattern constrained; see the downloadable schema. |
Failures use Problem Details. For exact validation patterns and all response schemas, download the OpenAPI specification.
