Invite users
This API can be used to invite users to the academy.
URL : https://academy.domain.com/api/v2/user/invite
Method : POST
Request Header : {
"Content-Type" : "application/json",
"API-Key" : "Your API Key"
}
Request Body : {
"data" : [
{
"first_name" : "John", // Required
"last_name" : "Doe", // Required
"email" : "johndoe@email.com", // Required
"message" : "This is a custom message", // Optional
"group" : [1,4] // Required
},
{
"first_name" : "Jacob",
"last_name" : "Jain",
"email" : "jacobjain@email.com",
"message" : "This is a custom message",
"group" : [1,4]
}
]
}
Response : {
"status": "success",
"data": {
"emails_invited": [
"user1@acadle.com",
"user2@acadle.com"
],
"emails_already_exists": [
"user3@acadle.com"
],
"emails_already_invited_as_member": [
"user4@acadle.com"
],
"emails_invalid": []
}
}