It is not currently possible to configure xAPI for LinkedIn Learning via an API call. The process of setting up xAPI for LinkedIn Learning must be done manually through the LinkedIn Learning admin account as you have described in the link you provided. This involves creating an xAPI integration, generating an access token, and configuring the integration settings.
Once the xAPI integration is set up, you can use the xAPI API to send statements to the LinkedIn Learning xAPI endpoint. The xAPI API allows you to send statements that track actions that a learner takes within a learning experience, such as completing a course or interacting with content. You can find more information about the xAPI API and how to use it in the xAPI specification, which is available at: