Creates a new resource allocation. You must specify a StartDateTime and EndDateTime.
A reason for the block is optional. This reason will display in the OnSched Portal Calendar.
Resource allocations can be set to specific time ranges or for the whole day.
Resource allocations can repeat for a specific date range instance or set to repeat at a specified frequency.
The frequency can be set to a value of D,W,M,Y for Day, Week, Month, or Year respecitively.
Daily allocations will repeat for each day of the week for the date range specified.
Weekly allocations will repeat only on the specified days of the week for the date range specified. For a weekly block
you must also specify the weekdays. Weekdays are expressed as a string of digits with each single digit in the string representing a day
of the week. The possible values are 0,1,2,3,4,5,6 where 0=Sunday, 1=Monday, 2=Tuesday, 3=Wed, 4=Thursday, 5=Friday, 6=Saturday.
For example a repeat weekly entry with weekdays 24 repeats each week on Tuesday and Thursday.
Use the interval property to specify the interval that the allocation repeats. For example an interval of 2 for a weekly allocation means that
the allocation will repeat every second week beginning at the day specified. A daily allocation with an interval of 10 means the allocation will
repeat every 10 days. The interval property applies to all repeat frequencies.
Monthly allocations repeat either on the day of the month specified in the month day property or on the day of the week and week of the month specified by
the start date. For example, repeat every 3rd friday of each month, repeat on the 21st day of the month.
Repeat allocations will end on the date specified by the end date. You can specify 9999-12-31 in
the EndDate field to indicate the repeating block should continue indefinitely.