Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom time_frame must be JSON body NOT parameter key value #87

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

pcg-nathaniel
Copy link

No where does it say time_frame is a post body object rather than key pair, this actually will NOT run as url parameter. Please take note this is poor consistency as filter DOES accept JSON via key-value param, so there is an expectation time_frame (also technically a filter, should too).

Response received when running as parameter
{
"message": "{\n "time_frame": {\n "from": "2020-01-01",\n "to": "2024-12-31"\n }\n} is not a valid time_frame"
}

No where does it say time_frame is a post body object rather than key pair, this actually will NOT run as url parameter. Please take note this is poor consistency as filter DOES accept JSON via key-value param, so there is an expectation time_frame (also technically a filter, should too). 

Response received when running as parameter 
{
    "message": "{\n  \"time_frame\": {\n  \"from\": \"2020-01-01\",\n  \"to\": \"2024-12-31\"\n  }\n} is not a valid time_frame"
}
@pcg-nathaniel
Copy link
Author

@tithonium wanted to check in on this documentation update, any questions or issues with merging it in? I have more coming as I just discovered an issue with time_frame ignoring custom and defaulting to this week when submitting via form (or whatever bridge parameters send as) vs url param which allows the json body to be read and respected.

Get Custom fields documentation disregarded the required namespace parameter 

Updating a namespaces custom field on a record does was ambiguous with the field <id>.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant