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

Unable to diable notify_subscribers while creating new article #647

Closed
ahmedsabriz opened this issue Aug 24, 2024 · 2 comments
Closed

Unable to diable notify_subscribers while creating new article #647

ahmedsabriz opened this issue Aug 24, 2024 · 2 comments

Comments

@ahmedsabriz
Copy link
Contributor

Creating a new article in Zendesk allows disabling notify_subscribers property, which is very helpful with bulk operations. However, this needs to be specified in the root of the JSON object, not in the "article" object. So it needs to be taken into consideration when building the payload as it cannot be added to the article object directly.

@cryptomail
Copy link
Collaborator

I see what you mean: https://developer.zendesk.com/api-reference/help_center/help-center-api/articles/
This is where it "breaks down"

zenpy/lib/request.py:80

payload = self.build_payload(api_objects)

One would need to not kwarg that thing but instead add a node to the hashmap that gets sent along as the ultimate payload.

Lemme think...shouldn't be too hard to create a new request object that gently overrides things to do what you like ^_^

@cryptomail
Copy link
Collaborator

closefixed!

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

No branches or pull requests

2 participants