Modify Integration's Custom Auth Data Action in Terraform

Hello,

I'm using the Genesys Cloud Terraform Provider to create a Custom Web Service Data Actions Integration with a User Defined (OAuth) credential type, however I can't find a way to then modify the Custom Auth Data Action that the Integration automatically creates. Is there a way to modify this Integration's Auth Data Action from within Terraform?

This is the Terraform that creates the Credentials and Integration:

resource "genesyscloud_integration_credential" "extrenal_api_data_action_integration_credentials" {
  name                 = "External API Credentials"
  credential_type_name = "userDefinedOAuth"
  fields = {
    loginUrl     = "https://test.test/oauth2/token"
    clientId     = "xx"
    clientSecret = "xx"
    scope        = "read:all"
  }
}

resource "genesyscloud_integration" "custom_integration" {
  intended_state   = "ENABLED"
  integration_type = "custom-rest-actions"
  config {
    name = "Custom Web Service Data Actions integration"
    # properties = jsonencode({})
    # advanced = jsonencode({})
    credentials = {
      basicAuth = genesyscloud_integration_credential.extrenal_api_data_action_integration_credentials.id
    }
  }
}

Specifically, I want to modify the Request Body Template of the Custom Auth Data Action to include the Scope credential field. I don't know if the two properties I've commented out (properties/advanced) might allow this?

Any help on this would be greatly appreciated!

1 Like

The action is not accessible via Terraform currently. Integrations Team is working to add it to Terraform. Only way to edit this custom auth action or any action at the moment is with the Admin UI.

Thank you, I look forward to a future update.

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.