Hotline APIs
-
Update Hotline Configuration
Description: Updates the configuration of a hotlineUsage:
PUT api/Hotlines/Update
Parameter Type Source Description ProfileObject HotLineProfile FromBody The HotlineProfile object containing the updated properties Returns:
0 on success
Examples:
<!-- Intent: Update the hotline configuration profile for the hotline phone number of (866) 802-0837 GET to the following url http://api.v4.swiftreach.com/api/Hotlines/Update --> <!-- POSTED XML DATA --> <HotLineProfile xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema/SwiftReach.Swift911.Core.Hotline"> <BusinessHours> <BusinessHours> <BeginTime></BeginTime> <EndTime></EndTime> <HoursType>Always_Open</HoursType> <WeekDay>Sunday</WeekDay> </BusinessHours> <BusinessHours> <BeginTime></BeginTime> <EndTime></EndTime> <HoursType>Always_Open</HoursType> <WeekDay>Monday</WeekDay> </BusinessHours> <BusinessHours> <BeginTime></BeginTime> <EndTime></EndTime> <HoursType>Always_Open</HoursType> <WeekDay>Tuesday</WeekDay> </BusinessHours> <BusinessHours> <BeginTime></BeginTime> <EndTime></EndTime> <HoursType>Always_Open</HoursType> <WeekDay>Wednesday</WeekDay> </BusinessHours> <BusinessHours> <BeginTime></BeginTime> <EndTime></EndTime> <HoursType>Always_Open</HoursType> <WeekDay>Thursday</WeekDay> </BusinessHours> <BusinessHours> <BeginTime></BeginTime> <EndTime></EndTime> <HoursType>Always_Open</HoursType> <WeekDay>Friday</WeekDay> </BusinessHours> <BusinessHours> <BeginTime></BeginTime> <EndTime></EndTime> <HoursType>Always_Open</HoursType> <WeekDay>Saturday</WeekDay> </BusinessHours> </BusinessHours> <ClosedSettings i:type="Hotline_Voice"> <ConfigType>Voice</ConfigType> <VoiceCode>659377</VoiceCode> <VoiceType>user_defined_voice_message</VoiceType> </ClosedSettings> <HolidayHours i:nil="true" /> <OpenSettings i:type="Hotline_Voice"> <ConfigType>Voice</ConfigType> <VoiceCode>659377</VoiceCode> <VoiceType>user_defined_voice_message</VoiceType> </OpenSettings> <Active>true</Active> <ChangeStamp>3/20/2013 3:25:52 PM</ChangeStamp> <ChangedByUser>sample</ChangedByUser> <Code>100037</Code> <CreateStamp>3/11/2013 9:31:00 AM</CreateStamp> <CreatedByUser>sample</CreatedByUser> <CustomerCode>200201</CustomerCode> <JobCode>0</JobCode> <Name>V4 Nick</Name> <PhoneNumber>8668020837</PhoneNumber> </HotLineProfile> <!-- example return value --> <int>0<int>