Has anyone else had an error in creating an appointment by api?
index.php/api/v1/appointments{
"start_datetime": "2025-08-15 17:00",
"end_datetime": "2025-08-15 18:00",
"location": "Test Street 1A, 12345 Some State, Some Place",
"color": "#7cbae8",
"status": "Booked",
"notes": "This is a test appointment.",
"id_users_customer": 1,
"id_users_provider": 6,
"id_services": 12,
"is_unavailability": 0
}
<div style="
border: 1px solid #dfdfdf;
margin: 0 0 10px 0;
padding: 15px;
font-size: 14px;
">
<h4>
An uncaught Exception was encountered
</h4>
<h6>
Type
</h6>
<p>
ParseError </p>
<h6>
Message
</h6>
<p>
syntax error, unexpected token "->" </p>
<h6>
Filename
</h6>
<p>
/var/www/html/application/controllers/api/v1/Appointments_api_v1.php </p>
<h6>
Line Number
</h6>
<p>
68 </p>
</div>