Skip to main content

AccountRequestConfigAPI

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-account-request-config-v2Get /accounts/v2/account-request-configGet account request config
update-account-request-config-v2Patch /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.

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 account request config 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

Path Parameters​

Other Parameters​

Other parameters are passed through a pointer to a apiGetAccountRequestConfigV2Request struct via the builder pattern

NameTypeDescriptionNotes
xSailPointExperimentalstringUse this header to enable this experimental API.[default to "true"]

Return type​

AccountRequestConfig

HTTP request headers​

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

Example​

package main

import (
"context"
"fmt"
"os"


sailpoint "github.com/sailpoint-oss/golang-sdk/v3"
)

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")



configuration := sailpoint.NewDefaultConfiguration()
apiClient := sailpoint.NewAPIClient(configuration)
resp, r, err := apiClient.AccountRequestConfigAPI.GetAccountRequestConfigV2(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute()
//resp, r, err := apiClient.AccountRequestConfigAPI.GetAccountRequestConfigV2(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AccountRequestConfigAPI.GetAccountRequestConfigV2``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetAccountRequestConfigV2`: AccountRequestConfig
fmt.Fprintf(os.Stdout, "Response from `AccountRequestConfigAPI.GetAccountRequestConfigV2`: %v\n", resp)
}

[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.

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 account request config 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

Path Parameters​

Other Parameters​

Other parameters are passed through a pointer to a apiUpdateAccountRequestConfigV2Request struct via the builder pattern

NameTypeDescriptionNotes
xSailPointExperimentalstringUse this header to enable this experimental API.[default to "true"]
jsonPatchOperation[]JsonPatchOperationJSON Patch operations, as defined by RFC 6902.

Return type​

AccountRequestConfig

HTTP request headers​

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

Example​

package main

import (
"context"
"fmt"
"os"
"encoding/json"
account_request_config "github.com/sailpoint-oss/golang-sdk/v3/account_request_config"
sailpoint "github.com/sailpoint-oss/golang-sdk/v3"
)

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")
jsonpatchoperationJson := []byte(`[{"op":"replace","path":"/allowRequestForSelf","value":true}]`) // []JsonPatchOperation | JSON Patch operations, as defined by [RFC 6902](https://tools.ietf.org/html/rfc6902).

var jsonPatchOperation []account_request_config.JsonPatchOperation
if err := json.Unmarshal(jsonpatchoperationJson, &jsonPatchOperation); err != nil {
fmt.Println("Error:", err)
return
}


configuration := sailpoint.NewDefaultConfiguration()
apiClient := sailpoint.NewAPIClient(configuration)
resp, r, err := apiClient.AccountRequestConfigAPI.UpdateAccountRequestConfigV2(context.Background()).XSailPointExperimental(xSailPointExperimental).JsonPatchOperation(jsonPatchOperation).Execute()
//resp, r, err := apiClient.AccountRequestConfigAPI.UpdateAccountRequestConfigV2(context.Background()).XSailPointExperimental(xSailPointExperimental).JsonPatchOperation(jsonPatchOperation).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AccountRequestConfigAPI.UpdateAccountRequestConfigV2``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `UpdateAccountRequestConfigV2`: AccountRequestConfig
fmt.Fprintf(os.Stdout, "Response from `AccountRequestConfigAPI.UpdateAccountRequestConfigV2`: %v\n", resp)
}

[Back to top]