Package com.okta.sdk.resource.api
Class TemplateApi
java.lang.Object
com.okta.sdk.resource.api.TemplateApi
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
           date="2024-09-23T16:19:57.008753975Z[Etc/UTC]",
           comments="Generator version: 7.8.0")
public class TemplateApi
extends Object
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptioncreateSmsTemplate(SmsTemplate smsTemplate) Create an SMS Template Creates a new custom SMS templatecreateSmsTemplate(SmsTemplate smsTemplate, Map<String, String> additionalHeaders) Create an SMS Template Creates a new custom SMS templatevoiddeleteSmsTemplate(String templateId) Delete an SMS Template Deletes an SMS templatevoiddeleteSmsTemplate(String templateId, Map<String, String> additionalHeaders) Delete an SMS Template Deletes an SMS templateprotected static com.fasterxml.jackson.databind.ObjectMappergetSmsTemplate(String templateId) Retrieve an SMS Template Retrieves a specific template by `id`getSmsTemplate(String templateId, Map<String, String> additionalHeaders) Retrieve an SMS Template Retrieves a specific template by `id`listSmsTemplates(SmsTemplateType templateType) List all SMS Templates Lists all custom SMS templates.listSmsTemplates(SmsTemplateType templateType, Map<String, String> additionalHeaders) List all SMS Templates Lists all custom SMS templates.replaceSmsTemplate(String templateId, SmsTemplate smsTemplate) Replace an SMS Template Replaces the SMS Template > **Notes:** You can't update the default SMS Template.replaceSmsTemplate(String templateId, SmsTemplate smsTemplate, Map<String, String> additionalHeaders) Replace an SMS Template Replaces the SMS Template > **Notes:** You can't update the default SMS Template.voidsetApiClient(ApiClient apiClient) updateSmsTemplate(String templateId, SmsTemplate smsTemplate) Update an SMS Template Updates only some of the SMS Template properties: * All properties within the custom SMS Template that have values are updated.updateSmsTemplate(String templateId, SmsTemplate smsTemplate, Map<String, String> additionalHeaders) Update an SMS Template Updates only some of the SMS Template properties: * All properties within the custom SMS Template that have values are updated.
- 
Constructor Details- 
TemplateApipublic TemplateApi()
- 
TemplateApi
 
- 
- 
Method Details- 
getApiClient
- 
setApiClient
- 
createSmsTemplateCreate an SMS Template Creates a new custom SMS template- Parameters:
- smsTemplate- (required)
- Returns:
- SmsTemplate
- Throws:
- ApiException- if fails to make API call
 
- 
createSmsTemplatepublic SmsTemplate createSmsTemplate(SmsTemplate smsTemplate, Map<String, String> additionalHeaders) throws ApiExceptionCreate an SMS Template Creates a new custom SMS template- Parameters:
- smsTemplate- (required)
- additionalHeaders- additionalHeaders for this call
- Returns:
- SmsTemplate
- Throws:
- ApiException- if fails to make API call
 
- 
deleteSmsTemplateDelete an SMS Template Deletes an SMS template- Parameters:
- templateId- `id` of the Template (required)
- Throws:
- ApiException- if fails to make API call
 
- 
deleteSmsTemplatepublic void deleteSmsTemplate(String templateId, Map<String, String> additionalHeaders) throws ApiExceptionDelete an SMS Template Deletes an SMS template- Parameters:
- templateId- `id` of the Template (required)
- additionalHeaders- additionalHeaders for this call
- Throws:
- ApiException- if fails to make API call
 
- 
getSmsTemplateRetrieve an SMS Template Retrieves a specific template by `id`- Parameters:
- templateId- `id` of the Template (required)
- Returns:
- SmsTemplate
- Throws:
- ApiException- if fails to make API call
 
- 
getSmsTemplatepublic SmsTemplate getSmsTemplate(String templateId, Map<String, String> additionalHeaders) throws ApiExceptionRetrieve an SMS Template Retrieves a specific template by `id`- Parameters:
- templateId- `id` of the Template (required)
- additionalHeaders- additionalHeaders for this call
- Returns:
- SmsTemplate
- Throws:
- ApiException- if fails to make API call
 
- 
listSmsTemplatesList all SMS Templates Lists all custom SMS templates. A subset of templates can be returned that match a template type.- Parameters:
- templateType- (optional)
- Returns:
- List<SmsTemplate>
- Throws:
- ApiException- if fails to make API call
 
- 
listSmsTemplatespublic List<SmsTemplate> listSmsTemplates(SmsTemplateType templateType, Map<String, String> additionalHeaders) throws ApiExceptionList all SMS Templates Lists all custom SMS templates. A subset of templates can be returned that match a template type.- Parameters:
- templateType- (optional)
- additionalHeaders- additionalHeaders for this call
- Returns:
- List<SmsTemplate>
- Throws:
- ApiException- if fails to make API call
 
- 
replaceSmsTemplatepublic SmsTemplate replaceSmsTemplate(String templateId, SmsTemplate smsTemplate) throws ApiException Replace an SMS Template Replaces the SMS Template > **Notes:** You can't update the default SMS Template.- Parameters:
- templateId- `id` of the Template (required)
- smsTemplate- (required)
- Returns:
- SmsTemplate
- Throws:
- ApiException- if fails to make API call
 
- 
replaceSmsTemplatepublic SmsTemplate replaceSmsTemplate(String templateId, SmsTemplate smsTemplate, Map<String, String> additionalHeaders) throws ApiExceptionReplace an SMS Template Replaces the SMS Template > **Notes:** You can't update the default SMS Template.- Parameters:
- templateId- `id` of the Template (required)
- smsTemplate- (required)
- additionalHeaders- additionalHeaders for this call
- Returns:
- SmsTemplate
- Throws:
- ApiException- if fails to make API call
 
- 
updateSmsTemplatepublic SmsTemplate updateSmsTemplate(String templateId, SmsTemplate smsTemplate) throws ApiException Update an SMS Template Updates only some of the SMS Template properties: * All properties within the custom SMS Template that have values are updated. * Any translation that doesn't exist is added. * Any translation with a null or empty value is removed. * Any translation with non-empty/null value is updated.- Parameters:
- templateId- `id` of the Template (required)
- smsTemplate- (required)
- Returns:
- SmsTemplate
- Throws:
- ApiException- if fails to make API call
 
- 
updateSmsTemplatepublic SmsTemplate updateSmsTemplate(String templateId, SmsTemplate smsTemplate, Map<String, String> additionalHeaders) throws ApiExceptionUpdate an SMS Template Updates only some of the SMS Template properties: * All properties within the custom SMS Template that have values are updated. * Any translation that doesn't exist is added. * Any translation with a null or empty value is removed. * Any translation with non-empty/null value is updated.- Parameters:
- templateId- `id` of the Template (required)
- smsTemplate- (required)
- additionalHeaders- additionalHeaders for this call
- Returns:
- SmsTemplate
- Throws:
- ApiException- if fails to make API call
 
- 
getObjectMapperprotected static com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
 
-