diff options
Diffstat (limited to 'webapp/client')
-rw-r--r-- | webapp/client/client.jsx | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/webapp/client/client.jsx b/webapp/client/client.jsx index 3ce6977f6..90ff75059 100644 --- a/webapp/client/client.jsx +++ b/webapp/client/client.jsx @@ -1457,6 +1457,18 @@ export default class Client { this.track('api', 'api_integrations_created'); } + editCommand(command, success, error) { + request. + post(`${this.getCommandsRoute()}/update`). + set(this.defaultHeaders). + type('application/json'). + accept('application/json'). + send(command). + end(this.handleResponse.bind(this, 'editCommand', success, error)); + + this.track('api', 'api_integrations_created'); + } + deleteCommand(commandId, success, error) { request. post(`${this.getCommandsRoute()}/delete`). |