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
| Method | HTTP request | Description |
|---|---|---|
| Get-AccountRequestConfigV2 | GET /accounts/v2/account-request-config | Get account request config |
| Update-AccountRequestConfigV2 | PATCH /accounts/v2/account-request-config | Update account request config |
get-account-request-config-v2
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.
Parameters
| Param Type | Name | Data Type | Required | Description |
|---|---|---|---|---|
| XSailPointExperimental | String | True (default to "true") | Use this header to enable this experimental API. |
Return type
Responses
| Code | Description | Data Type |
|---|---|---|
| 200 | Account request configuration for the tenant. | AccountRequestConfig |
| 400 | Client Error - Returned if the request body is invalid. | ErrorResponseDto |
| 401 | Unauthorized - Returned if there is no authorization header, or if the JWT token is expired. | GetAccountRequestConfigV2401Response |
| 403 | Forbidden - Returned if the user you are running as, doesn't have access to this end-point. | ErrorResponseDto |
| 404 | Not Found - returned if the request URL refers to a resource or object that does not exist | ErrorResponseDto |
| 429 | Too 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 |
| 500 | Internal 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
}
update-account-request-config-v2
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.
Parameters
| Param Type | Name | Data Type | Required | Description |
|---|---|---|---|---|
| XSailPointExperimental | String | True (default to "true") | Use this header to enable this experimental API. | |
| Body | JsonPatchOperation | []JsonPatchOperation | True | JSON Patch operations, as defined by RFC 6902. |
Return type
Responses
| Code | Description | Data Type |
|---|---|---|
| 200 | Updated account request configuration for the tenant. | AccountRequestConfig |
| 400 | Client Error - Returned if the request body is invalid. | ErrorResponseDto |
| 401 | Unauthorized - Returned if there is no authorization header, or if the JWT token is expired. | GetAccountRequestConfigV2401Response |
| 403 | Forbidden - Returned if the user you are running as, doesn't have access to this end-point. | ErrorResponseDto |
| 404 | Not Found - returned if the request URL refers to a resource or object that does not exist | ErrorResponseDto |
| 429 | Too 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 |
| 500 | Internal 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
}