Version: 2011.01.25

Krames StayWell External Web Service Documentation

RateContent Method

Records a rating for a content object. This will return either a success xml response if successful or an error xml response if the content object is not found.

Parameters: XmlRequest
	<RateContent ContentTypeId="[int]" ContentId="[string]" IsCustom="[true, false]" Rating="[int 1-5]" />

Sample Request

http://external.ws.staywell.com/[SiteName]/Content.svc/RateContent?xmlRequest=<RateContent ContentTypeId="22" ContentId="AsthmaCustom" IsCustom="false" Rating="4" />

Success Result XML

	<?xml version="1.0" encoding="utf-8" ?>
	<Success />

Failure Result XML

	<?xml version="1.0" encoding="utf-8" ?>
	<Errors>
		<Error>No Content Found.</Error>
	</Errors>

The all parameters are required except IsCustom. If IsCustom is not provided the original content will receive the rating value. Rating expects an integer value between 1 to 5.