markciecior / ConnectPyse

ConnectWise (Manage) REST API client written in Python 3.x
MIT License
21 stars 8 forks source link

Added a feature that allows multiple fields to be updated in a single request #17

Closed emichaud closed 2 years ago

emichaud commented 2 years ago

Currently the _update function in cw_controller takes in a single key and value and constructs a api request. This requires one request per each field that requires an update. The new method added to the TicketApi allows for a dictionary of key updates to be provided and it will construct a multi-field update within a single request.

This will address concerns (eventually) from open issue #14. I only modified the TicketApi within this update but will update the other endpoints after determining if this is an ideal update for the project. Please provide feedback for required changes.

emichaud commented 2 years ago

Added multiple field update method to remaining api's. Note: /time/time_sheets_api.py does not implment an update method /system/document_api.py - update methods are there but are not implemented (pass) - added new method but did not implement

emichaud commented 2 years ago

hey @markciecior, just wanted to let you know I added in support for the new method across all the api's. check it out when you get a minute.