# API to create application and add access profile

**URL:** <https://developer.sailpoint.com/discuss/t/api-to-create-application-and-add-access-profile/15369>\
**Category:** SHF Discussion and Questions\
**Tags:** identity-security-cloud\
**Created:** [August 1, 2023, 5:08pm UTC](https://developer.sailpoint.com/discuss/t/api-to-create-application-and-add-access-profile/15369 "2023-08-01T17:08:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![PratithShetty](https://avatars.discourse-cdn.com/v4/letter/p/958977/32.png) [@PratithShetty](https://developer.sailpoint.com/discuss/u/PratithShetty)\
**Post date:** [August 1, 2023, 5:08pm UTC](https://developer.sailpoint.com/discuss/t/api-to-create-application-and-add-access-profile/15369/1 "2023-08-01T17:08:59Z")

</div>

Team,

I am creating an automation to bulk upload access profile to an application. I am looking for API’s which do the below

1. Create an application and assign a source
2. Add Access profiles created to the application
3. Enable application for Request by users.

If any leads please do let me know.

Thanks

---

<div class="post-metadata">

**Author:** ![Shanmukh](https://avatars.discourse-cdn.com/v4/letter/s/82dd89/32.png) [@Shanmukh](https://developer.sailpoint.com/discuss/u/Shanmukh)\
**Post date:** [August 1, 2023, 6:00pm UTC](https://developer.sailpoint.com/discuss/t/api-to-create-application-and-add-access-profile/15369/2 "2023-08-01T18:00:15Z")

</div>

Hi @PratithShetty,

Currently, there are only “cc” API endpoints to create and update application. Below are the API endpoints for your requirement:

1. Create an application:

```auto
{
   "name" : "<<App_name>>",
   "description" : "<<App_description>>"
}

```

```
* Once app is created, save the application id received in the response

```

1. Assign source, add access profiles and enable application for request:

- API url: https://\<\<tenant\_name\>\>.api.identitynow.com/cc/api/app/update/\<\<application\_id\>\>

- Method: POST

- Body:

```auto
{
    "accountServiceId": "<<source_cloudexternalId>>",
    "launchpadEnabled": "true",
    "provisionRequestEnabled": "true",
    "accountServiceMatchAllAccounts":"true",
    "accessProfileIds": ["Access_Profile1_Id","Access_Profile2_Id",..."Access_Profilen_Id"]
}

```

- To assign source to app, make a get source API call and save the value in “cloudExternalId” and place that value in “accountServiceId” attribute in the above update app json body

Thank you.  
Regards,  
Shanmukh

---

<div class="post-metadata">

**Author:** ![PratithShetty](https://avatars.discourse-cdn.com/v4/letter/p/958977/32.png) [@PratithShetty](https://developer.sailpoint.com/discuss/u/PratithShetty)\
**Post date:** [August 1, 2023, 6:38pm UTC](https://developer.sailpoint.com/discuss/t/api-to-create-application-and-add-access-profile/15369/3 "2023-08-01T18:38:48Z")

</div>

Thanks! Will check this!

---

<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:** [September 30, 2023, 6:39pm UTC](https://developer.sailpoint.com/discuss/t/api-to-create-application-and-add-access-profile/15369/4 "2023-09-30T18:39:39Z")

</div>

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