Operations API
Teammates
Send Email
this endpoint ( post post ) sends an email to a teammate if the request succeeds, it will return the id of the teammate permissions customers edit path parameters id the id of the teammate body parameters email template id string the id of the email template to send to the teammate require "uri" require "json" require "net/http" url = uri("https //api tamio com/v2/teammates/send email/3b02d904 4fcb 41f8 8f4f bc75585a8486") https = net http new(url host, url port) https use ssl = true request = net http post new(url) request\["accept"] = "application/json" request\["authorization"] = "bearer your token here" data = { email template id 'c5f3b078 5520 4694 a4d1 d45885a6314e' } request body = data to json response = https request(request) puts response read bodycurl location request post 'https //api tamio com/v2/teammates/send email/3b02d904 4fcb 41f8 8f4f bc75585a8486' \\ \ header 'accept application/json' \\ \ header 'authorization bearer your token here' \\ \ data raw '{"email template id" "c5f3b078 5520 4694 a4d1 d45885a6314e"}'var myheaders = new headers(); myheaders append("accept", "application/json"); myheaders append("authorization", "bearer your token here"); var data = { email template id 'c5f3b078 5520 4694 a4d1 d45885a6314e' }; var body = json stringify(data); var requestoptions = { method 'post', headers myheaders, body body }; fetch("https //api tamio com/v2/teammates/send email/3b02d904 4fcb 41f8 8f4f bc75585a8486", requestoptions) then(response => response text()) then(result => console log(result)) catch(error => console log('error', error));{ "status" 200, "id" "3b02d904 4fcb 41f8 8f4f bc75585a8486" }