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
Name | Type | Description |
---|---|---|
email | string | email (admin_id is not exposed) |
first_name | string | first name, used in the invitation text |
last_name | string | last name |
privileges | list | list of privileges the admin has on the orgs/sites |
scope | string | site / org / sitegroup |
role | string | admin / write / read / helpdesk / installer |
view | string | optional, see [supported UI views] |
site_id | string | site id |
hours | int | optional, 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
Key | Datatype | Required | Description |
---|---|---|---|
Accept | string | ||
X-CSRFToken | string | ||
Content-Type | string |