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 .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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: application/json
Content-Type: application/json
Content-Length: length

{"PhotoID":0,"ImageData":"String","AdminID":0}
HTTP/1.1 200 OK
Content-Type: application/json
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":"\/Date(-62135596800000-0000)\/","IsAutoReview":false,"SortNumber":0,"MemberLikeCount":0}