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!