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 |
Updates a survey. Currently the only property that can be updated is the owners property.
See: Consumer Surveys API Reference for consumersurveys.surveys.update
.
Synopsis
- type SurveysUpdateResource = "consumersurveys" :> ("v2" :> ("surveys" :> (Capture "surveyUrlId" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Survey :> Put '[JSON] Survey)))))
- surveysUpdate :: Text -> Survey -> SurveysUpdate
- data SurveysUpdate
- suSurveyURLId :: Lens' SurveysUpdate Text
- suPayload :: Lens' SurveysUpdate Survey
REST Resource
type SurveysUpdateResource = "consumersurveys" :> ("v2" :> ("surveys" :> (Capture "surveyUrlId" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Survey :> Put '[JSON] Survey))))) Source #
A resource alias for consumersurveys.surveys.update
method which the
SurveysUpdate
request conforms to.
Creating a Request
Creates a value of SurveysUpdate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data SurveysUpdate Source #
Updates a survey. Currently the only property that can be updated is the owners property.
See: surveysUpdate
smart constructor.
Instances
Request Lenses
suSurveyURLId :: Lens' SurveysUpdate Text Source #
External URL ID for the survey.