From f9b4ddc8d5437cd107d1558972b2322fca01fdfc Mon Sep 17 00:00:00 2001 From: Joris Tirado Date: Mon, 22 Feb 2016 09:44:44 -0800 Subject: [PATCH] UI-2053: Add promote/demote account endpoints --- js/lib/jquery.kazoosdk.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/js/lib/jquery.kazoosdk.js b/js/lib/jquery.kazoosdk.js index fdd9feea8..b11b1abc1 100644 --- a/js/lib/jquery.kazoosdk.js +++ b/js/lib/jquery.kazoosdk.js @@ -22,7 +22,9 @@ 'listChildren': { verb: 'GET', url: 'accounts/{accountId}/children' }, 'listParents': { verb: 'GET', url: 'accounts/{accountId}/tree' }, 'searchByName': { verb: 'GET', url: 'search?t=account&q=name&v={accountName}'}, - 'searchAll': { verb: 'GET', url: 'search/multi?t=account&by_name={searchValue}&by_realm={searchValue}&by_id={searchValue}'} + 'searchAll': { verb: 'GET', url: 'search/multi?t=account&by_name={searchValue}&by_realm={searchValue}&by_id={searchValue}'}, + 'promote': { verb: 'PUT', url: 'accounts/{accountId}/reseller' }, + 'demote': { verb: 'DELETE', url: 'accounts/{accountId}/reseller' } }, appsStore: { 'get': { verb: 'GET', 'url': 'accounts/{accountId}/apps_store/{appId}' },