| Copyright | (c) 2015 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 |
Network.Google.Resource.Analytics.Management.Goals.Patch
Description
Updates an existing view (profile). This method supports patch semantics.
See: Google Analytics API Reference for analytics.management.goals.patch.
- type ManagementGoalsPatchResource = "analytics" :> ("v3" :> ("management" :> ("accounts" :> (Capture "accountId" Text :> ("webproperties" :> (Capture "webPropertyId" Text :> ("profiles" :> (Capture "profileId" Text :> ("goals" :> (Capture "goalId" Text :> (QueryParam "alt" AltJSON :> (ReqBody `[JSON]` Goal :> Patch `[JSON]` Goal))))))))))))
- managementGoalsPatch :: Text -> Text -> Text -> Goal -> Text -> ManagementGoalsPatch
- data ManagementGoalsPatch
- mgpWebPropertyId :: Lens' ManagementGoalsPatch Text
- mgpGoalId :: Lens' ManagementGoalsPatch Text
- mgpProFileId :: Lens' ManagementGoalsPatch Text
- mgpPayload :: Lens' ManagementGoalsPatch Goal
- mgpAccountId :: Lens' ManagementGoalsPatch Text
REST Resource
type ManagementGoalsPatchResource = "analytics" :> ("v3" :> ("management" :> ("accounts" :> (Capture "accountId" Text :> ("webproperties" :> (Capture "webPropertyId" Text :> ("profiles" :> (Capture "profileId" Text :> ("goals" :> (Capture "goalId" Text :> (QueryParam "alt" AltJSON :> (ReqBody `[JSON]` Goal :> Patch `[JSON]` Goal)))))))))))) Source
A resource alias for analytics.management.goals.patch method which the
ManagementGoalsPatch request conforms to.
Creating a Request
Creates a value of ManagementGoalsPatch with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ManagementGoalsPatch Source
Updates an existing view (profile). This method supports patch semantics.
See: managementGoalsPatch smart constructor.
Request Lenses
mgpWebPropertyId :: Lens' ManagementGoalsPatch Text Source
Web property ID to update the goal.
mgpGoalId :: Lens' ManagementGoalsPatch Text Source
Index of the goal to be updated.
mgpProFileId :: Lens' ManagementGoalsPatch Text Source
View (Profile) ID to update the goal.
mgpPayload :: Lens' ManagementGoalsPatch Goal Source
Multipart request metadata.
mgpAccountId :: Lens' ManagementGoalsPatch Text Source
Account ID to update the goal.