Click or drag to resize
CampaignControllerPut Method
Performs update of the CampaignInfo corresponding to the given CampaignID property. The CampaignInfo values are updated with the values from model.

Namespace: CMS.WebAnalytics
Assembly: CMS.WebAnalytics (in CMS.WebAnalytics.dll) Version: 10.0.0
Syntax
C#
public CampaignEditViewModel Put(
	CampaignEditViewModel model
)

Parameters

model
Type: CMS.WebAnalyticsCampaignEditViewModel
Instance of updated view-model. This instance will be used to update corresponding CampaignInfo

Return Value

Type: CampaignEditViewModel
HTTP status code 400 Bad request, if model state of bound model was not valid or - if no campaign was found for the provided CampaignID; otherwise, HTTP status code 200 OK with updated model.
Remarks
No dirty checking is performed, CampaignInfo will be updated even if no change was made to the object. HTTP verb PUT is not supported, therefore this request accepts only the POST requests.
See Also