Getting Issue While Creating Batch For one Day #199
Replies: 3 comments 1 reply
-
Hi team, Thank you. |
Beta Was this translation helpful? Give feedback.
-
@mahajanmahesh935 as of date the batch creation api has a validation of start date and end date, where start date should not be greater than or equal to end date. And also it is not configuration driven. You need to put end date at least one day after start date. |
Beta Was this translation helpful? Give feedback.
-
Hello @amitpriyadarshi Thank you for you Insights, |
Beta Was this translation helpful? Give feedback.
-
Hello Team,
@AmiableAnil @Jayaprakash8887 @rhwarrier
Background
We have set up the event management in Sunbird version 4.10.0. As per the flow, users can join the event using the enroll API.
Issue Details
We are currently facing an issue when creating a batch for a one-day event using the following CURL request:
Request URL:
{{host}}/learner/course/v1/batch/create
Request Method:
POST
Request Body:
Response:
Issue Explanation
The API currently requires the end date to be greater than the start date, making it challenging to create an event that starts and ends on the same day.
Request for Guidance
Could you please guide us on how to address this issue? We need to create one-day event batches, and the current API restriction is preventing us from doing so.
Thank you for your assistance. We are looking forward to your guidance to resolve this issue.
cc @komalm @paritshivani
Beta Was this translation helpful? Give feedback.
All reactions