Chatwoot/app/javascript/dashboard/api/inboxMembers.js
Sojan Jose 22d1c8baf2
Chore: Inbox Members API improvements (#3008)
- New Inbox Member APIs
- Return JSON errors for Platform APIs
2021-09-14 11:55:02 +05:30

17 lines
344 B
JavaScript

/* global axios */
import ApiClient from './ApiClient';
class InboxMembers extends ApiClient {
constructor() {
super('inbox_members', { accountScoped: true });
}
update({ inboxId, agentList }) {
return axios.patch(this.url, {
inbox_id: inboxId,
user_ids: agentList,
});
}
}
export default new InboxMembers();