cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

SF-LMS API create ScheduledOfferings

bgabel
Discoverer
0 Kudos
765

How do you create a ScheduledOffering for a componentID through the API? I've tried using a POST to /learning/odatav4/public/user/scheduledoffering-service/v1/ScheduledOfferings, but I receive a 303 response with a message "No operation executed, please check your data and service context".

Is there an example of creating a ScheduledOffering, creating segments, and assigning instructors?

Accepted Solutions (0)

Answers (1)

Answers (1)

SF-Dan
Product and Topic Expert
Product and Topic Expert
0 Kudos

It looks like you are trying to use the user-based API instead of the admin-based API as only admins can create classes not users. Use the documentation here: admin/scheduledoffering-service/v1 Metadata | SAP Help Portal

bgabel
Discoverer
0 Kudos

If I try using /learning/odatav4/public/admin/scheduledoffering-service/v1/ScheduledOfferings, I get a response "message": "Cannot find EntitySet, Singleton, ActionImport or FunctionImport with name 'ScheduledOfferings'."

Based on this knowledge article:
2630645 - scheduledoffering-service API call error - Cannot find EntitySet, Singleton, ActionImport ...

It says "The 'ScheduledOfferings' container is only available for user API calls."

SF-Dan
Product and Topic Expert
Product and Topic Expert
0 Kudos

Are you using the admin token before making this call? Can you share the API url & body?

SF-Dan
Product and Topic Expert
Product and Topic Expert
0 Kudos

The error message response is correct here as there is no container in that API documentation for ScheduledOfferings to be used in that admin version of the URL API call. You can use the metadata definitions to use this API or reference https://help.sap.com/docs/SAP_SUCCESSFACTORS_LEARNING/5aab9bef78fc4c4fa199c1f7aa142720/dec11bb395024...
SAP recommends engaging certified partners to help implement oData API for their expert knowledge in oData Standards and the nuances in the LMS as needed.