Skip to content

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

Open
pcg-nathaniel wants to merge 2 commits into10Kft:masterfrom
pcg-nathaniel:master
Open

Custom time_frame must be JSON body NOT parameter key value#87
pcg-nathaniel wants to merge 2 commits into10Kft:masterfrom
pcg-nathaniel:master

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