curl -X PUT https://api.demet.com/rate/update \
-H "Content-Type: application/json" \
-b "access_token=YOUR_JWT_TOKEN" \
-d '{
"v_id_rate": 5,
"v_name": "Tarifa Entre Semana",
"v_pax": 100,
"v_value4": 220000,
"v_value8": 360000,
"v_value_extra": 55000
}'
{
"message": "Update Exitoso"
}
Update an existing rate
curl -X PUT https://api.demet.com/rate/update \
-H "Content-Type: application/json" \
-b "access_token=YOUR_JWT_TOKEN" \
-d '{
"v_id_rate": 5,
"v_name": "Tarifa Entre Semana",
"v_pax": 100,
"v_value4": 220000,
"v_value8": 360000,
"v_value_extra": 55000
}'
{
"message": "Update Exitoso"
}
access_token cookie.
v_isPartner and v_idSpace fields cannot be updated. To change these values, delete and recreate the rate.curl -X PUT https://api.demet.com/rate/update \
-H "Content-Type: application/json" \
-b "access_token=YOUR_JWT_TOKEN" \
-d '{
"v_id_rate": 5,
"v_name": "Tarifa Entre Semana",
"v_pax": 100,
"v_value4": 220000,
"v_value8": 360000,
"v_value_extra": 55000
}'
{
"message": "Update Exitoso"
}
| Status Code | Description |
|---|---|
| 200 | Rate successfully updated |
| 400 | Validation error or duplicate data |
| 401 | Token not sent or invalid (missing or expired cookie) |
| 404 | Rate not found |
| 500 | Internal server error |