redguava / cliniko-api

The API for Cliniko
73 stars 39 forks source link

422 Error when creating individual appointment #379

Open Hassan-Mehmood opened 3 weeks ago

Hassan-Mehmood commented 3 weeks ago

Below is the status code and the error i am receiving. The api does not mention anything related to the max_attendees status_code = 422 {'errors': {'base': 'Case has been archived.',
'max_attendees': 'is not a number'}, 'message': 'Validation Failed'}

The data i am passing created_appointment = create_individual_appointment( patient_case_id='1', patient_id='1447800389544977506', business_id='1448416425277400868', practitioner_id='1435322059428210417', appointment_type_id='1', starts_at="2024-06-19T08:00:00.000Z", ends_at="2024-06-22T09:00:00.000Z", )