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 |
Update the given proposal
See: Ad Exchange Buyer API Reference for adexchangebuyer.proposals.update
.
Synopsis
- type ProposalsUpdateResource = "adexchangebuyer" :> ("v1.4" :> ("proposals" :> (Capture "proposalId" Text :> (Capture "revisionNumber" (Textual Int64) :> (Capture "updateAction" ProposalsUpdateUpdateAction :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Proposal :> Put '[JSON] Proposal)))))))
- proposalsUpdate :: ProposalsUpdateUpdateAction -> Int64 -> Proposal -> Text -> ProposalsUpdate
- data ProposalsUpdate
- puUpdateAction :: Lens' ProposalsUpdate ProposalsUpdateUpdateAction
- puRevisionNumber :: Lens' ProposalsUpdate Int64
- puPayload :: Lens' ProposalsUpdate Proposal
- puProposalId :: Lens' ProposalsUpdate Text
REST Resource
type ProposalsUpdateResource = "adexchangebuyer" :> ("v1.4" :> ("proposals" :> (Capture "proposalId" Text :> (Capture "revisionNumber" (Textual Int64) :> (Capture "updateAction" ProposalsUpdateUpdateAction :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Proposal :> Put '[JSON] Proposal))))))) Source #
A resource alias for adexchangebuyer.proposals.update
method which the
ProposalsUpdate
request conforms to.
Creating a Request
:: ProposalsUpdateUpdateAction | |
-> Int64 | |
-> Proposal | |
-> Text | |
-> ProposalsUpdate |
Creates a value of ProposalsUpdate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProposalsUpdate Source #
Update the given proposal
See: proposalsUpdate
smart constructor.
Instances
Request Lenses
puUpdateAction :: Lens' ProposalsUpdate ProposalsUpdateUpdateAction Source #
The proposed action to take on the proposal. This field is required and it must be set when updating a proposal.
puRevisionNumber :: Lens' ProposalsUpdate Int64 Source #
The last known revision number to update. If the head revision in the marketplace database has since changed, an error will be thrown. The caller should then fetch the latest proposal at head revision and retry the update at that revision.
puProposalId :: Lens' ProposalsUpdate Text Source #
The proposal id to update.