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 Merchant Center sub-account. This method can only be called for multi-client accounts.
See: Content API for Shopping Reference for content.accounts.insert
.
- type AccountsInsertResource = "content" :> ("v2" :> (Capture "merchantId" (Textual Word64) :> ("accounts" :> (QueryParam "dryRun" Bool :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Account :> Post '[JSON] Account))))))
- accountsInsert :: Word64 -> Account -> AccountsInsert
- data AccountsInsert
- aMerchantId :: Lens' AccountsInsert Word64
- aPayload :: Lens' AccountsInsert Account
- aDryRun :: Lens' AccountsInsert (Maybe Bool)
REST Resource
type AccountsInsertResource = "content" :> ("v2" :> (Capture "merchantId" (Textual Word64) :> ("accounts" :> (QueryParam "dryRun" Bool :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Account :> Post '[JSON] Account)))))) Source #
A resource alias for content.accounts.insert
method which the
AccountsInsert
request conforms to.
Creating a Request
Creates a value of AccountsInsert
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data AccountsInsert Source #
Creates a Merchant Center sub-account. This method can only be called for multi-client accounts.
See: accountsInsert
smart constructor.
Request Lenses
aMerchantId :: Lens' AccountsInsert Word64 Source #
The ID of the managing account.