# API create and update application

**URL:** <https://developer.sailpoint.com/discuss/t/api-create-and-update-application/57571>\
**Category:** SHF Discussion and Questions\
**Tags:** access-profiles, apis, identity-security-cloud, applications\
**Created:** [May 22, 2024, 1:25pm UTC](https://developer.sailpoint.com/discuss/t/api-create-and-update-application/57571 "2024-05-22T13:25:07Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hindou](https://avatars.discourse-cdn.com/v4/letter/h/71e660/32.png) [@Hindou](https://developer.sailpoint.com/discuss/u/Hindou)\
**Post date:** [May 22, 2024, 1:25pm UTC](https://developer.sailpoint.com/discuss/t/api-create-and-update-application/57571/1 "2024-05-22T13:25:07Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![gmilunich](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/gmilunich/32/8431_2.png) [@gmilunich](https://developer.sailpoint.com/discuss/u/gmilunich)\
**Post date:** [May 22, 2024, 2:37pm UTC](https://developer.sailpoint.com/discuss/t/api-create-and-update-application/57571/2 "2024-05-22T14:37:31Z")

</div>

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 )

---

<div class="post-metadata">

**Author:** ![baoussounda](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/baoussounda/32/13095_2.png) [@baoussounda](https://developer.sailpoint.com/discuss/u/baoussounda)\
**Post date:** [May 22, 2024, 3:11pm UTC](https://developer.sailpoint.com/discuss/t/api-create-and-update-application/57571/3 "2024-05-22T15:11:59Z")

</div>

Hello @Hindou,

It’s work perfecly for me :

 ![image](https://global.discourse-cdn.com/sailpoint/original/2X/1/1a420045dd6c04a8a8a88333a316395e853d86b4.png)

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

![image](https://global.discourse-cdn.com/sailpoint/original/2X/b/bc907a635eabcf8074e1ae1314b1881c79719697.png)

For update access profiles :

 ![image](https://global.discourse-cdn.com/sailpoint/original/2X/9/96f9491a0ab7cfa64f8d330d7ecfeb6dca8aa683.png)

---

<div class="post-metadata">

**Author:** ![Hindou](https://avatars.discourse-cdn.com/v4/letter/h/71e660/32.png) [@Hindou](https://developer.sailpoint.com/discuss/u/Hindou)\
**Post date:** [May 22, 2024, 3:41pm UTC](https://developer.sailpoint.com/discuss/t/api-create-and-update-application/57571/4 "2024-05-22T15:41:44Z")

</div>

Hi @gmilunich @baoussounda,

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

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/sailpoint/original/2X/f/f2136700ed5e3703e0b85e02f6be799dacca7735.png) [@system](https://developer.sailpoint.com/discuss/u/system)\
**Post date:** [July 21, 2024, 3:41pm UTC](https://developer.sailpoint.com/discuss/t/api-create-and-update-application/57571/5 "2024-07-21T15:41:53Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
