docs: Document inLast and inNext Segment filter operators in the REST API reference#595
Draft
promptless-for-oss wants to merge 1 commit into
Draft
Conversation
|
|
||
| For ``inLast`` and ``inNext``, send ``properties.filter`` as an object with an ``interval`` integer and a ``unit`` of ``day``, ``month``, or ``year`` instead of a scalar value. Refer to :ref:`In the last and In the next filter <in the last and in the next filter>` for an example. | ||
|
|
||
| Select or multi-select fields |
Contributor
Author
There was a problem hiding this comment.
Documented the inLast/inNext API payload shape added in this PR. Unlike other date operators (scalar filter), these require properties.filter to be an object with interval and unit keys — confirmed by the API test ListApiControllerFunctionalTest.php ('properties' => ['filter' => ['interval' => '1', 'unit' => 'day']]) and preserved by FieldFilterTransformer which skips its usual date normalization for these operators. Valid units (day/month/year) come from DateSpanType.php.
Source: mautic/mautic#16574
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Open this suggestion in Promptless to view citations and reasoning process
Adds the two new date/datetime operators from mautic/mautic PR #16574 — inLast and inNext — to the Segments REST API reference. Documents them in the Date fields operator table and adds a filter example showing the interval/unit object payload shape (which differs from the scalar filter value used by other date operators).
Trigger Events
Tip: Use Slack message actions (⋯ menu → Update Docs) to capture doc updates without interrupting conversations 💬