cancel
Showing results for 
Search instead for 
Did you mean: 

SF-LMS API create ScheduledOfferings

bgabel
Discoverer
0 Kudos

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?

anne-petteroe
Community Manager
Community Manager
0 Kudos

Hi Bruce,

Thank you for visiting SAP Community to get answers to your questions. Since you're asking a question here for the first time, I recommend that you familiarize yourself with https://community.sap.com/resources/questions-and-answers, as it provides tips for preparing questions that draw responses from our members.

Feel free to take our Q&A tutorial at https://developers.sap.com/tutorials/community-qa.html as well, as that will also help you when preparing questions for the community.

By adding a picture to your profile you encourage your readers to respond.

Kind regards,
Anne

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.