hotfix: support all subscriptions api results endpoint query parameters#1209
Merged
asonnenschein merged 5 commits intomainfrom Apr 1, 2026
Merged
hotfix: support all subscriptions api results endpoint query parameters#1209asonnenschein merged 5 commits intomainfrom
asonnenschein merged 5 commits intomainfrom
Conversation
tbarsballe
requested changes
Mar 24, 2026
Contributor
tbarsballe
left a comment
There was a problem hiding this comment.
One issue noted inline, aside from that it appears to work well.
I did get some unhelpful error messages when I messed up the time interval syntax, but that's more an issue with the Subscriptions API itself, so out-of-scope here.
% planet subscriptions results 3ad50be0-05ea-4a1c-82cc-1e288211e627 --created 2026-03-07/..
Error: {"error":{"reason":"Unexpected error","details":[]}}
tbarsballe
approved these changes
Mar 25, 2026
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.
Summary
Adds missing query parameters (
created,updated,completed,item-datetime) to Subscriptions API results endpoints, aligning with the OpenAPI specification.Changes
planet/clients/subscriptions.py): Added 4 query parameters toget_results()andget_results_csv()with comprehensive docstringsplanet/sync/subscriptions.py): Updated to accept and forward new parametersplanet/cli/subscriptions.py): Added--created,--updated,--completed,--item-datetimeoptions toresultscommanddocs/cli/cli-subscriptions.md): Added "Filtering Results" section with examplesAll datetime parameters support RFC 3339 format with date-times, closed intervals, and open intervals.
Example Usage
Python: