Update Batch Scheduler API
This API is used to update batch scheduler in LMS.
Request URL:
https://people.zoho.com/api/v1/courses/<courseId>/batches/schedulers/<batchSchedulerId>?batchSchedulerData ={"batchName" : <batchName>, "batchNameSuffixSeparator" : <batchNameSuffixSeparator>, "batchNameSuffix" : <batchNameSuffix>, "startDate" : <startDate>, "endDate" : <endDate>, "locations" : <locations>, "minimumCapacity" : <minimumCapacity>, "maximumCapacity" : <maximumCapacity>, "frequency" : <frequency>, "frequencyUnit" : <frequencyUnit>, "offset" : <offset>, "offsetUnit" :<offsetUnit>, "daysOfTheWeek" : <daysOfTheWeek>, "datesOfTheMonth" : <datesOfTheMonth>, "weeksOfTheMonth" : <weeksOfTheMonth>, "monthsOfTheYear" : <monthsOfTheYear>, "allowWaitlisting" : <allowWaitlisting>, "cancelBatchWhenMinimumCapacityIsNotMet" : <cancelBatchWhenMinimumCapacityIsNotMet>,"waitingTimeForCancellation" : <waitingTimeForCancellation>,"waitingTimeUnitForCancellation" : <waitingTimeUnitForCancellation>, "cloneType" : <cloneType>, "sourceBatchId" : <sourceBatchId>, "notifyApplicableUsers" : <notifyApplicableUsers>, "publishBatchAutomatically" : <publishBatchAutomatically>, "notifyClonedMembers" : <notifyClonedMembers>}
Scope:
ZOHOPEOPLE.training.ALL
OR
ZOHOPEOPLE.training.UPDATE
Possible Operation Types:
ALL - Complete access to data
UPDATE - Only to edit data
Method:
PATCH
Request Parameters
Parameters | Values Allowed | Default Value | Description |
*batchSchedulerData | <parameters in JSON Object> | JSON Input |
Parameters | Values Allowed | Default Value | Description |
batchName | <Batch name> | <Mandatory> | Specify the batch name |
startDate | <startDate in DD-MM-YYYY format> | <Mandatory> | Specify the start date |
endDate | <endDate in DD-MM-YYYY format> | <Mandatory> | Specify the end date |
frequency | integer values | <Mandatory> | Specify the frequency |
frequencyUnit | week|month|year | <Mandatory> | Specify the frequency unit |
batchNameSuffixSeparator | _|- | - | Specify the batch name suffix separator |
batchNameSuffix | number|dd/MM/yyyy|dd/MM | Specify the batch name suffix | |
minimumCapacity | integer values | <Mandatory> | Specify the minimum capacity |
maximumCapacity | integer values | <Mandatory> | Specify the maximum capacity |
locations | Array of location ids | - | Specify the location ids |
offset | -(1|7|14|30) | - | |
offsetUnit | "day" | - | |
daysOfTheWeek | 1-7 | - | Specify the days of the week from 1- 7 which represents sunday to saturday |
datesOfTheMonth | 1-31 | - | Specify the days of the month |
weeksOfTheMonth | 1-5 | Specify the week of the month which represents the first to fifth week | |
monthsOfTheYear | 1-12 | - | Specify the month of the year which represents January to December |
allowWaitlisting | true|false | - | Specify if wait-listing should be allowed or not |
cancelBatchWhenMinimumCapacityIsNotMet | true|false | - | - |
waitingtTimeForCancellation | integer values | - | Specify waiting time to cancel batch |
waitingtTimeUnitForCancellation | day | - | Specify the value for waiting time unit for cancellation |
cloneType | 0|1|2 | Specify the clone type | |
sourceBatchId | long | - | Specify the source batch id |
notifyApplicableuUsers | true|false | - | Specify the notify applicable users |
publishBatchAutomatically | true|false | - | Specify the publish batch automatically |
notifyClonedMembers | true|false | - | Specify the notify cloned members |
*mandatory parameters
Error Codes and Descriptions
Status Codes | Description |
---|---|
400 | Invalid parameter value/input parameter missing |
403 | Sorry! You are not authorized to do this operation |
404 | Not found |
422 | Maximum limit exceeded |
500 | Sorry! Server error occured |
View complete list of LMS API error codes
Threshold Limit: 30 requests | Lock period: 5 minutes
Threshold Limit - Number of API calls allowed within a minute.
Lock Period - Wait time before consecutive API requests.