Copyright | (c) 2015-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Creates a new EMM-managed user. The Users resource passed in the body of the request should include an accountIdentifier and an accountType. If a corresponding user already exists with the same account identifier, the user will be updated with the resource. In this case only the displayName field can be changed.
See: Google Play EMM API Reference for androidenterprise.users.insert
.
Synopsis
- type UsersInsertResource = "androidenterprise" :> ("v1" :> ("enterprises" :> (Capture "enterpriseId" Text :> ("users" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] User :> Post '[JSON] User))))))
- usersInsert :: Text -> User -> UsersInsert
- data UsersInsert
- uiEnterpriseId :: Lens' UsersInsert Text
- uiPayload :: Lens' UsersInsert User
REST Resource
type UsersInsertResource = "androidenterprise" :> ("v1" :> ("enterprises" :> (Capture "enterpriseId" Text :> ("users" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] User :> Post '[JSON] User)))))) Source #
A resource alias for androidenterprise.users.insert
method which the
UsersInsert
request conforms to.
Creating a Request
Creates a value of UsersInsert
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data UsersInsert Source #
Creates a new EMM-managed user. The Users resource passed in the body of the request should include an accountIdentifier and an accountType. If a corresponding user already exists with the same account identifier, the user will be updated with the resource. In this case only the displayName field can be changed.
See: usersInsert
smart constructor.
Instances
Request Lenses
uiEnterpriseId :: Lens' UsersInsert Text Source #
The ID of the enterprise.