RHP_API

<back to all web services

PostReplaceUserImage

The following routes are available for this service:
POST/Admin/ReplaceUserImage
PostReplaceUserImage Parameters:
NameParameterData TypeRequiredDescription
PhotoIDbodyintNo
ImageDatabodystringNo
AdminIDbodyintNo
UserPhoto Parameters:
NameParameterData TypeRequiredDescription
PhotoIDformintNo
MemberIDformlongNo
MainPhotoformboolNo
LockedformboolNo
RejectedformboolNo
FileNameformstringNo
ClassificationformintNo
WidthformintNo
HeightformintNo
ProfileTypeformboolNo
IsReferformboolNo
PhotoFolderIDformintNo
FeaturedformboolNo
DateCreatedformDateTimeNo
IsAutoReviewformboolNo
SortNumberformintNo
MemberLikeCountformintNo

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 /Admin/ReplaceUserImage HTTP/1.1 
Host: tstsrvs.redhotpie.com.au 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	PhotoID: 0,
	ImageData: String,
	AdminID: 0
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	PhotoID: 0,
	MemberID: 0,
	MainPhoto: False,
	Locked: False,
	Rejected: False,
	FileName: String,
	Classification: 0,
	Width: 0,
	Height: 0,
	ProfileType: False,
	IsRefer: False,
	PhotoFolderID: 0,
	Featured: False,
	DateCreated: 0001-01-01,
	IsAutoReview: False,
	SortNumber: 0,
	MemberLikeCount: 0
}