{"components":{"schemas":{"ApiResponse":{"properties":{"code":{"description":"A code for this response. This code shall be referred in the documentation \/ error glossary.","example":"USER_001","type":"string"},"message":{"description":"A user firendly message that the end user can be communicated. The end user is expected to understand this message.","type":"string"},"severity":{"description":"The nature of the message with respect to the attention it deserves from the end user via UI\/UX. eg INFO would mean a positive or expected response to the user. WARN would mean that something awkward happened and user needs to be told and acknowledgement taken.","enum":["DEBUG","INFO","WARN","ERROR"],"type":"string"},"type":{"description":"The type of this response.","enum":["OK","ERROR","SYSTEM_ERROR"],"example":"OK, ERROR, SYSTEM_ERROR","type":"string"}},"required":["code","type","severity","message"],"type":"object"},"DefaultResponse":{"properties":{"errors":{"items":{"properties":{"message":{"type":"string"},"path":{"type":"string"}},"required":["message"],"type":"object"},"type":"array"}},"required":["errors"],"type":"object"}}},"info":{"license":{"name":"MIT"},"title":"Light Control Backend","version":"1.0.0"},"openapi":"3.0.0","paths":{"\/account\/login_with_mobile_otp":{"post":{"description":"This operation checks mobile and otp combination.","operationId":"verifyUserOtp","requestBody":{"content":{"application\/json":{"schema":{"properties":{"otp":{"example":"8090","type":"number"}},"required":["otp"],"type":"object"}}},"description":"All login related information as below","required":true},"responses":{"200":{"content":{"application\/json":{"schema":{"properties":{"apiresponse":{"$ref":"#\/components\/schemas\/ApiResponse"}},"type":"object"}}},"description":"Authentication Result"},"400":{"description":"invalid input, object invalid"},"401":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DefaultResponse"}}},"description":"Default response."},"404":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DefaultResponse"}}},"description":"Default response."},"500":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DefaultResponse"}}},"description":"Default response."},"501":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DefaultResponse"}}},"description":"Default response."}},"summary":"this endpoint checks the credentials of a user by mobile and otp","tags":["account"],"x-mojo-to":"Account#login_with_mobile_otp"}},"\/account\/logoff":{"get":{"description":"Logs off the user","operationId":"logoff","responses":{"200":{"content":{"application\/json":{"schema":{"properties":{"apiresponse":{"$ref":"#\/components\/schemas\/ApiResponse"}},"type":"object"}}},"description":"Logoff Result"},"400":{"description":"invalid input, object invalid"},"401":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DefaultResponse"}}},"description":"Default response."},"404":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DefaultResponse"}}},"description":"Default response."},"500":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DefaultResponse"}}},"description":"Default response."},"501":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DefaultResponse"}}},"description":"Default response."}},"summary":"this endpoint logsout the user.","tags":["account"],"x-mojo-to":"Account#logoff"}},"\/account\/primary_customer_signup":{"post":{"description":"This endpoint for primary customer signup.","operationId":"primaryCustomerSignup","requestBody":{"content":{"application\/json":{"schema":{"properties":{"contact_number":{"description":"Contact Number.","example":7900000091,"type":"string"},"email":{"description":"Enter Your Email","example":"nikhil@redgrape.tech","type":"string"},"full_name":{"description":"FullName","example":"Virat Kohli","type":"string"}},"type":"object"}}},"description":"The body of Request consists of field below.","required":true},"responses":{"200":{"content":{"application\/json":{"schema":{"properties":{"apiresponse":{"$ref":"#\/components\/schemas\/ApiResponse"},"result":{"properties":{"name":{"type":"string"},"profile_pic_url":{"type":"string"}},"type":"object"}},"type":"object"}}},"description":"Primary Customer Signup Result"},"400":{"description":"invalid input, object invalid"},"401":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DefaultResponse"}}},"description":"Default response."},"404":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DefaultResponse"}}},"description":"Default response."},"500":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DefaultResponse"}}},"description":"Default response."},"501":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DefaultResponse"}}},"description":"Default response."}},"summary":"this endpoint for primary customer signup.","tags":["account"],"x-mojo-to":"Account#primary_customer_signup"}},"\/account\/send_email_otp":{"post":{"description":"This operation for send email otp.","operationId":"sendEmailOtp","requestBody":{"content":{"application\/json":{"schema":{"properties":{"email":{"description":"Enter Your Email","example":"nikhil@redgrape.tech","type":"string"}},"type":"object"}}},"description":"All Otp Relation Information are below","required":true},"responses":{"200":{"content":{"application\/json":{"schema":{"properties":{"apiresponse":{"$ref":"#\/components\/schemas\/ApiResponse"}},"type":"object"}}},"description":"Send Email OTP Result"},"400":{"description":"invalid input, object invalid"},"401":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DefaultResponse"}}},"description":"Default response."},"404":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DefaultResponse"}}},"description":"Default response."},"500":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DefaultResponse"}}},"description":"Default response."},"501":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DefaultResponse"}}},"description":"Default response."}},"summary":"this endpoint for send email otp","tags":["account"],"x-mojo-to":"Account#send_email_otp"}},"\/account\/send_otp":{"post":{"description":"This API sends a randomly generated One Time Password (OTP) to a specified mobile number. It stores the sent OTP in a server side session that is bound to the Cookie value of the HTTP request. Subsequent APIs that checks for validity of supplied OTP must send back the same cookie so that same session store is checked.\n","operationId":"sendOTP","requestBody":{"content":{"application\/json":{"schema":{"properties":{"contact_number":{"example":"8288888414","type":"string"},"enforce_mobile_exists":{"enum":[1,0],"example":1,"type":"number"},"reveal":{"enum":[1,0],"example":1,"type":"number"}},"required":["contact_number"],"type":"object"}}},"description":"Username needs to be set.","required":true},"responses":{"200":{"content":{"application\/json":{"schema":{"properties":{"apiresponse":{"$ref":"#\/components\/schemas\/ApiResponse"}},"type":"object"}}},"description":"OTP sending result"},"400":{"description":"bad input parameter"},"401":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DefaultResponse"}}},"description":"Default response."},"404":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DefaultResponse"}}},"description":"Default response."},"500":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DefaultResponse"}}},"description":"Default response."},"501":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DefaultResponse"}}},"description":"Default response."}},"summary":"this method sends an OTP to a mobile number.","tags":["account"],"x-mojo-to":"Account#send_otp"}},"\/account\/verify_otp":{"post":{"description":"This operation verify otp.","operationId":"verifyOtp","requestBody":{"content":{"application\/json":{"schema":{"properties":{"otp":{"description":"Enter Mobile Otp","example":"7777","type":"string"},"type":{"enum":["EMAIL","MOBILE"],"type":"string"}},"type":"object"}}},"description":"All Otp Relation Information are below","required":true},"responses":{"200":{"content":{"application\/json":{"schema":{"properties":{"apiresponse":{"$ref":"#\/components\/schemas\/ApiResponse"}},"type":"object"}}},"description":"Rule Deleted"},"400":{"description":"invalid input, object invalid"},"401":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DefaultResponse"}}},"description":"Default response."},"404":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DefaultResponse"}}},"description":"Default response."},"500":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DefaultResponse"}}},"description":"Default response."},"501":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DefaultResponse"}}},"description":"Default response."}},"summary":"this endpoint verify otp","tags":["account"],"x-mojo-to":"Account#verify_otp"}},"\/account\/whoami":{"get":{"description":"On successful authentication the system should tag the user with a cookie so that on subsequent request we are able to determine who the user is. This endpoint checks that only. If the user is authenticated userlogin will be populated and ```apiresponse.code``` will be ```LOGGEDIN``` else userlogin will be null and ```apiresponse.code``` will be ```LOGGEDOUT```","operationId":"whoami","responses":{"200":{"content":{"application\/json":{"schema":{"properties":{"apiresponse":{"$ref":"#\/components\/schemas\/ApiResponse"}},"type":"object"}}},"description":"Whoami Result"},"400":{"description":"invalid input, object invalid"},"401":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DefaultResponse"}}},"description":"Default response."},"404":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DefaultResponse"}}},"description":"Default response."},"500":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DefaultResponse"}}},"description":"Default response."},"501":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DefaultResponse"}}},"description":"Default response."}},"summary":"this endpoint checks if requestor is loggedin in the system or not.","tags":["account"],"x-mojo-to":"Account#whoami"}},"\/device\/add_update_device_channel":{"post":{"description":"Update device and its associated channels","parameters":[],"requestBody":{"content":{"application\/json":{"schema":{"properties":{"channels":{"description":"List of channels associated with the device","items":{"properties":{"channel_id":{"default":"","description":"Optional channel identifier","type":"string"},"channel_name":{"description":"Name of the channel","type":"string"},"channel_no":{"description":"No. of channel","type":"integer"},"load_type":{"description":"Type of load for the channel","type":"string"}},"required":["channel_name","load_type","channel_no"],"type":"object"},"type":"array"},"device_id":{"description":"Serial number of device","example":"PT32GVN6","type":"string"},"device_name":{"description":"Device name","example":"abcxyz","type":"string"}},"required":["device_name","device_id","channels"],"type":"object"}}},"description":"All device channel update related information","required":true},"responses":{"200":{"content":{"application\/json":{"schema":{"properties":{"apiresponse":{"$ref":"#\/components\/schemas\/ApiResponse"}},"type":"object"}}},"description":"Device channel successfully updated"},"400":{"description":"Invalid input parameters"},"401":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DefaultResponse"}}},"description":"Default response."},"404":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DefaultResponse"}}},"description":"Default response."},"500":{"description":"Internal server error"},"501":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DefaultResponse"}}},"description":"Default response."}},"summary":"This endpoint updates channel device in database","tags":["device"],"x-mojo-to":"Device#add_update_device_channel"}},"\/device\/add_user_device":{"post":{"description":"This API for add user device.","operationId":"Adduserdevice","requestBody":{"content":{"application\/json":{"schema":{"properties":{"device_name":{"description":"Device name","example":"Device Name","type":"string"},"serial_no":{"description":"serial number of device eg: SQD7PW3H, S5RDRTVM, 56HYS6SL.","example":"SQD7PW3H","type":"string"}},"required":["device_name","serial_no"],"type":"object"}}},"description":"All Adduserdevice related information as below","required":true},"responses":{"200":{"description":"Check password response"},"400":{"description":"invalid input, object invalid"},"401":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DefaultResponse"}}},"description":"Default response."},"404":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DefaultResponse"}}},"description":"Default response."},"500":{"description":"There is a server error."},"501":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DefaultResponse"}}},"description":"Default response."}},"summary":"this method add user device.","tags":["device"],"x-mojo-to":"Device#add_user_device"}},"\/device\/get_customer_channels":{"get":{"operationId":"getCustomerChannels","responses":{"200":{"content":{"application\/json":{"schema":{"properties":{"apiresponse":{"$ref":"#\/components\/schemas\/ApiResponse"}},"type":"object"}}},"description":"Get Customer Channels"},"400":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DefaultResponse"}}},"description":"Default response."},"401":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DefaultResponse"}}},"description":"Default response."},"404":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DefaultResponse"}}},"description":"Default response."},"500":{"description":"Internal Server Error"},"501":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DefaultResponse"}}},"description":"Default response."}},"summary":"This operation for get customer channels","tags":["device"],"x-mojo-to":"Device#get_customer_channels"}},"\/device\/get_device_data":{"get":{"operationId":"getDeviceData","parameters":[{"in":"query","name":"device_id","schema":{"type":"string"}}],"responses":{"200":{"content":{"application\/json":{"schema":{"properties":{"apiresponse":{"$ref":"#\/components\/schemas\/ApiResponse"}},"type":"object"}}},"description":"get device data result"},"400":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DefaultResponse"}}},"description":"Default response."},"401":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DefaultResponse"}}},"description":"Default response."},"404":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DefaultResponse"}}},"description":"Default response."},"500":{"description":"Internal Server Error"},"501":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DefaultResponse"}}},"description":"Default response."}},"summary":"This operation for get device data","tags":["device"],"x-mojo-to":"Device#get_device_data"}},"\/device\/get_user_devices":{"get":{"description":"This endpoint fetches a list of user devices that are linked to a specific customer ID. You need to provide the customer ID as to get the devices associated with that customer.","operationId":"getUserDevices","parameters":[{"description":"The unique ID of the customer whose devices you want to list.","in":"query","name":"customer_id","schema":{"type":"string"}}],"responses":{"200":{"description":"Successfully retrieved the list of user devices."},"400":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DefaultResponse"}}},"description":"Default response."},"401":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DefaultResponse"}}},"description":"Default response."},"404":{"description":"No devices found for the specified customer."},"500":{"description":"An internal server error occurred."},"501":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DefaultResponse"}}},"description":"Default response."}},"summary":"Retrieve User Devices","tags":["device"],"x-mojo-to":"Device#get_user_devices"}},"\/device\/load_type_list":{"get":{"description":"Returns the details of a device along with its associated channel types.","operationId":"loadType","responses":{"200":{"content":{"application\/json":{"schema":{"properties":{"apiresponse":{"$ref":"#\/components\/schemas\/ApiResponse"}},"type":"object"}}},"description":"Successful response with device details."},"400":{"content":{"application\/json":{"schema":{"properties":{"apiresponse":{"$ref":"#\/components\/schemas\/ApiResponse"}},"type":"object"}}},"description":"Bad request due to invalid device ID."},"401":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DefaultResponse"}}},"description":"Default response."},"404":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DefaultResponse"}}},"description":"Default response."},"500":{"content":{"application\/json":{"schema":{"properties":{"apiresponse":{"$ref":"#\/components\/schemas\/ApiResponse"}},"type":"object"}}},"description":"Internal server error."},"501":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DefaultResponse"}}},"description":"Default response."}},"summary":"Retrieve device type list","tags":["device"],"x-mojo-to":"Device#load_type_list"}},"\/deviceGroups\/add_or_update_schedules":{"post":{"operationId":"addOrUpdateSchedule","requestBody":{"content":{"application\/json":{"schema":{"properties":{"channel_id":{"description":"The ID of the channel.","example":"8123027c-9a34-4e4d-96d8-188b2b72bdf1","type":"string"},"day_fri":{"type":"boolean"},"day_mon":{"type":"boolean"},"day_sat":{"type":"boolean"},"day_sun":{"type":"boolean"},"day_thu":{"type":"boolean"},"day_tue":{"type":"boolean"},"day_wed":{"type":"boolean"},"days":{"description":"Bitmask representing the days of the week (1=Mon, 2=Tue, ..., 64=Sun)","type":"integer"},"dimming_level":{"description":"The dimming level (0-100).","type":"integer"},"group_id":{"description":"The ID of the group.","type":"string"},"schedule_id":{"description":"The ID of the schedule to update (if applicable).","type":"string"},"start_time":{"description":"The start time of the schedule.","format":"time","type":"string"},"status_id":{"enum":["SCHED_ACTIVE","SCHED_INACTIVE"],"type":"string"},"stop_time":{"description":"The stop time of the schedule.","format":"time","type":"string"},"target_type":{"description":"The type of target for the schedule.","enum":["GROUP_SCHEDULE","CHANNEL_SCHEDULE"],"type":"string"}},"type":"object"}}},"required":true},"responses":{"200":{"content":{"application\/json":{"schema":{"properties":{"apiresponse":{"$ref":"#\/components\/schemas\/ApiResponse"}},"type":"object"}}},"description":"Schedule added\/updated successfully"},"400":{"description":"Bad Request"},"401":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DefaultResponse"}}},"description":"Default response."},"404":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DefaultResponse"}}},"description":"Default response."},"500":{"description":"Internal Server Error"},"501":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DefaultResponse"}}},"description":"Default response."}},"summary":"Add or Update Schedule","tags":["deviceGroups"],"x-mojo-to":"DeviceGroups#add_or_update_schedule"}},"\/deviceGroups\/add_update_channel_group":{"post":{"operationId":"add_update_channel_group","requestBody":{"content":{"application\/json":{"schema":{"properties":{"group_id":{"type":"string"},"group_name":{"type":"string"}},"type":"object"}}},"required":true},"responses":{"200":{"content":{"application\/json":{"schema":{"properties":{"apiresponse":{"$ref":"#\/components\/schemas\/ApiResponse"}},"type":"object"}}},"description":"Channel group updated successfully"},"400":{"description":"Bad Request"},"401":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DefaultResponse"}}},"description":"Default response."},"404":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DefaultResponse"}}},"description":"Default response."},"500":{"description":"Internal Server Error"},"501":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DefaultResponse"}}},"description":"Default response."}},"summary":"Add or Update a Channel Group","tags":["deviceGroups"],"x-mojo-to":"DeviceGroups#add_update_channel_group"}},"\/deviceGroups\/channel_group_list":{"get":{"operationId":"channel_group_list","parameters":[{"in":"query","name":"customer_id","schema":{"type":"string"}}],"responses":{"200":{"content":{"application\/json":{"schema":{"properties":{"apiresponse":{"$ref":"#\/components\/schemas\/ApiResponse"}},"type":"object"}}},"description":"Channel groups retrieved successfully"},"400":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DefaultResponse"}}},"description":"Default response."},"401":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DefaultResponse"}}},"description":"Default response."},"404":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DefaultResponse"}}},"description":"Default response."},"500":{"description":"Internal Server Error"},"501":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DefaultResponse"}}},"description":"Default response."}},"summary":"Retrieve Channel Groups","tags":["deviceGroups"],"x-mojo-to":"DeviceGroups#channel_group_list"}},"\/deviceGroups\/delete_channel_group":{"delete":{"operationId":"delete_channel_group","parameters":[{"in":"query","name":"group_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application\/json":{"schema":{"properties":{"apiresponse":{"$ref":"#\/components\/schemas\/ApiResponse"}},"type":"object"}}},"description":"Channel group deleted successfully"},"400":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DefaultResponse"}}},"description":"Default response."},"401":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DefaultResponse"}}},"description":"Default response."},"404":{"description":"Channel group not found"},"500":{"description":"Internal Server Error"},"501":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DefaultResponse"}}},"description":"Default response."}},"summary":"Delete a Channel Group","tags":["deviceGroups"],"x-mojo-to":"DeviceGroups#delete_channel_group"}},"\/deviceGroups\/delete_schedule":{"delete":{"operationId":"deleteSchedule","parameters":[{"description":"The ID of the schedule to delete.","in":"query","name":"schedule_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application\/json":{"schema":{"properties":{"apiresponse":{"$ref":"#\/components\/schemas\/ApiResponse"}},"type":"object"}}},"description":"Schedule deleted successfully"},"400":{"description":"Bad Request"},"401":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DefaultResponse"}}},"description":"Default response."},"404":{"description":"Schedule not found"},"500":{"description":"Internal Server Error"},"501":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DefaultResponse"}}},"description":"Default response."}},"summary":"Delete a Schedule","tags":["deviceGroups"],"x-mojo-to":"DeviceGroups#delete_schedule"}},"\/deviceGroups\/get_group_channels":{"get":{"description":"Retrieves a list of channels associated with a given user channel group.","operationId":"getgroupchannels","parameters":[{"description":"Unique identifier for the group channels","in":"query","name":"group_id","required":true,"schema":{"example":"d5cff9ea-e50c-49be-acb5-b864b7f70c45","type":"string"}}],"responses":{"200":{"description":"Successful response"},"400":{"description":"Bad Request - Invalid Parameters"},"401":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DefaultResponse"}}},"description":"Default response."},"404":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DefaultResponse"}}},"description":"Default response."},"500":{"description":"Internal Server Error"},"501":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DefaultResponse"}}},"description":"Default response."}},"summary":"Fetch channels for a group","tags":["deviceGroups"],"x-mojo-to":"DeviceGroups#get_group_channels"}},"\/deviceGroups\/get_scheduledetails":{"post":{"description":"Retrieves details of schedules.","operationId":"GetdetailsSchedules","requestBody":{"content":{"application\/json":{"schema":{"properties":{"id":{"description":"The ID of the schedule.","example":"3985a628-d1ab-4cb1-924c-c0c67be19488","type":"string"}},"type":"object"}}},"required":true},"responses":{"200":{"content":{"application\/json":{"schema":{"properties":{"apiresponse":{"$ref":"#\/components\/schemas\/ApiResponse"}},"type":"object"}}},"description":"Details of schedules retrieved successfully."},"400":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DefaultResponse"}}},"description":"Default response."},"401":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DefaultResponse"}}},"description":"Default response."},"404":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DefaultResponse"}}},"description":"Default response."},"500":{"description":"An error occurred while retrieving schedules."},"501":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DefaultResponse"}}},"description":"Default response."}},"summary":"Details of Schedules","tags":["deviceGroups"],"x-mojo-to":"DeviceGroups#get_scheduledetails"}},"\/deviceGroups\/list_of_schedules":{"get":{"description":"Retrieves a list of all schedules.","operationId":"listSchedules","responses":{"200":{"content":{"application\/json":{"schema":{"properties":{"apiresponse":{"$ref":"#\/components\/schemas\/ApiResponse"}},"type":"object"}}},"description":"A list of schedules retrieved successfully."},"400":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DefaultResponse"}}},"description":"Default response."},"401":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DefaultResponse"}}},"description":"Default response."},"404":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DefaultResponse"}}},"description":"Default response."},"500":{"description":"An error occurred while retrieving schedules."},"501":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DefaultResponse"}}},"description":"Default response."}},"summary":"List Schedules","tags":["deviceGroups"],"x-mojo-to":"DeviceGroups#list_of_schedules"}},"\/deviceGroups\/toggle_group_channel":{"post":{"description":"This API finds an existing group-channel mapping based on group_id and channel_id.\nIf no mapping exists, it creates a new one.\n","operationId":"toggleGroupChannel","requestBody":{"content":{"application\/json":{"schema":{"properties":{"channel_id":{"description":"Unique identifier for the channel","example":"c279bd2f-f92a-48a2-affd-221df352afbe","type":"string"},"group_id":{"description":"Unique identifier for the group","example":"45b976ff-5594-46f4-b3e8-170f81a6f9ba","type":"string"}},"required":["group_id","channel_id"],"type":"object"}}},"description":"Group and channel mapping information","required":true},"responses":{"200":{"content":{"application\/json":{"schema":{"properties":{"apiresponse":{"$ref":"#\/components\/schemas\/ApiResponse"}},"type":"object"}}},"description":"Toggle api created successfully"},"400":{"description":"Bad Request"},"401":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DefaultResponse"}}},"description":"Default response."},"404":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DefaultResponse"}}},"description":"Default response."},"500":{"description":"Internal Server Error"},"501":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DefaultResponse"}}},"description":"Default response."}},"summary":"Find or create a group channel mapping","tags":["deviceGroups"],"x-mojo-to":"DeviceGroups#toggle_group_channel"}}},"servers":[{"url":"https:\/\/lightcontrol-api.web3.99cloudhosting.com\/"}],"tags":[{"name":"account"},{"name":"device"},{"name":"deviceGroups"}]}