Needio.Services

<back to all web services

UpdateMyUserSettingsRequest

Requires Authentication
The following routes are available for this service:
All Verbs/User/UpdateMyUserSettings/
UpdateMyUserSettingsRequest Parameters:
NameParameterData TypeRequiredDescription
UserSettingsqueryUserSettingsDTONo
BaseRequest Parameters:
NameParameterData TypeRequiredDescription
startformDateTimeNo
BaseResponse Parameters:
NameParameterData TypeRequiredDescription
ResultformboolNo
ResMessageformstringNo
ErrorformErrorNo
Error Parameters:
NameParameterData TypeRequiredDescription
ErrorYnformboolNo
ErrorCodeformstringNo
ErrorDescriptionformstringNo
UserSettingsDTO Parameters:
NameParameterData TypeRequiredDescription
UserIdformintNo
AllowCommercialMessageformboolNo
SWhenNewPostFollowformboolNo
SWhenNewUserFollowformboolNo
SWhenNewPostLikeformboolNo
SWhenNewOrderformboolNo
SWhenPaymentApprovedformboolNo
SWhenPaymentRejectedformboolNo
SWhenOrderRatedformboolNo
SWhenPostExpireformboolNo
BWhenPostPriceDecreaseformboolNo
BWhenNewFollowedUserPostformboolNo
BWhenNewCampaignNearMeformboolNo
BWhenNewCampaignDistanceformintNo
BWhenNewCampaignPostTypesformstringNo
BWhenOrderApproveRequiredformboolNo
BWhenOrderRateRequiredformboolNo
WhenNewMessageformboolNo
SendDailyReportformboolNo

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /User/UpdateMyUserSettings/ HTTP/1.1 
Host: baseservices2.needion.com 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	UserSettings: 
	{
		UserId: 0,
		AllowCommercialMessage: False,
		SWhenNewPostFollow: False,
		SWhenNewUserFollow: False,
		SWhenNewPostLike: False,
		SWhenNewOrder: False,
		SWhenPaymentApproved: False,
		SWhenPaymentRejected: False,
		SWhenOrderRated: False,
		SWhenPostExpire: False,
		BWhenPostPriceDecrease: False,
		BWhenNewFollowedUserPost: False,
		BWhenNewCampaignNearMe: False,
		BWhenNewCampaignDistance: 0,
		BWhenNewCampaignPostTypes: String,
		BWhenOrderApproveRequired: False,
		BWhenOrderRateRequired: False,
		WhenNewMessage: False,
		SendDailyReport: False
	},
	start: 2020-07-13T04:31:33.4006368+03:00
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	Result: False,
	ResMessage: String,
	Error: 
	{
		ErrorYn: False,
		ErrorCode: String,
		ErrorDescription: String
	}
}