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 |
Inserts a new user role.
See: DCM/DFA Reporting And Trafficking API Reference for dfareporting.userRoles.insert
.
Synopsis
- type UserRolesInsertResource = "dfareporting" :> ("v3.2" :> ("userprofiles" :> (Capture "profileId" (Textual Int64) :> ("userRoles" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] UserRole :> Post '[JSON] UserRole))))))
- userRolesInsert :: Int64 -> UserRole -> UserRolesInsert
- data UserRolesInsert
- uriProFileId :: Lens' UserRolesInsert Int64
- uriPayload :: Lens' UserRolesInsert UserRole
REST Resource
type UserRolesInsertResource = "dfareporting" :> ("v3.2" :> ("userprofiles" :> (Capture "profileId" (Textual Int64) :> ("userRoles" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] UserRole :> Post '[JSON] UserRole)))))) Source #
A resource alias for dfareporting.userRoles.insert
method which the
UserRolesInsert
request conforms to.
Creating a Request
Creates a value of UserRolesInsert
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data UserRolesInsert Source #
Inserts a new user role.
See: userRolesInsert
smart constructor.
Instances
Request Lenses
uriProFileId :: Lens' UserRolesInsert Int64 Source #
User profile ID associated with this request.
uriPayload :: Lens' UserRolesInsert UserRole Source #
Multipart request metadata.