Skip to content

DO NOT MERGE: feat: add templates and brands resource - #2891

Open
pranav-okta wants to merge 4 commits into
codegen-migration-phase-2from
new-template-resources
Open

DO NOT MERGE: feat: add templates and brands resource#2891
pranav-okta wants to merge 4 commits into
codegen-migration-phase-2from
new-template-resources

Conversation

@pranav-okta

@pranav-okta pranav-okta commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

DO NOT MERGE - This is a resource for an EA API

JIRA: https://oktainc.atlassian.net/browse/OKTA-1224208

  • okta_templates_sm — SMS template CRUD
  • okta_brands_templates_email_customization — email customization with composite ID (brand_id/template_name/id)
  • okta_brands_templates_email_setting — singleton email setting (PUT-only, delete noop)

@pranav-okta pranav-okta self-assigned this Jul 17, 2026
@github-actions
github-actions Bot requested a review from dhiwakar-okta July 17, 2026 08:38

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is it Sm everywhere, including the filename if this is for SMS ?

Description: "Human-readable name of the Template",
Optional: true,
},
"template": schema.StringAttribute{

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please fix this description

body.SetName(plan.Name.ValueString())
body.SetTemplate(plan.Template.ValueString())
body.SetType(plan.Type.ValueString())
createReq = createReq.SmsTemplate(*body)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about body.SetTranslations(...) ?
If it is a genuine issue, please investigate why this was missed .

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where is the docs/**/*.md file for this ?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where is the docs/**/*.md file for this ?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where is the docs/**/*.md file for this ?

Optional: true,
},
"language": schema.StringAttribute{
Description: "The language specified as an [IETF BCP 47 language tag](https://datatracker.",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please fix the description

@dhiwakar-okta dhiwakar-okta Aug 3, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like this is still EA @pranav-okta
/api/v1/brands/{brandId}/templates/email/{templateName}/customizations
Please remove this resource file along with the corresponding tests from this PR for the time being.

Update the PR's description too.

@dhiwakar-okta dhiwakar-okta left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please review my comments.

@pranav-okta
pranav-okta changed the base branch from master to codegen-migration-phase-2 August 3, 2026 11:21
- Add missing docs for okta_brands_templates_email_customization
resource
- Add missing example for okta_brands_templates_email_customization
- Fix okta_template_sms: correct template/type to Optional, replace
nested block translations with Map of String
- Fix okta_email_template_settings: correct recipients to Optional
@pranav-okta
pranav-okta force-pushed the new-template-resources branch from 024d05e to 49be7e3 Compare August 6, 2026 06:21
@pranav-okta pranav-okta changed the title feat: add templates and brands resource DO NOT MERGE: feat: add templates and brands resource Aug 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants