Skip to main content
PUT
/
rate
/
update
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"
}
This endpoint allows you to update the information of a previously registered rate. Authentication is required via JWT token in the access_token cookie.

Request Body

v_id_rate
number
required
ID of the rate to update. Must be a positive integer.
v_name
string
required
Updated name of the rate
v_pax
number
required
Updated maximum capacity (number of people). Must be a positive integer.
v_value4
number
required
Updated price for 4-hour rental period. Must be a positive number.
v_value8
number
required
Updated price for 8-hour rental period. Must be a positive number.
v_value_extra
number
required
Updated price per additional hour. Must be a positive number.
The v_isPartner and v_idSpace fields cannot be updated. To change these values, delete and recreate the rate.

Response

message
string
Success message confirming the rate was updated
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"
}

Error Codes

Status CodeDescription
200Rate successfully updated
400Validation error or duplicate data
401Token not sent or invalid (missing or expired cookie)
404Rate not found
500Internal server error

Build docs developers (and LLMs) love