Skip to main content

sailpoint.iai_recommendations.IAIRecommendationsApi

All URIs are relative to https://sailpoint.api.identitynow.com

MethodHTTP requestDescription
get-recommendations-config-v1GET /recommendations/v1/configGet certification recommendation config values
get-recommendations-v1POST /recommendations/v1/requestReturns recommendation based on object
update-recommendations-config-v1PUT /recommendations/v1/configUpdate certification recommendation config values

get-recommendations-config-v1

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.

setting x-sailpoint-experimental header

on the configuration object you can set the x-sailpoint-experimental header to `true' to enable all experimantl endpoints within the SDK. Example:

  configuration = Configuration()
configuration.experimental = True

Get certification recommendation config values Retrieves configuration attributes used by certification recommendations.

API Spec

Parameters

Param TypeNameData TypeRequiredDescription
x_sail_point_experimentalstr(optional) (default to 'true')Use this header to enable this experimental API.

Return type

Recommendationconfigdto

Responses

CodeDescriptionData TypeResponse headers
200Cert recommendation configuration attributesRecommendationconfigdto-
400Client Error - Returned if the request body is invalid.Errorresponsedto-
401Unauthorized - Returned if there is no authorization header, or if the JWT token is expired.GetRecommendationsV1401Response-
403Forbidden - Returned if the user you are running as, doesn't have access to this end-point.Errorresponsedto-
429Too Many Requests - Returned in response to too many requests in a given period of time - rate limited. The Retry-After header in the response includes how long to wait before trying again.GetRecommendationsV1429Response-
500Internal Server Error - Returned if there is an unexpected error.Errorresponsedto-

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

Example

from sailpoint.iai_recommendations.api.iai_recommendations_api import IAIRecommendationsApi
from sailpoint.iai_recommendations.api_client import ApiClient
from sailpoint.iai_recommendations.models.recommendationconfigdto import Recommendationconfigdto
from sailpoint.configuration import Configuration
configuration = Configuration()

configuration.experimental = True

with ApiClient(configuration) as api_client:
x_sail_point_experimental = 'true' # str | Use this header to enable this experimental API. (optional) (default to 'true') # str | Use this header to enable this experimental API. (optional) (default to 'true')

try:
# Get certification recommendation config values

results = IAIRecommendationsApi(api_client).get_recommendations_config_v1()
# Below is a request that includes all optional parameters
# results = IAIRecommendationsApi(api_client).get_recommendations_config_v1(x_sail_point_experimental)
print("The response of IAIRecommendationsApi->get_recommendations_config_v1:\n")
print(results.model_dump_json(by_alias=True, indent=4))
except Exception as e:
print("Exception when calling IAIRecommendationsApi->get_recommendations_config_v1: %s\n" % e)

[Back to top]

get-recommendations-v1

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.

setting x-sailpoint-experimental header

on the configuration object you can set the x-sailpoint-experimental header to `true' to enable all experimantl endpoints within the SDK. Example:

  configuration = Configuration()
configuration.experimental = True

Returns recommendation based on object The getRecommendations API returns recommendations based on the requested object. The recommendations are invoked by IdentityIQ and IdentityNow plug-ins that retrieve recommendations based on the performed calculations.

API Spec

Parameters

Param TypeNameData TypeRequiredDescription
BodyrecommendationrequestdtoRecommendationrequestdtoTrue
x_sail_point_experimentalstr(optional) (default to 'true')Use this header to enable this experimental API.

Return type

Recommendationresponsedto

Responses

CodeDescriptionData TypeResponse headers
200The recommendations for a customerRecommendationresponsedto-
400Client Error - Returned if the request body is invalid.Errorresponsedto-
401Unauthorized - Returned if there is no authorization header, or if the JWT token is expired.GetRecommendationsV1401Response-
403Forbidden - Returned if the user you are running as, doesn't have access to this end-point.Errorresponsedto-
429Too Many Requests - Returned in response to too many requests in a given period of time - rate limited. The Retry-After header in the response includes how long to wait before trying again.GetRecommendationsV1429Response-
500Internal Server Error - Returned if there is an unexpected error.Errorresponsedto-

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

Example

from sailpoint.iai_recommendations.api.iai_recommendations_api import IAIRecommendationsApi
from sailpoint.iai_recommendations.api_client import ApiClient
from sailpoint.iai_recommendations.models.recommendationrequestdto import Recommendationrequestdto
from sailpoint.iai_recommendations.models.recommendationresponsedto import Recommendationresponsedto
from sailpoint.configuration import Configuration
configuration = Configuration()

configuration.experimental = True

with ApiClient(configuration) as api_client:
recommendationrequestdto = '''sailpoint.iai_recommendations.Recommendationrequestdto()''' # Recommendationrequestdto |
x_sail_point_experimental = 'true' # str | Use this header to enable this experimental API. (optional) (default to 'true') # str | Use this header to enable this experimental API. (optional) (default to 'true')

try:
# Returns recommendation based on object
new_recommendationrequestdto = Recommendationrequestdto.from_json(recommendationrequestdto)
results = IAIRecommendationsApi(api_client).get_recommendations_v1(recommendationrequestdto=new_recommendationrequestdto)
# Below is a request that includes all optional parameters
# results = IAIRecommendationsApi(api_client).get_recommendations_v1(new_recommendationrequestdto, x_sail_point_experimental)
print("The response of IAIRecommendationsApi->get_recommendations_v1:\n")
print(results.model_dump_json(by_alias=True, indent=4))
except Exception as e:
print("Exception when calling IAIRecommendationsApi->get_recommendations_v1: %s\n" % e)

[Back to top]

update-recommendations-config-v1

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.

setting x-sailpoint-experimental header

on the configuration object you can set the x-sailpoint-experimental header to `true' to enable all experimantl endpoints within the SDK. Example:

  configuration = Configuration()
configuration.experimental = True

Update certification recommendation config values Updates configuration attributes used by certification recommendations.

API Spec

Parameters

Param TypeNameData TypeRequiredDescription
BodyrecommendationconfigdtoRecommendationconfigdtoTrue
x_sail_point_experimentalstr(optional) (default to 'true')Use this header to enable this experimental API.

Return type

Recommendationconfigdto

Responses

CodeDescriptionData TypeResponse headers
200Cert recommendation configuration attributes after updateRecommendationconfigdto-
400Client Error - Returned if the request body is invalid.Errorresponsedto-
401Unauthorized - Returned if there is no authorization header, or if the JWT token is expired.GetRecommendationsV1401Response-
403Forbidden - Returned if the user you are running as, doesn't have access to this end-point.Errorresponsedto-
429Too Many Requests - Returned in response to too many requests in a given period of time - rate limited. The Retry-After header in the response includes how long to wait before trying again.GetRecommendationsV1429Response-
500Internal Server Error - Returned if there is an unexpected error.Errorresponsedto-

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

Example

from sailpoint.iai_recommendations.api.iai_recommendations_api import IAIRecommendationsApi
from sailpoint.iai_recommendations.api_client import ApiClient
from sailpoint.iai_recommendations.models.recommendationconfigdto import Recommendationconfigdto
from sailpoint.configuration import Configuration
configuration = Configuration()

configuration.experimental = True

with ApiClient(configuration) as api_client:
recommendationconfigdto = '''sailpoint.iai_recommendations.Recommendationconfigdto()''' # Recommendationconfigdto |
x_sail_point_experimental = 'true' # str | Use this header to enable this experimental API. (optional) (default to 'true') # str | Use this header to enable this experimental API. (optional) (default to 'true')

try:
# Update certification recommendation config values
new_recommendationconfigdto = Recommendationconfigdto.from_json(recommendationconfigdto)
results = IAIRecommendationsApi(api_client).update_recommendations_config_v1(recommendationconfigdto=new_recommendationconfigdto)
# Below is a request that includes all optional parameters
# results = IAIRecommendationsApi(api_client).update_recommendations_config_v1(new_recommendationconfigdto, x_sail_point_experimental)
print("The response of IAIRecommendationsApi->update_recommendations_config_v1:\n")
print(results.model_dump_json(by_alias=True, indent=4))
except Exception as e:
print("Exception when calling IAIRecommendationsApi->update_recommendations_config_v1: %s\n" % e)

[Back to top]