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

SAP CAI API - Issues with forking and getting bot version using the Bot Management API

former_member732225
Discoverer
0 Kudos
767

Hi everyone! I've got some problems when using the Bot Management API for SAP CAI (https://api.sap.com/api/Bot_API/resource).

POST version fork:

When trying to fork a FAQ-bot i get a "401 Unauthorized" (Endpoint: https://api.cai.tools.sap/lifecycle_user_external/v1/users/{{userSlug}}/bots/{{botSlug}}/versions/{{...

(Edit: The "404 Not found" appeared because i made a mistake in the URL of the endpoint. I forgot to add "/versions/{{versionSlug}}". The error is now always "401 Unauthorized" when trying to call the /lifecycle_user_external endpoint.)

GET version bot:

When trying to get the version of a bot I also get the "401 Unauthorized". (Endpoint: https://api.cai.tools.sap/lifecycle_user_external/v2/users/{{userSlug}}/bots/{{botSlug}}/versions/{{...

GET bot:

Authorization (also exactly the same OAuth 2.0 as with other requests) and everything works just fine when i get the whole bot (Endpoint: https://api.cai.tools.sap/core/v1/users/{{userSlug}}/bots/{{botSlug}}):

All the postman variables are the same for all three requests and copied from the token-section from the SAP CAI dashboard of a FAQ-bot that i created manually yesterday. I need the fork to create new FAQ-bots programmatically...

Can anyone help me here? Thanks and kind regards.

Alexander

Accepted Solutions (0)

Answers (1)

Answers (1)

himabindu_guttapalem
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Alexandar,

Can you please create a ticket in component "CA-ML-CAI-BLC" with the details, so that the respective dev team can look into the issue and resolve the same.

Regards,

Bindu

former_member732225
Discoverer
0 Kudos

Hi Himabindu

I do not have an S-user so i cannot open an incident at https://launchpad.support.sap.com/#incident/create.

Or is there another place where i can open a ticket?

Kind regards

Alexander

former_member732225
Discoverer
0 Kudos

Hi Himabindu

I edited the question because I noticed that I made a mistake in the endpoint-url of the POST version fork. Unfortunately I still get a "401 Unauthorized".

Kind regards

Alexander

former_member732225
Discoverer
0 Kudos

Hi @himabindu_guttapalem

Do you have an update on this issue?

Kind regards

Alexander