diff --git a/api_beta/README.md b/api_beta/README.md index 3ab3e202..4b73f008 100644 --- a/api_beta/README.md +++ b/api_beta/README.md @@ -607,7 +607,7 @@ Class | Method | HTTP request | Description *WorkItemsAPI* | [**RejectApprovalItemsInBulk**](docs/WorkItemsAPI.md#rejectapprovalitemsinbulk) | **Post** /work-items/bulk-reject/{id} | Bulk reject Approval Items *WorkItemsAPI* | [**SubmitAccountSelection**](docs/WorkItemsAPI.md#submitaccountselection) | **Post** /work-items/{id}/submit-account-selection | Submit Account Selections *WorkReassignmentAPI* | [**CreateReassignmentConfiguration**](docs/WorkReassignmentAPI.md#createreassignmentconfiguration) | **Post** /reassignment-configurations | Create a Reassignment Configuration -*WorkReassignmentAPI* | [**DeleteReassignmentConfiguration**](docs/WorkReassignmentAPI.md#deletereassignmentconfiguration) | **Delete** /reassignment-configurations/{identityId} | Delete Reassignment Configuration +*WorkReassignmentAPI* | [**DeleteReassignmentConfiguration**](docs/WorkReassignmentAPI.md#deletereassignmentconfiguration) | **Delete** /reassignment-configurations/{identityId}/{configType} | Delete Reassignment Configuration *WorkReassignmentAPI* | [**GetEvaluateReassignmentConfiguration**](docs/WorkReassignmentAPI.md#getevaluatereassignmentconfiguration) | **Get** /reassignment-configurations/{identityId}/evaluate/{configType} | Evaluate Reassignment Configuration *WorkReassignmentAPI* | [**GetReassignmentConfigTypes**](docs/WorkReassignmentAPI.md#getreassignmentconfigtypes) | **Get** /reassignment-configurations/types | List Reassignment Config Types *WorkReassignmentAPI* | [**GetReassignmentConfiguration**](docs/WorkReassignmentAPI.md#getreassignmentconfiguration) | **Get** /reassignment-configurations/{identityId} | Get Reassignment Configuration diff --git a/api_beta/api/openapi.yaml b/api_beta/api/openapi.yaml index 7c52e848..66119be2 100644 --- a/api_beta/api/openapi.yaml +++ b/api_beta/api/openapi.yaml @@ -31052,20 +31052,24 @@ paths: tags: - Work Reassignment /reassignment-configurations/{identityId}: - delete: - description: Deletes all Reassignment Configuration for the specified identity - operationId: deleteReassignmentConfiguration + get: + description: Gets the Reassignment Configuration for an identity. + operationId: getReassignmentConfiguration parameters: - description: unique identity id - example: 2c91808781a71ddb0181b9090b5c504e + example: 2c91808781a71ddb0181b9090b5c504f in: path name: identityId required: true schema: type: string responses: - "204": - description: Reassignment Configuration deleted + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ConfigurationResponse' + description: Reassignment Configuration for an identity "400": content: application/json: @@ -31097,6 +31101,24 @@ paths: $ref: '#/components/schemas/ErrorResponseDto' description: "Forbidden - Returned if the user you are running as, doesn't\ \ have access to this end-point." + "404": + content: + application/json: + examples: + "404": + summary: An example of a 404 response object + value: + detailCode: 404 Not found + trackingId: b21b1f7ce4da4d639f2c62a57171b427 + messages: + - locale: en-US + localeOrigin: DEFAULT + text: The server did not find a current representation for the + target resource. + schema: + $ref: '#/components/schemas/ErrorResponseDto' + description: Not Found - returned if the request URL refers to a resource + or object that does not exist "429": content: application/json: @@ -31124,28 +31146,35 @@ paths: error. security: - userAuth: - - idn:reassignment-configuration:delete - summary: Delete Reassignment Configuration + - idn:reassignment-configuration:read + summary: Get Reassignment Configuration tags: - Work Reassignment - get: - description: Gets the Reassignment Configuration for an identity. - operationId: getReassignmentConfiguration + put: + description: Replaces existing Reassignment configuration for an identity with + the newly provided configuration. + operationId: putReassignmentConfig parameters: - description: unique identity id - example: 2c91808781a71ddb0181b9090b5c504f + example: 2c91808781a71ddb0181b9090b5c504e in: path name: identityId required: true schema: type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ConfigurationItemRequest' + required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/ConfigurationResponse' - description: Reassignment Configuration for an identity + $ref: '#/components/schemas/ConfigurationItemResponse' + description: Reassignment Configuration updated "400": content: application/json: @@ -31177,24 +31206,6 @@ paths: $ref: '#/components/schemas/ErrorResponseDto' description: "Forbidden - Returned if the user you are running as, doesn't\ \ have access to this end-point." - "404": - content: - application/json: - examples: - "404": - summary: An example of a 404 response object - value: - detailCode: 404 Not found - trackingId: b21b1f7ce4da4d639f2c62a57171b427 - messages: - - locale: en-US - localeOrigin: DEFAULT - text: The server did not find a current representation for the - target resource. - schema: - $ref: '#/components/schemas/ErrorResponseDto' - description: Not Found - returned if the request URL refers to a resource - or object that does not exist "429": content: application/json: @@ -31222,14 +31233,14 @@ paths: error. security: - userAuth: - - idn:reassignment-configuration:read - summary: Get Reassignment Configuration + - idn:reassignment-configuration:update + summary: Update Reassignment Configuration tags: - Work Reassignment - put: - description: Replaces existing Reassignment configuration for an identity with - the newly provided configuration. - operationId: putReassignmentConfig + /reassignment-configurations/{identityId}/{configType}: + delete: + description: Deletes a single reassignment configuration for the specified identity + operationId: deleteReassignmentConfiguration parameters: - description: unique identity id example: 2c91808781a71ddb0181b9090b5c504e @@ -31238,19 +31249,14 @@ paths: required: true schema: type: string - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ConfigurationItemRequest' + - in: path + name: configType required: true + schema: + $ref: '#/components/schemas/ConfigTypeEnum' responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/ConfigurationItemResponse' - description: Reassignment Configuration updated + "204": + description: Reassignment Configuration deleted "400": content: application/json: @@ -31309,8 +31315,8 @@ paths: error. security: - userAuth: - - idn:reassignment-configuration:update - summary: Update Reassignment Configuration + - idn:reassignment-configuration:delete + summary: Delete Reassignment Configuration tags: - Work Reassignment /reassignment-configurations/{identityId}/evaluate/{configType}: diff --git a/api_beta/api_work_reassignment.go b/api_beta/api_work_reassignment.go index 4d1a38ca..6422b2ae 100644 --- a/api_beta/api_work_reassignment.go +++ b/api_beta/api_work_reassignment.go @@ -191,6 +191,7 @@ type ApiDeleteReassignmentConfigurationRequest struct { ctx context.Context ApiService *WorkReassignmentAPIService identityId string + configType ConfigTypeEnum } func (r ApiDeleteReassignmentConfigurationRequest) Execute() (*http.Response, error) { @@ -200,17 +201,19 @@ func (r ApiDeleteReassignmentConfigurationRequest) Execute() (*http.Response, er /* DeleteReassignmentConfiguration Delete Reassignment Configuration -Deletes all Reassignment Configuration for the specified identity +Deletes a single reassignment configuration for the specified identity @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param identityId unique identity id + @param configType @return ApiDeleteReassignmentConfigurationRequest */ -func (a *WorkReassignmentAPIService) DeleteReassignmentConfiguration(ctx context.Context, identityId string) ApiDeleteReassignmentConfigurationRequest { +func (a *WorkReassignmentAPIService) DeleteReassignmentConfiguration(ctx context.Context, identityId string, configType ConfigTypeEnum) ApiDeleteReassignmentConfigurationRequest { return ApiDeleteReassignmentConfigurationRequest{ ApiService: a, ctx: ctx, identityId: identityId, + configType: configType, } } @@ -227,8 +230,9 @@ func (a *WorkReassignmentAPIService) DeleteReassignmentConfigurationExecute(r Ap return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/reassignment-configurations/{identityId}" + localVarPath := localBasePath + "/reassignment-configurations/{identityId}/{configType}" localVarPath = strings.Replace(localVarPath, "{"+"identityId"+"}", url.PathEscape(parameterValueToString(r.identityId, "identityId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"configType"+"}", url.PathEscape(parameterValueToString(r.configType, "configType")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} diff --git a/api_beta/docs/WorkReassignmentAPI.md b/api_beta/docs/WorkReassignmentAPI.md index f9dbf40c..4d10a7b2 100644 --- a/api_beta/docs/WorkReassignmentAPI.md +++ b/api_beta/docs/WorkReassignmentAPI.md @@ -5,7 +5,7 @@ All URIs are relative to *https://sailpoint.api.identitynow.com/beta* Method | HTTP request | Description ------------- | ------------- | ------------- [**CreateReassignmentConfiguration**](WorkReassignmentAPI.md#CreateReassignmentConfiguration) | **Post** /reassignment-configurations | Create a Reassignment Configuration -[**DeleteReassignmentConfiguration**](WorkReassignmentAPI.md#DeleteReassignmentConfiguration) | **Delete** /reassignment-configurations/{identityId} | Delete Reassignment Configuration +[**DeleteReassignmentConfiguration**](WorkReassignmentAPI.md#DeleteReassignmentConfiguration) | **Delete** /reassignment-configurations/{identityId}/{configType} | Delete Reassignment Configuration [**GetEvaluateReassignmentConfiguration**](WorkReassignmentAPI.md#GetEvaluateReassignmentConfiguration) | **Get** /reassignment-configurations/{identityId}/evaluate/{configType} | Evaluate Reassignment Configuration [**GetReassignmentConfigTypes**](WorkReassignmentAPI.md#GetReassignmentConfigTypes) | **Get** /reassignment-configurations/types | List Reassignment Config Types [**GetReassignmentConfiguration**](WorkReassignmentAPI.md#GetReassignmentConfiguration) | **Get** /reassignment-configurations/{identityId} | Get Reassignment Configuration @@ -84,7 +84,7 @@ Name | Type | Description | Notes ## DeleteReassignmentConfiguration -> DeleteReassignmentConfiguration(ctx, identityId).Execute() +> DeleteReassignmentConfiguration(ctx, identityId, configType).Execute() Delete Reassignment Configuration @@ -104,10 +104,11 @@ import ( func main() { identityId := "2c91808781a71ddb0181b9090b5c504e" // string | unique identity id + configType := openapiclient.ConfigTypeEnum("ACCESS_REQUESTS") // ConfigTypeEnum | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.WorkReassignmentAPI.DeleteReassignmentConfiguration(context.Background(), identityId).Execute() + r, err := apiClient.WorkReassignmentAPI.DeleteReassignmentConfiguration(context.Background(), identityId, configType).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `WorkReassignmentAPI.DeleteReassignmentConfiguration``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -122,6 +123,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. **identityId** | **string** | unique identity id | +**configType** | [**ConfigTypeEnum**](.md) | | ### Other Parameters @@ -132,6 +134,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + ### Return type (empty response body) diff --git a/api_beta/test/api_work_reassignment_test.go b/api_beta/test/api_work_reassignment_test.go index 7df4fee1..08bfdced 100644 --- a/api_beta/test/api_work_reassignment_test.go +++ b/api_beta/test/api_work_reassignment_test.go @@ -39,8 +39,9 @@ func Test_api_beta_WorkReassignmentAPIService(t *testing.T) { t.Skip("skip test") // remove to run test var identityId string + var configType ConfigTypeEnum - httpRes, err := apiClient.WorkReassignmentAPI.DeleteReassignmentConfiguration(context.Background(), identityId).Execute() + httpRes, err := apiClient.WorkReassignmentAPI.DeleteReassignmentConfiguration(context.Background(), identityId, configType).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) diff --git a/api_v2024/README.md b/api_v2024/README.md index aa95d3bf..e4877ac3 100644 --- a/api_v2024/README.md +++ b/api_v2024/README.md @@ -681,7 +681,7 @@ Class | Method | HTTP request | Description *WorkItemsAPI* | [**SendWorkItemForward**](docs/WorkItemsAPI.md#sendworkitemforward) | **Post** /work-items/{id}/forward | Forward a Work Item *WorkItemsAPI* | [**SubmitAccountSelection**](docs/WorkItemsAPI.md#submitaccountselection) | **Post** /work-items/{id}/submit-account-selection | Submit Account Selections *WorkReassignmentAPI* | [**CreateReassignmentConfiguration**](docs/WorkReassignmentAPI.md#createreassignmentconfiguration) | **Post** /reassignment-configurations | Create a Reassignment Configuration -*WorkReassignmentAPI* | [**DeleteReassignmentConfiguration**](docs/WorkReassignmentAPI.md#deletereassignmentconfiguration) | **Delete** /reassignment-configurations/{identityId} | Delete Reassignment Configuration +*WorkReassignmentAPI* | [**DeleteReassignmentConfiguration**](docs/WorkReassignmentAPI.md#deletereassignmentconfiguration) | **Delete** /reassignment-configurations/{identityId}/{configType} | Delete Reassignment Configuration *WorkReassignmentAPI* | [**GetEvaluateReassignmentConfiguration**](docs/WorkReassignmentAPI.md#getevaluatereassignmentconfiguration) | **Get** /reassignment-configurations/{identityId}/evaluate/{configType} | Evaluate Reassignment Configuration *WorkReassignmentAPI* | [**GetReassignmentConfigTypes**](docs/WorkReassignmentAPI.md#getreassignmentconfigtypes) | **Get** /reassignment-configurations/types | List Reassignment Config Types *WorkReassignmentAPI* | [**GetReassignmentConfiguration**](docs/WorkReassignmentAPI.md#getreassignmentconfiguration) | **Get** /reassignment-configurations/{identityId} | Get Reassignment Configuration diff --git a/api_v2024/api/openapi.yaml b/api_v2024/api/openapi.yaml index 445c19af..2610961e 100644 --- a/api_v2024/api/openapi.yaml +++ b/api_v2024/api/openapi.yaml @@ -54544,12 +54544,12 @@ paths: tags: - Work Reassignment /reassignment-configurations/{identityId}: - delete: - description: Deletes all Reassignment Configuration for the specified identity - operationId: deleteReassignmentConfiguration + get: + description: Gets the Reassignment Configuration for an identity. + operationId: getReassignmentConfiguration parameters: - description: unique identity id - example: 2c91808781a71ddb0181b9090b5c504e + example: 2c91808781a71ddb0181b9090b5c504f in: path name: identityId required: true @@ -54564,8 +54564,12 @@ paths: default: "true" type: string responses: - "204": - description: Reassignment Configuration deleted + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ConfigurationResponse' + description: Reassignment Configuration for an identity "400": content: application/json: @@ -54597,6 +54601,24 @@ paths: $ref: '#/components/schemas/ErrorResponseDto' description: "Forbidden - Returned if the user you are running as, doesn't\ \ have access to this end-point." + "404": + content: + application/json: + examples: + "404": + summary: An example of a 404 response object + value: + detailCode: 404 Not found + trackingId: b21b1f7ce4da4d639f2c62a57171b427 + messages: + - locale: en-US + localeOrigin: DEFAULT + text: The server did not find a current representation for the + target resource. + schema: + $ref: '#/components/schemas/ErrorResponseDto' + description: Not Found - returned if the request URL refers to a resource + or object that does not exist "429": content: application/json: @@ -54624,16 +54646,17 @@ paths: error. security: - userAuth: - - idn:reassignment-configuration:delete - summary: Delete Reassignment Configuration + - idn:reassignment-configuration:read + summary: Get Reassignment Configuration tags: - Work Reassignment - get: - description: Gets the Reassignment Configuration for an identity. - operationId: getReassignmentConfiguration + put: + description: Replaces existing Reassignment configuration for an identity with + the newly provided configuration. + operationId: putReassignmentConfig parameters: - description: unique identity id - example: 2c91808781a71ddb0181b9090b5c504f + example: 2c91808781a71ddb0181b9090b5c504e in: path name: identityId required: true @@ -54647,13 +54670,19 @@ paths: schema: default: "true" type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ConfigurationItemRequest' + required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/ConfigurationResponse' - description: Reassignment Configuration for an identity + $ref: '#/components/schemas/ConfigurationItemResponse' + description: Reassignment Configuration updated "400": content: application/json: @@ -54685,24 +54714,6 @@ paths: $ref: '#/components/schemas/ErrorResponseDto' description: "Forbidden - Returned if the user you are running as, doesn't\ \ have access to this end-point." - "404": - content: - application/json: - examples: - "404": - summary: An example of a 404 response object - value: - detailCode: 404 Not found - trackingId: b21b1f7ce4da4d639f2c62a57171b427 - messages: - - locale: en-US - localeOrigin: DEFAULT - text: The server did not find a current representation for the - target resource. - schema: - $ref: '#/components/schemas/ErrorResponseDto' - description: Not Found - returned if the request URL refers to a resource - or object that does not exist "429": content: application/json: @@ -54730,14 +54741,14 @@ paths: error. security: - userAuth: - - idn:reassignment-configuration:read - summary: Get Reassignment Configuration + - idn:reassignment-configuration:update + summary: Update Reassignment Configuration tags: - Work Reassignment - put: - description: Replaces existing Reassignment configuration for an identity with - the newly provided configuration. - operationId: putReassignmentConfig + /reassignment-configurations/{identityId}/{configType}: + delete: + description: Deletes a single reassignment configuration for the specified identity + operationId: deleteReassignmentConfiguration parameters: - description: unique identity id example: 2c91808781a71ddb0181b9090b5c504e @@ -54746,6 +54757,11 @@ paths: required: true schema: type: string + - in: path + name: configType + required: true + schema: + $ref: '#/components/schemas/ConfigTypeEnum' - description: Use this header to enable this experimental API. example: true in: header @@ -54754,19 +54770,9 @@ paths: schema: default: "true" type: string - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ConfigurationItemRequest' - required: true responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/ConfigurationItemResponse' - description: Reassignment Configuration updated + "204": + description: Reassignment Configuration deleted "400": content: application/json: @@ -54825,8 +54831,8 @@ paths: error. security: - userAuth: - - idn:reassignment-configuration:update - summary: Update Reassignment Configuration + - idn:reassignment-configuration:delete + summary: Delete Reassignment Configuration tags: - Work Reassignment /reassignment-configurations/{identityId}/evaluate/{configType}: diff --git a/api_v2024/api_work_reassignment.go b/api_v2024/api_work_reassignment.go index 92f550b2..bd791dfb 100644 --- a/api_v2024/api_work_reassignment.go +++ b/api_v2024/api_work_reassignment.go @@ -214,6 +214,7 @@ type ApiDeleteReassignmentConfigurationRequest struct { ctx context.Context ApiService *WorkReassignmentAPIService identityId string + configType ConfigTypeEnum xSailPointExperimental *string } @@ -230,17 +231,19 @@ func (r ApiDeleteReassignmentConfigurationRequest) Execute() (*http.Response, er /* DeleteReassignmentConfiguration Delete Reassignment Configuration -Deletes all Reassignment Configuration for the specified identity +Deletes a single reassignment configuration for the specified identity @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param identityId unique identity id + @param configType @return ApiDeleteReassignmentConfigurationRequest */ -func (a *WorkReassignmentAPIService) DeleteReassignmentConfiguration(ctx context.Context, identityId string) ApiDeleteReassignmentConfigurationRequest { +func (a *WorkReassignmentAPIService) DeleteReassignmentConfiguration(ctx context.Context, identityId string, configType ConfigTypeEnum) ApiDeleteReassignmentConfigurationRequest { return ApiDeleteReassignmentConfigurationRequest{ ApiService: a, ctx: ctx, identityId: identityId, + configType: configType, } } @@ -257,8 +260,9 @@ func (a *WorkReassignmentAPIService) DeleteReassignmentConfigurationExecute(r Ap return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/reassignment-configurations/{identityId}" + localVarPath := localBasePath + "/reassignment-configurations/{identityId}/{configType}" localVarPath = strings.Replace(localVarPath, "{"+"identityId"+"}", url.PathEscape(parameterValueToString(r.identityId, "identityId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"configType"+"}", url.PathEscape(parameterValueToString(r.configType, "configType")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} diff --git a/api_v2024/docs/WorkReassignmentAPI.md b/api_v2024/docs/WorkReassignmentAPI.md index 2230976d..eb363233 100644 --- a/api_v2024/docs/WorkReassignmentAPI.md +++ b/api_v2024/docs/WorkReassignmentAPI.md @@ -5,7 +5,7 @@ All URIs are relative to *https://sailpoint.api.identitynow.com/v2024* Method | HTTP request | Description ------------- | ------------- | ------------- [**CreateReassignmentConfiguration**](WorkReassignmentAPI.md#CreateReassignmentConfiguration) | **Post** /reassignment-configurations | Create a Reassignment Configuration -[**DeleteReassignmentConfiguration**](WorkReassignmentAPI.md#DeleteReassignmentConfiguration) | **Delete** /reassignment-configurations/{identityId} | Delete Reassignment Configuration +[**DeleteReassignmentConfiguration**](WorkReassignmentAPI.md#DeleteReassignmentConfiguration) | **Delete** /reassignment-configurations/{identityId}/{configType} | Delete Reassignment Configuration [**GetEvaluateReassignmentConfiguration**](WorkReassignmentAPI.md#GetEvaluateReassignmentConfiguration) | **Get** /reassignment-configurations/{identityId}/evaluate/{configType} | Evaluate Reassignment Configuration [**GetReassignmentConfigTypes**](WorkReassignmentAPI.md#GetReassignmentConfigTypes) | **Get** /reassignment-configurations/types | List Reassignment Config Types [**GetReassignmentConfiguration**](WorkReassignmentAPI.md#GetReassignmentConfiguration) | **Get** /reassignment-configurations/{identityId} | Get Reassignment Configuration @@ -86,7 +86,7 @@ Name | Type | Description | Notes ## DeleteReassignmentConfiguration -> DeleteReassignmentConfiguration(ctx, identityId).XSailPointExperimental(xSailPointExperimental).Execute() +> DeleteReassignmentConfiguration(ctx, identityId, configType).XSailPointExperimental(xSailPointExperimental).Execute() Delete Reassignment Configuration @@ -106,11 +106,12 @@ import ( func main() { identityId := "2c91808781a71ddb0181b9090b5c504e" // string | unique identity id + configType := openapiclient.ConfigTypeEnum("ACCESS_REQUESTS") // ConfigTypeEnum | xSailPointExperimental := "true" // string | Use this header to enable this experimental API. (default to "true") configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.WorkReassignmentAPI.DeleteReassignmentConfiguration(context.Background(), identityId).XSailPointExperimental(xSailPointExperimental).Execute() + r, err := apiClient.WorkReassignmentAPI.DeleteReassignmentConfiguration(context.Background(), identityId, configType).XSailPointExperimental(xSailPointExperimental).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `WorkReassignmentAPI.DeleteReassignmentConfiguration``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -125,6 +126,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. **identityId** | **string** | unique identity id | +**configType** | [**ConfigTypeEnum**](.md) | | ### Other Parameters @@ -134,6 +136,7 @@ Other parameters are passed through a pointer to a apiDeleteReassignmentConfigur Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **xSailPointExperimental** | **string** | Use this header to enable this experimental API. | [default to "true"] ### Return type diff --git a/api_v2024/test/api_work_reassignment_test.go b/api_v2024/test/api_work_reassignment_test.go index 0e88175f..db6d0132 100644 --- a/api_v2024/test/api_work_reassignment_test.go +++ b/api_v2024/test/api_work_reassignment_test.go @@ -39,8 +39,9 @@ func Test_api_v2024_WorkReassignmentAPIService(t *testing.T) { t.Skip("skip test") // remove to run test var identityId string + var configType ConfigTypeEnum - httpRes, err := apiClient.WorkReassignmentAPI.DeleteReassignmentConfiguration(context.Background(), identityId).Execute() + httpRes, err := apiClient.WorkReassignmentAPI.DeleteReassignmentConfiguration(context.Background(), identityId, configType).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode)