inviteOrgAdmin

POST https://{{host}}/api/v1/orgs/:org_id/invites

If the request is successful, an email will also be sent to the user with a link to https://manage.mist.com/verify/invite?token=:token&expire=1459632743&org=OrgName

Body Parameters

NameTypeDescription
emailstringemail (admin_id is not exposed)
first_namestringfirst name, used in the invitation text
last_namestringlast name
privilegeslistlist of privileges the admin has on the orgs/sites
scopestringsite / org / sitegroup
rolestringadmin / write / read / helpdesk / installer
viewstringoptional, see [supported UI views]
site_idstringsite id
hoursintoptional, how long the invite should be valid, default is 1 day, maximum is 1 week.

Request Body

{"email"=>"joe@abc.com", "first_name"=>"Joe", "last_name"=>"Smith", "hours"=>24, "privileges"=>[{"scope"=>"org", "role"=>"admin", "view"=>"location"}, {"scope"=>"site", "site_id"=>"d96e3952-53e8-4266-959a-45acd55f5114", "role"=>"admin", "view"=>"location"}]}

HEADERS

KeyDatatypeRequiredDescription
Acceptstring
X-CSRFTokenstring
Content-Typestring