Skip to main content

Update Access Profile(s) requestable field.

POST 

https://sailpoint.api.identitynow.com/v2024/access-profiles/bulk-update-requestable

experimental

This API is currently in an experimental state. The API is subject to change based on feedback and further testing. You must include the X-SailPoint-Experimental header and set it to true to use this endpoint.

This API initiates a bulk update of field requestable for one or more Access Profiles.

If any of the indicated Access Profiles is exists in Organization,then those Access Profiles will be added in updated list of the response.Requestable field of these Access Profiles marked as true or false.

If any of the indicated Access Profiles is not does not exists in Organization,then those Access Profiles will be added in notFound list of the response. Access Profiles marked as notFound will not be updated. A SOURCE_SUBADMIN may only use this API to update Access Profiles which are associated with Sources they are able to administer.

Request

Header Parameters

    X-SailPoint-Experimental stringrequired

    Use this header to enable this experimental API.

    Default value: true
    Example: true

Body arrayrequired

  • Array [
  • idstring

    Access Profile ID.

    Example: 464ae7bf-791e-49fd-b746-06a2e4a8
    requestableboolean

    Access Profile is requestable or not.

    Example: false
  • ]

Responses

List of updated and not updated Access Profiles.

Schema
  • Array [
  • idstringrequired

    Identifier of Access Profile in bulk update request.

    Example: 2c7180a46faadee4016fb4e018c20642
    requestablebooleanrequired

    Access Profile requestable or not.

    Example: false
    statusstringrequired

    The HTTP response status code returned for an individual Access Profile that is requested for update during a bulk update operation.

    201 - Access profile is updated successfully.

    404 - Access profile not found.

    Example: 201
    descriptionstring

    Human readable status description and containing additional context information about success or failures etc.

    Example: > Access profile is updated successfully. > Referenced Access profile with Id "2c7180a46faadee4016fb4e018c20642" was not found.
  • ]

Authorization: oauth2

type: Personal Access Token
scopes: idn:access-profile:manage
user levels: ORG_ADMIN, SOURCE_ADMIN, SOURCE_SUBADMIN

View SDK Reference

package main

import (
"context"
"fmt"
"os"
"encoding/json"
v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024"
sailpoint "github.com/sailpoint-oss/golang-sdk/v2"
)

func main() {
xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true")
accessprofilebulkupdaterequestinner := []byte(`[{id=464ae7bf-791e-49fd-b746-06a2e4a89635, requestable=false}]`) // []AccessProfileBulkUpdateRequestInner |


var accessProfileBulkUpdateRequestInner []v2024.AccessProfileBulkUpdateRequestInner
if err := json.Unmarshal(accessprofilebulkupdaterequestinner, &accessProfileBulkUpdateRequestInner); err != nil {
fmt.Println("Error:", err)
return
}



configuration := sailpoint.NewDefaultConfiguration()
apiClient := sailpoint.NewAPIClient(configuration)
resp, r, err := apiClient.V2024.AccessProfilesAPI.UpdateAccessProfilesInBulk(context.Background()).XSailPointExperimental(xSailPointExperimental).AccessProfileBulkUpdateRequestInner(accessProfileBulkUpdateRequestInner).Execute()
//resp, r, err := apiClient.V2024.AccessProfilesAPI.UpdateAccessProfilesInBulk(context.Background()).XSailPointExperimental(xSailPointExperimental).AccessProfileBulkUpdateRequestInner(accessProfileBulkUpdateRequestInner).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AccessProfilesAPI.UpdateAccessProfilesInBulk``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `UpdateAccessProfilesInBulk`: []AccessProfileUpdateItem
fmt.Fprintf(os.Stdout, "Response from `AccessProfilesAPI.UpdateAccessProfilesInBulk`: %v\n", resp)
}
Request Collapse all
Base URL
https://sailpoint.api.identitynow.com/v2024
Auth
Parameters
— headerrequired
Body required
[
  {
    "id": "464ae7bf-791e-49fd-b746-06a2e4a8",
    "requestable": false
  }
]
ResponseClear

Click the Send API Request button above and see the response here!