Alex Zakharenkov Posted May 22, 2015 Report Posted May 22, 2015 Trying to figure out how can these (http://screencast.com/t/sduSC2Lqbg) settings be set via REST API. I tried the API docs, but could not find.
2600Hz Employees JR^ Posted May 22, 2015 2600Hz Employees Report Posted May 22, 2015 You should be able to add this object to the data of devices/users: http://pastie.org/private/novya7z9nuj...
Alex Zakharenkov Posted May 23, 2015 Author Report Posted May 23, 2015 Is this a requirement to retrieve and re-send the entire device object with all attributes and sub-objects, changing the call_restrictions to change one of the values? If, possible, I would love to not have to do another entire round trip. I tried just the call_restriction and it wiped out all other settings
Rally IP Admin Posted May 26, 2015 Report Posted May 26, 2015 I noticed the same behavior with other APIs. Need to include exiting data when modifying one or few selected attributes / parameters. I also think it would be great to have SEARCH API - rather than retrieving complete list of items (i.e. full list of devices) and then look for a specific items in your own app.
2600Hz Employees lazedo Posted May 26, 2015 2600Hz Employees Report Posted May 26, 2015 when modifying documents you can use PATCH verb to send only the changes
2600Hz Employees JR^ Posted May 26, 2015 2600Hz Employees Report Posted May 26, 2015 It's not exactly a search API but that's what we use for some filtering: https://2600hz.atlassian.net/wiki/display/APIs/Filtering+Data
Alex Zakharenkov Posted May 26, 2015 Author Report Posted May 26, 2015 Thank you @lazedo and and @JR^! I will try PATCH. @JR^ - I had a question about filtering - posted a question in a separate thread (can't access third-level sub-objects).
Alex Zakharenkov Posted May 26, 2015 Author Report Posted May 26, 2015 @JR^ - my filtering question is under Problems, called "API - Find a device by In-House Caller ID number". Just in case you wanted to know what I am experiencing. Thanks, as usual.
Recommended Posts