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

CampaignsTriggerSend triggerProperties are string in package, but endpoint require object. #37

Closed
jpksoegaard opened this issue Dec 22, 2023 · 2 comments · Fixed by #39
Assignees
Labels
bug Something isn't working

Comments

@jpksoegaard
Copy link

Expected Behavior

I assumed that the triggerProperties on either CampaignsTriggerSendPostBody or CampaignsTriggerSendPostBodyRecipientsItem where json since the documentation says it is an object https://www.braze.com/docs/api/objects_filters/trigger_properties_object but the field(s) are in the code set as a string.

Actual Behavior

calling the endpoint with a string, any string result in the endpoint responding with :
Bad Request - 'trigger_properties' must be an object

Steps to Reproduce

Create a PostCampaignsTriggerSend with its CampaignsTriggerSendPostBody and setTriggerProperties on either body or CampaignsTriggerSendPostBodyRecipientsItem

Reproducible Demo

n/a do to dev env.

Environment

  • Version: 1.3.1
  • Platform:
  • Browser:
  • OS:

Keywords

@jpksoegaard jpksoegaard added the bug Something isn't working label Dec 22, 2023
@remarkablemark
Copy link
Member

remarkablemark commented Dec 22, 2023

@jpksoegaard thanks for opening this issue, I will fix this line: https://github.com/braze-community/braze-specification/blob/6f725a6/openapi/spec.json#L4094

@remarkablemark
Copy link
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants