Skip to main content

AccountRequestConfig

Use these APIs to get and update who may submit a standalone human account request. These APIs are experimental and require the `X-SailPoint-Experimental` header.

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

MethodHTTP requestDescription
Get-AccountRequestConfigV2GET /accounts/v2/account-request-configGet account request config
Update-AccountRequestConfigV2PATCH /accounts/v2/account-request-configUpdate account request config

get-account-request-config-v2​

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.

Get the tenant configuration that controls who may submit a standalone human account request. The first read for a tenant creates the configuration with every option false.

API Spec

Parameters​

Param TypeNameData TypeRequiredDescription
XSailPointExperimentalStringTrue (default to "true")Use this header to enable this experimental API.

Return type​

AccountRequestConfig

Responses​

CodeDescriptionData Type
200Account request configuration for the tenant.AccountRequestConfig
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.GetAccountRequestConfigV2401Response
403Forbidden - Returned if the user you are running as, doesn't have access to this end-point.ErrorResponseDto
404Not Found - returned if the request URL refers to a resource or object that does not existErrorResponseDto
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.GetAccountRequestConfigV2429Response
500Internal Server Error - Returned if there is an unexpected error.ErrorResponseDto

HTTP request headers​

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

Example​

$XSailPointExperimental = "true" # String | Use this header to enable this experimental API. (default to "true")

# Get account request config

try {
Get-AccountRequestConfigV2 -XSailPointExperimental $XSailPointExperimental

# Below is a request that includes all optional parameters
# Get-AccountRequestConfigV2 -XSailPointExperimental $XSailPointExperimental
} catch {
Write-Host $_.Exception.Response.StatusCode.value__ "Exception occurred when calling Get-AccountRequestConfigV2"
Write-Host $_.ErrorDetails
}

[Back to top]

update-account-request-config-v2​

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.

Update who may submit a standalone human account request. The body is a JSON Patch document. Each operation must replace one of /allowRequestForSelf, /requestOnBehalfOfConfig/allowRequestOnBehalfOfAnyoneByAnyone, or /requestOnBehalfOfConfig/allowRequestOnBehalfOfEmployeeByManager with a boolean. A request with any other path or operation returns 400 and leaves the stored configuration unchanged.

API Spec

Parameters​

Param TypeNameData TypeRequiredDescription
XSailPointExperimentalStringTrue (default to "true")Use this header to enable this experimental API.
BodyJsonPatchOperation[]JsonPatchOperationTrueJSON Patch operations, as defined by RFC 6902.

Return type​

AccountRequestConfig

Responses​

CodeDescriptionData Type
200Updated account request configuration for the tenant.AccountRequestConfig
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.GetAccountRequestConfigV2401Response
403Forbidden - Returned if the user you are running as, doesn't have access to this end-point.ErrorResponseDto
404Not Found - returned if the request URL refers to a resource or object that does not existErrorResponseDto
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.GetAccountRequestConfigV2429Response
500Internal Server Error - Returned if there is an unexpected error.ErrorResponseDto

HTTP request headers​

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

Example​

$XSailPointExperimental = "true" # String | Use this header to enable this experimental API. (default to "true")
$JsonPatchOperation = @"{
"op" : "replace",
"path" : "/description",
"value" : "New description"
}"@ # JsonPatchOperation[] | JSON Patch operations, as defined by [RFC 6902](https://tools.ietf.org/html/rfc6902).


# Update account request config

try {
$Result = ConvertFrom-JsonToJsonPatchOperation -Json $JsonPatchOperation
Update-AccountRequestConfigV2 -XSailPointExperimental $XSailPointExperimental -JsonPatchOperation $Result

# Below is a request that includes all optional parameters
# Update-AccountRequestConfigV2 -XSailPointExperimental $XSailPointExperimental -JsonPatchOperation $Result
} catch {
Write-Host $_.Exception.Response.StatusCode.value__ "Exception occurred when calling Update-AccountRequestConfigV2"
Write-Host $_.ErrorDetails
}

[Back to top]