<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
System Status
Announcements
Announcements
Search
Search
Select Language
0D54z00006vz9LpCAIOkta Classic EngineAdministrationAnswered2024-04-30T09:14:01.000Z2021-04-23T12:25:53.000Z2021-04-27T15:53:22.000Z

5l5m0 (5l5m0) asked a question.

Email templates via Terraform

Hi,

I recently set up a Terraform configuration to maintain my Okta tenants.

 

I am facing a API validation failure I can not resolve because I do not understand what is API telling me.

 

Thats my resource setup

```

resource "okta_template_email" "activationMail" {

type = "email.userActivation"

translations {

language = "en"

subject = "Welcome"

template = DEFAULT_CONTENT_PROVIDED_BY_OKTA

}

}

```

I left the huge string for the content out because it is taken from the default activation mail. Even this does not pass API validation. The error message is

```

Error: failed to create email template: The API returned an error: Api validation failed: customTemplate. Causes: errorSummary: Property ''{0}'' not found

```

 

What's going wrong here, how to troubles


  • fu1ko (fu1ko)

    Hello,

     

    My name is Erick and I am a tier 2 engineer.

     

    Unfortunately, customizing email templates is currently possible only through the UI.

     

    Regards,

    Expand Post
This question is closed.
Loading
Email templates via Terraform
Okta Support Agent (Beta)

Terms of Service

Hello! I'm the Okta Support Agent (Beta), your go-to resource for questions about Okta products. Please remember for your security and privacy, do not share any Personally Identifiable Information (PII) such as passwords, IP addresses, or other details with me.

Okta Privacy Policy and Terms of Service apply