UserScheduleAddEventRequest
Bases: OCIRequest
Add an event to user schedule. The response is either a SuccessResponse or an ErrorResponse. The startDate element is adjusted to the first occurrence of the recurrent schedule that comes at or after the startDate. The endDate element is set to the sum of the adjusted starDate element value and the event duration.
Attributes:
user_id (str):
schedule_key (ScheduleKey):
event_name (str):
start_date (int):
all_day_event (Optional[bool]):
start_time (Optional[HourMinute]):
end_time (Optional[HourMinute]):
end_date (int):
recurrence (Optional[Recurrence]):
Source code in src/mercury_ocip_fast/commands/commands.py
113878 113879 113880 113881 113882 113883 113884 113885 113886 113887 113888 113889 113890 113891 113892 113893 113894 113895 113896 113897 113898 113899 113900 113901 113902 113903 113904 113905 113906 113907 113908 113909 113910 113911 113912 113913 113914 113915 113916 113917 113918 113919 113920 113921 113922 113923 113924 113925 113926 113927 113928 113929 | |
Responses
Example Usage
from mercury_ocip_fast.client import Client
from mercury_ocip_fast.commands import UserScheduleAddEventRequest
client = Client()
command = UserScheduleAddEventRequest(
user_id=...,
schedule_key=...,
event_name=...,
start_date=...,
all_day_event=...,
start_time=...,
end_time=...,
end_date=...,
recurrence=...,
)
response = client.command(command)
print(response)