API create and update application

Hi,

I’m trying to create an app using an API call. I was able to do that, but I couldn’t add a source or access profiles to the app. I saw someone else had asked the same question and there was a solution, but it didn’t work for me.

First, I create an app and I provide a “name” and a “description”. Then, I update the app, but I’ve tried everything: adding the access profile IDs in “accessProfileIds” and the source ID in “accountServiceId”, but nothing works. It’s always “null” in “accessProfileIds” and “-1” in “accountServiceId”.

Could you please let me know if you have a solution for this issue?

Thank you.

Which endpoints are you using for this?

Do you have a working one that you could pull down and see how the configuration should be set?

Can you provide an example of the Body you are using to try the create/update that is not working? (Change and GUIDs or names. You can replace them with )

Hello @Hindou,

It’s work perfecly for me :

Some point to be considered, for source id on accountServiceId, you must specify source external id (cloudExternalId attribute).
Exemple in source json format :

image

For update access profiles :

2 Likes

Hi @gmilunich @baoussounda,

Thanks for your answers. Indeed, there was an issue in the Body; I wasn’t retrieving the correct “cloudExternalId”.

1 Like