From 7d1a6144438af650f8e81a9d2835374b830bbf50 Mon Sep 17 00:00:00 2001 From: Kirill Mokevnin Date: Mon, 16 Nov 2026 08:49:13 -0500 Subject: [PATCH] docs(api): an array item in a field error's path is named by its index Co-Authored-By: Claude Opus 5.5 --- src/content/docs/docs/guide/api.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/content/docs/docs/guide/api.md b/src/content/docs/docs/guide/api.md index c701903..9293148 100644 --- a/src/content/docs/docs/guide/api.md +++ b/src/content/docs/docs/guide/api.md @@ -140,6 +140,9 @@ goes through as if it had been left out. `errors` names the property by its path } ``` +An item of an array is named by its index, counted from 0: `condition.rules.1.field` is the field +of a Segment condition's second rule. + The maps whose keys are yours stay open: a Contact's `customFields`, an Event's `properties` and an email's `variables` take any key. Responses stay open too: a later release may add a property to a response, so ignore the ones you do not know.