PATCH
https://api.cryptohopper.com/v1/market/review/{review_id}
Updates one of your own reviews. Fields you leave out are not changed.
OAuth scope:
read manage About scopes
In the current code the review field is written to the review title instead of the review text, and rating is stored as sent without the 0 to 5 limit.
Example request
curl -X PATCH "https://api.cryptohopper.com/v1/market/review/REVIEW_ID" \
-H "access-token: YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"review_name":"Steady results","review":"Running it on Binance for two months without issues.","rating":4}'
const response = await fetch('https://api.cryptohopper.com/v1/market/review/REVIEW_ID', {
method: 'PATCH',
headers: {
"access-token": "YOUR_ACCESS_TOKEN",
"Content-Type": "application/json"
},
body: JSON.stringify({
"review_name": "Steady results",
"review": "Running it on Binance for two months without issues.",
"rating": 4
})
});
const data = await response.json();
import requests
response = requests.patch(
"https://api.cryptohopper.com/v1/market/review/REVIEW_ID",
headers={
"access-token": "YOUR_ACCESS_TOKEN"
},
json={
"review_name": "Steady results",
"review": "Running it on Binance for two months without issues.",
"rating": 4
},
)
data = response.json()
$ch = curl_init('https://api.cryptohopper.com/v1/market/review/REVIEW_ID');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'PATCH',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'access-token: YOUR_ACCESS_TOKEN',
'Content-Type: application/json',
],
CURLOPT_POSTFIELDS => json_encode([
'review_name' => 'Steady results',
'review' => 'Running it on Binance for two months without issues.',
'rating' => 4,
]),
]);
$data = json_decode(curl_exec($ch), true);
Parameters
Headers
| Name | Type | Required | Description |
|---|---|---|---|
access-token |
string | Required | The OAuth access token of the user. |
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
review_id |
string | Required | ID of your review. |
Request body
| Field | Type | Required | Description |
|---|---|---|---|
review_name | string | Optional | |
review | string | Optional | |
rating | number | Optional | Between 0 and 5. |
Response
{
"data": {
"review_id": 5501,
"message": "Review has been updated."
}
}