If the completion status is not a valid status in the API request, the API does not say that it is not a valid completion status.
It returns 201 OK and when the admin checks the UI, they see that the record learning is not done.
SAP Successfactors Learning
Learning Management System (LMS)
Reproducing the Issue
Call the Record Learning Events API with a incorrect Completion Status.
The response returned from the API is 201 Created.
Through an API call, user can pass in a list of learning records to process. Out of the list of records being passed, some records will get created successfully and some records might fail with errors. The requirement is best efforts – process the good one and fail the bad ones with specific error. The response will not distinguish the records for which it passed and for which it failed.Thus, 201 generally means that the API call is processed successfully. It is up to the calling client to parse the response and decide what to do next.
This is an expected behavior.
Record Learning Events, API, completion Status incorrect, 201 created response,incorrect response,completion status,status
KBA , LOD-SF-LMS-ODA , Web Services OData , Problem