Name

User Add Review

Description

Add a review for the user

Uri

/v1/user/addreview

Parameters

Name Required Default Format Examples Description
appKeyyesstringqiusdjsls9273sdYour application key
authTokennostringdGVzdF9rZXkmNCYxNDEwODk4MzgxJmRldmVsThe authToken returned from the /auth/login call. If no authToken is given a temporary user will be created.
conditionIdyesdigits8The condition id to write the review for
titlenostringExcellent resultsThe title of the review
bodynostringThis treatment was greatThe body text of the review
diagnosisDatenoYYYY-MM-DD2015-09-02The date when the condition was diagnosed
anonymousno00 or 11If set to 1, then this review is anonymous
partnerIdnodigits12The partner associated with this review and user
refinement-[refinementId]nostring4If a refinement was given during the writing of the review, pass the value in here. You can have several of these parameters. One for each refinement. An example would be refinement-1=4
treatment-[treatmentId]-satisfactionLevelnostring4If a treatment was given during the writing of the review, pass the satisfaction level in here. You can have several of these parameters. One for each treatment. An example would be treatment-1-satisfactionLevel=3
subconditionIdsnostring4,5,2A comma delimited list of subconditionIds

Response Description

Example Request

http://api.healthoutcome.org/v1/user/addreview?conditionId=5&treatmentId=1&title=test&body=test&satisfactionLevel=7&authToken=dGVzdF9rZXkmNCYxNDEwODk4MzgxJmRldmVs