diff --git a/src/Utils/NetworkService.js b/src/Utils/NetworkService.js index 78183e24f..11cccc979 100644 --- a/src/Utils/NetworkService.js +++ b/src/Utils/NetworkService.js @@ -530,6 +530,24 @@ class NetworkService { async requestInvitationToken(config) { return this.axiosInstance.post(`/invite`, { email: config.email, role: config.role }); } + /** + * ************************************ + * Sends an invitation token + * ************************************ + * + * @async + * @param {Object} config - The configuration object. + * @param {string} config.email - The email of the user to be invited. + * @param {string} config.role - The role of the user to be invited. + * @returns {Promise} The response from the axios POST request. + * + */ + async sendInvitationToken(config) { + return this.axiosInstance.post(`/invite/send`, { + email: config.email, + role: config.role, + }); + } /** * ************************************