Manage appointments in RepairShopr - create, read, update, delete
I manage appointments in RepairShopr. I can list appointments with date filtering, create new appointments, retrieve appointment details, update existing appointments, and delete appointments.
Use this when:
Required API base URL:
VITE_REPAIRSHOPR_SUBDOMAINVITE_REPAIRSHOPR_API_KEYList Appointments (GET /appointments) Optional parameters:
date_from (string) - Filter appointments starting after this date (e.g., "2019-01-25")date_to (string) - Filter appointments starting before this date (e.g., "2019-12-31")mine (boolean) - Return only current user's appointmentspage (integer) - Page number (25 results per page)Create Appointment (POST /appointments) Required parameters:
summary (string) - Appointment title/summarystart_at (string) - Start datetime in ISO 8601 formatOptional parameters:
end_at (string) - End datetime (ISO 8601)description (string) - Appointment description/notescustomer_id (integer) - Customer ID to associateticket_id (integer) - Related ticket IDuser_id or user_ids (integer/array) - Assigned technician(s)location (string) - Appointment location (e.g., "In Shop", "On Site")all_day (boolean) - All day appointment flagemail_customer (boolean) - Whether to email customerGet Single Appointment (GET /appointments/{id})
id (integer, required) - Appointment IDUpdate Appointment (PUT /appointments/{id})
id (integer, required) - Appointment ID
Optional body parameters same as CreateDelete Appointment (DELETE /appointments/{id})
id (integer, required) - Appointment IDExample call:
const result = await skill({ name: "repairshopr-appointment" }, {
summary: "Laptop Repair",
start_at: "2024-01-15T10:00:00Z",
end_at: "2024-01-15T12:00:00Z",
description: "Screen replacement",
customer_id: 123,
location: "In Shop"
})
Response includes:
appointments array with full appointment data including customer infoappointment object with all fieldssummary and start_at are required for creation; start_at required for updatescustomer_id must existrepairshopr-appointment-type - For appointment type configurationsrepairshopr-ticket-create - To create a related service ticket