# Updates a WhatsApp template.

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "version": "v1",
    "title": "Channels API"
  },
  "paths": {
    "/channels/v1/accounts/{accountId}/whatsapp/{channelRequestId}/templates/{templateId}": {
      "put": {
        "tags": [
          "WhatsApp"
        ],
        "summary": "Updates a WhatsApp template.",
        "operationId": "WhatsApp_UpdateTemplateAsync",
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "description": "The account identifier.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "channelRequestId",
            "in": "path",
            "description": "The channel request identifier.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "templateId",
            "in": "path",
            "description": "The template identifier.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CM.Platform.Channels.Models.ChannelTypes.WhatsApp.ApiWhatsAppTemplateUpdateRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CM.Platform.Channels.Models.ChannelTypes.WhatsApp.ApiWhatsAppTemplateUpdateRequest"
              }
            },
            "text/xml": {
              "schema": {
                "$ref": "#/components/schemas/CM.Platform.Channels.Models.ChannelTypes.WhatsApp.ApiWhatsAppTemplateUpdateRequest"
              }
            },
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/CM.Platform.Channels.Models.ChannelTypes.WhatsApp.ApiWhatsAppTemplateUpdateRequest"
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "$ref": "#/components/schemas/CM.Platform.Channels.Models.ChannelTypes.WhatsApp.ApiWhatsAppTemplateUpdateRequest"
              }
            }
          },
          "description": "The template update.",
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CM.Platform.Channels.Models.ChannelTypes.WhatsApp.ApiWhatsAppTemplateResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/CM.Platform.Channels.Models.ChannelTypes.WhatsApp.ApiWhatsAppTemplateResponse"
                }
              },
              "text/xml": {
                "schema": {
                  "$ref": "#/components/schemas/CM.Platform.Channels.Models.ChannelTypes.WhatsApp.ApiWhatsAppTemplateResponse"
                }
              },
              "multipart/form-data": {
                "schema": {
                  "$ref": "#/components/schemas/CM.Platform.Channels.Models.ChannelTypes.WhatsApp.ApiWhatsAppTemplateResponse"
                }
              }
            }
          }
        }
      }
    }
  },
  "servers": [
    {
      "url": "https://api.cm.com"
    }
  ],
  "components": {
    "schemas": {
      "CM.Platform.Channels.Models.ChannelTypes.WhatsApp.ApiWhatsAppTemplateHeaderSettingsResponse": {
        "type": "object",
        "properties": {
          "isGeneratedLayout": {
            "type": "boolean"
          },
          "generatedLayoutExampleValue": {
            "type": "string"
          },
          "format": {
            "enum": [
              "none",
              "text",
              "image",
              "document",
              "video"
            ],
            "type": "string"
          },
          "replacementFields": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CM.Platform.Channels.Models.ChannelTypes.WhatsApp.ApiWhatsAppTemplateReplacementField"
            }
          }
        }
      },
      "CM.Platform.Channels.Models.ChannelTypes.WhatsApp.ApiWhatsAppTemplateSettingsResponse": {
        "type": "object",
        "properties": {
          "isGeneratedLayout": {
            "type": "boolean"
          },
          "replacementFields": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CM.Platform.Channels.Models.ChannelTypes.WhatsApp.ApiWhatsAppTemplateReplacementField"
            }
          }
        }
      },
      "CM.Platform.Channels.Models.ChannelTypes.WhatsApp.ApiWhatsAppTemplateLanguageStatus": {
        "required": [
          "total",
          "active",
          "languageCategoryOverrideActive"
        ],
        "type": "object",
        "properties": {
          "total": {
            "format": "int32",
            "type": "integer"
          },
          "active": {
            "format": "int32",
            "type": "integer"
          },
          "languageCategoryOverrideActive": {
            "type": "boolean"
          }
        }
      },
      "CM.Platform.Channels.Models.ChannelTypes.WhatsApp.ApiWhatsAppTemplateLanguageId": {
        "required": [
          "channelsId"
        ],
        "type": "object",
        "properties": {
          "channelsId": {
            "format": "uuid",
            "type": "string",
            "example": "00000000-0000-0000-0000-000000000000"
          },
          "facebookTemplateID": {
            "type": "string"
          }
        }
      },
      "CM.Platform.Channels.Models.ChannelTypes.WhatsApp.ApiWhatsAppTemplateLanguageResponse": {
        "required": [
          "id",
          "category",
          "name",
          "header",
          "body",
          "content",
          "footer",
          "isActive",
          "isIncomplete",
          "isPending",
          "isValidationRequested",
          "createdOnUtc"
        ],
        "type": "object",
        "properties": {
          "id": {
            "format": "uuid",
            "type": "string",
            "example": "00000000-0000-0000-0000-000000000000"
          },
          "facebookTemplateID": {
            "type": "string"
          },
          "category": {
            "$ref": "#/components/schemas/CM.Platform.Channels.Models.ChannelTypes.WhatsApp.ApiWhatsAppTemplateLanguageCategory"
          },
          "name": {
            "type": "string"
          },
          "header": {
            "$ref": "#/components/schemas/CM.Platform.Channels.Models.ChannelTypes.WhatsApp.ApiWhatsAppTemplateLanguageHeaderLayoutResponse"
          },
          "headerContent": {
            "type": "string"
          },
          "body": {
            "$ref": "#/components/schemas/CM.Platform.Channels.Models.ChannelTypes.WhatsApp.ApiWhatsAppTemplateLanguageBodyLayoutResponse"
          },
          "content": {
            "type": "string"
          },
          "footer": {
            "$ref": "#/components/schemas/CM.Platform.Channels.Models.ChannelTypes.WhatsApp.ApiWhatsAppTemplateLanguageFooterLayoutResponse"
          },
          "footerContent": {
            "type": "string"
          },
          "interactiveSettings": {
            "$ref": "#/components/schemas/CM.Platform.Channels.Models.ChannelTypes.WhatsApp.ApiWhatsAppTemplateLanguageInteractiveSettingsResponse"
          },
          "carouselLayoutSettings": {
            "$ref": "#/components/schemas/CM.Platform.Channels.Models.ChannelTypes.WhatsApp.ApiWhatsAppTemplateLanguageCarouselLayoutResponse"
          },
          "limitedTimeOffer": {
            "$ref": "#/components/schemas/CM.Platform.Channels.Models.ChannelTypes.WhatsApp.ApiWhatsAppTemplateLanguageLimitedTimeOfferLayoutResponse"
          },
          "messageSendTimeToLiveSeconds": {
            "format": "int32",
            "type": "integer"
          },
          "rejectionReason": {
            "type": "string"
          },
          "isActive": {
            "type": "boolean"
          },
          "isIncomplete": {
            "type": "boolean"
          },
          "isPending": {
            "type": "boolean"
          },
          "isValidationRequested": {
            "type": "boolean"
          },
          "rejectedOnUtc": {
            "format": "date-time",
            "type": "string"
          },
          "fulfilledOnUtc": {
            "format": "date-time",
            "type": "string"
          },
          "updatedOnUtc": {
            "format": "date-time",
            "type": "string"
          },
          "createdOnUtc": {
            "format": "date-time",
            "type": "string"
          },
          "metaCallbackHistory": {
            "$ref": "#/components/schemas/CM.Platform.Channels.Models.ChannelTypes.WhatsApp.ApiWhatsAppTemplateLanguageMetaCallbackHistory"
          },
          "entityStatus": {
            "enum": [
              "ACTIVE",
              "PENDING",
              "ELIGIBLE",
              "NOT_VALIDATED",
              "CUSTOMER_ACTION_REQUIRED",
              "EXPIRED",
              "REJECTED",
              "CANCELLED",
              "DELETED"
            ],
            "type": "string"
          }
        }
      },
      "CM.Platform.Channels.Models.ChannelTypes.WhatsApp.ApiWhatsAppTemplateReplacementField": {
        "type": "object",
        "properties": {
          "id": {
            "format": "uuid",
            "type": "string",
            "example": "00000000-0000-0000-0000-000000000000"
          },
          "index": {
            "format": "int32",
            "type": "integer"
          },
          "name": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "isGeneratedLayout": {
            "type": "boolean"
          },
          "generatedLayoutExampleValue": {
            "type": "string"
          }
        }
      },
      "CM.Platform.Channels.Models.ChannelTypes.WhatsApp.ApiWhatsAppTemplateLanguageCategory": {
        "required": [
          "id",
          "name",
          "metaOverride"
        ],
        "type": "object",
        "properties": {
          "id": {
            "format": "uuid",
            "type": "string",
            "example": "00000000-0000-0000-0000-000000000000"
          },
          "name": {
            "type": "string"
          },
          "metaOverride": {
            "type": "boolean"
          },
          "metaOverrideOnUtc": {
            "format": "date-time",
            "type": "string"
          }
        }
      },
      "CM.Platform.Channels.Models.ChannelTypes.WhatsApp.ApiWhatsAppTemplateLanguageHeaderLayoutResponse": {
        "type": "object",
        "properties": {
          "isGeneratedLayout": {
            "type": "boolean"
          },
          "generatedLayoutExampleValue": {
            "type": "string"
          },
          "content": {
            "type": "string"
          }
        }
      },
      "CM.Platform.Channels.Models.ChannelTypes.WhatsApp.ApiWhatsAppTemplateLanguageBodyLayoutResponse": {
        "type": "object",
        "properties": {
          "isGeneratedLayout": {
            "type": "boolean"
          },
          "generatedLayoutExampleValue": {
            "type": "string"
          },
          "content": {
            "type": "string"
          }
        }
      },
      "CM.Platform.Channels.Models.ChannelTypes.WhatsApp.ApiWhatsAppTemplateLanguageFooterLayoutResponse": {
        "type": "object",
        "properties": {
          "isGeneratedLayout": {
            "type": "boolean"
          },
          "generatedLayoutExampleValue": {
            "type": "string"
          },
          "content": {
            "type": "string"
          },
          "otpSettings": {
            "$ref": "#/components/schemas/CM.Platform.Channels.Models.ChannelTypes.WhatsApp.ApiWhatsAppTemplateLanguageFooterOtpSettings"
          }
        }
      },
      "CM.Platform.Channels.Models.ChannelTypes.WhatsApp.ApiWhatsAppTemplateLanguageInteractiveSettingsResponse": {
        "type": "object",
        "properties": {
          "buttons": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CM.Platform.Channels.Models.ChannelTypes.WhatsApp.ApiWhatsAppTemplateLanguageInteractiveButtonResponse"
            }
          },
          "isGeneratedLayout": {
            "type": "boolean"
          }
        }
      },
      "CM.Platform.Channels.Models.ChannelTypes.WhatsApp.ApiWhatsAppTemplateLanguageCarouselLayoutResponse": {
        "type": "object",
        "properties": {
          "carouselSettings": {
            "$ref": "#/components/schemas/CM.Platform.Channels.Models.ChannelTypes.WhatsApp.ApiWhatsAppTemplateLanguageCarouselSettingsResponse"
          },
          "cards": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CM.Platform.Channels.Models.ChannelTypes.WhatsApp.ApiWhatsAppTemplateLanguageCarouselCardResponse"
            }
          },
          "isGeneratedLayout": {
            "type": "boolean"
          },
          "generatedLayoutExampleValue": {
            "type": "string"
          }
        }
      },
      "CM.Platform.Channels.Models.ChannelTypes.WhatsApp.ApiWhatsAppTemplateLanguageLimitedTimeOfferLayoutResponse": {
        "type": "object",
        "properties": {
          "isGeneratedLayout": {
            "type": "boolean"
          },
          "generatedLayoutExampleValue": {
            "type": "string"
          },
          "content": {
            "type": "string"
          },
          "hasExpiration": {
            "type": "boolean"
          }
        }
      },
      "CM.Platform.Channels.Models.ChannelTypes.WhatsApp.ApiWhatsAppTemplateLanguageMetaCallbackHistory": {
        "required": [
          "languageId",
          "events"
        ],
        "type": "object",
        "properties": {
          "languageId": {
            "format": "uuid",
            "type": "string",
            "example": "00000000-0000-0000-0000-000000000000"
          },
          "events": {
            "type": "object",
            "additionalProperties": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CM.Platform.Channels.Models.External.MetaCallbacks.ApiMetaCallbackWhatsAppTemplateLanguageUpdate"
              }
            }
          }
        }
      },
      "CM.Platform.Channels.Models.ChannelTypes.WhatsApp.ApiWhatsAppTemplateLanguageFooterOtpSettings": {
        "type": "object",
        "properties": {
          "copyCodeExpirationMinutes": {
            "format": "int32",
            "type": "integer"
          }
        }
      },
      "CM.Platform.Channels.Models.ChannelTypes.WhatsApp.ApiWhatsAppTemplateLanguageInteractiveButtonResponse": {
        "type": "object",
        "properties": {
          "isGeneratedLayout": {
            "type": "boolean"
          },
          "generatedLayoutExampleValue": {
            "type": "string"
          },
          "generatedLayoutButtonText": {
            "type": "string"
          },
          "buttonText": {
            "type": "string"
          },
          "url": {
            "type": "string"
          },
          "phoneNumber": {
            "type": "string"
          },
          "otp": {
            "$ref": "#/components/schemas/CM.Platform.Channels.Models.ChannelTypes.WhatsApp.ApiWhatsAppTemplateLanguageInteractiveButtonOtpRequest"
          },
          "id": {
            "format": "uuid",
            "type": "string",
            "example": "00000000-0000-0000-0000-000000000000"
          },
          "type": {
            "enum": [
              "PHONENUMBER",
              "URL",
              "QUICK_REPLY",
              "OTP_COPY",
              "OTP_ONE_TAP",
              "CODE_COPY"
            ],
            "type": "string"
          },
          "urlType": {
            "enum": [
              "STATIC",
              "DYNAMIC"
            ],
            "type": "string"
          }
        }
      },
      "CM.Platform.Channels.Models.ChannelTypes.WhatsApp.ApiWhatsAppTemplateLanguageCarouselSettingsResponse": {
        "type": "object",
        "properties": {
          "header": {
            "$ref": "#/components/schemas/CM.Platform.Channels.Models.ChannelTypes.WhatsApp.ApiWhatsAppTemplateLanguageCarouselCardHeader"
          },
          "buttonSettings": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CM.Platform.Channels.Models.ChannelTypes.WhatsApp.ApiWhatsAppTemplateInteractiveSettingsButtonResponse"
            }
          }
        }
      },
      "CM.Platform.Channels.Models.ChannelTypes.WhatsApp.ApiWhatsAppTemplateLanguageCarouselCardResponse": {
        "type": "object",
        "properties": {
          "buttons": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CM.Platform.Channels.Models.ChannelTypes.WhatsApp.ApiWhatsAppTemplateLanguageInteractiveButtonResponse"
            }
          },
          "header": {
            "$ref": "#/components/schemas/CM.Platform.Channels.Models.ChannelTypes.WhatsApp.ApiWhatsAppTemplateLanguageCarouselCardHeader"
          },
          "body": {
            "$ref": "#/components/schemas/CM.Platform.Channels.Models.ChannelTypes.WhatsApp.ApiWhatsAppTemplateLanguageBodyLayoutRequest"
          }
        }
      },
      "CM.Platform.Channels.Models.External.MetaCallbacks.ApiMetaCallbackWhatsAppTemplateLanguageUpdate": {
        "type": "object",
        "properties": {
          "message_template_id": {
            "format": "int64",
            "type": "integer"
          },
          "message_template_name": {
            "type": "string"
          },
          "message_template_language": {
            "type": "string"
          },
          "previous_category": {
            "type": "string"
          },
          "new_category": {
            "type": "string"
          },
          "reason": {
            "type": "string"
          },
          "previous_quality_score": {
            "type": "string"
          },
          "new_quality_score": {
            "type": "string"
          },
          "disable_info": {
            "$ref": "#/components/schemas/CM.Platform.Channels.Models.External.MetaCallbacks.ApiMetaCallbackWhatsAppTemplateLanguageUpdateDisableInfo"
          },
          "other_info": {
            "$ref": "#/components/schemas/CM.Platform.Channels.Models.External.MetaCallbacks.ApiMetaCallbackWhatsAppTemplateLanguageUpdateOtherInfo"
          },
          "event": {
            "type": "string"
          },
          "requester": {
            "type": "string"
          }
        }
      },
      "CM.Platform.Channels.Models.ChannelTypes.WhatsApp.ApiWhatsAppTemplateLanguageInteractiveButtonOtpRequest": {
        "type": "object",
        "properties": {
          "oneTap": {
            "$ref": "#/components/schemas/CM.Platform.Channels.Models.ChannelTypes.WhatsApp.ApiWhatsAppTemplateLanguageInteractiveButtonOtpOneTap"
          }
        }
      },
      "CM.Platform.Channels.Models.ChannelTypes.WhatsApp.ApiWhatsAppTemplateLanguageCarouselCardHeader": {
        "type": "object",
        "properties": {
          "format": {
            "enum": [
              "IMAGE",
              "VIDEO"
            ],
            "type": "string"
          }
        }
      },
      "CM.Platform.Channels.Models.ChannelTypes.WhatsApp.ApiWhatsAppTemplateInteractiveSettingsButtonResponse": {
        "type": "object",
        "properties": {
          "isGeneratedLayout": {
            "type": "boolean"
          },
          "generatedLayoutExampleValue": {
            "type": "string"
          },
          "generatedLayoutButtonText": {
            "type": "string"
          },
          "id": {
            "format": "uuid",
            "type": "string",
            "example": "00000000-0000-0000-0000-000000000000"
          },
          "type": {
            "enum": [
              "PHONENUMBER",
              "URL",
              "QUICK_REPLY",
              "OTP_COPY",
              "OTP_ONE_TAP",
              "CODE_COPY"
            ],
            "type": "string"
          },
          "urlType": {
            "enum": [
              "STATIC",
              "DYNAMIC"
            ],
            "type": "string"
          }
        }
      },
      "CM.Platform.Channels.Models.ChannelTypes.WhatsApp.ApiWhatsAppTemplateLanguageBodyLayoutRequest": {
        "type": "object",
        "properties": {
          "content": {
            "type": "string"
          }
        }
      },
      "CM.Platform.Channels.Models.External.MetaCallbacks.ApiMetaCallbackWhatsAppTemplateLanguageUpdateDisableInfo": {
        "type": "object",
        "properties": {
          "disable_date": {
            "type": "string"
          }
        }
      },
      "CM.Platform.Channels.Models.External.MetaCallbacks.ApiMetaCallbackWhatsAppTemplateLanguageUpdateOtherInfo": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string"
          },
          "description": {
            "type": "string"
          }
        }
      },
      "CM.Platform.Channels.Models.ChannelTypes.WhatsApp.ApiWhatsAppTemplateLanguageInteractiveButtonOtpOneTap": {
        "type": "object",
        "properties": {
          "autofillText": {
            "type": "string"
          },
          "supportedApps": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CM.Platform.Channels.Models.ChannelTypes.WhatsApp.ApiWhatsAppTemplateLanguageInteractiveButtonOtpOneTapSupportedApps"
            }
          }
        }
      },
      "CM.Platform.Channels.Models.ChannelTypes.WhatsApp.ApiWhatsAppTemplateLanguageInteractiveButtonOtpOneTapSupportedApps": {
        "type": "object",
        "properties": {
          "packageName": {
            "type": "string"
          },
          "signatureHash": {
            "type": "string"
          }
        }
      },
      "CM.Platform.Channels.Models.ChannelTypes.WhatsApp.ApiWhatsAppTemplateInteractiveSettingsResponse": {
        "type": "object",
        "properties": {
          "buttonGrouping": {
            "type": "object",
            "properties": {
              "QUICK_REPLY": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/CM.Platform.Channels.Models.ChannelTypes.WhatsApp.ApiWhatsAppTemplateInteractiveSettingsButtonResponse"
                }
              },
              "CALL_TO_ACTION": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/CM.Platform.Channels.Models.ChannelTypes.WhatsApp.ApiWhatsAppTemplateInteractiveSettingsButtonResponse"
                }
              },
              "OTHER": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/CM.Platform.Channels.Models.ChannelTypes.WhatsApp.ApiWhatsAppTemplateInteractiveSettingsButtonResponse"
                }
              }
            }
          },
          "isGeneratedLayout": {
            "type": "boolean"
          }
        }
      },
      "CM.Platform.Channels.Models.ChannelTypes.WhatsApp.ApiWhatsAppTemplateMetaCallbackHistory": {
        "required": [
          "templateId",
          "events"
        ],
        "type": "object",
        "properties": {
          "templateId": {
            "format": "uuid",
            "type": "string",
            "example": "00000000-0000-0000-0000-000000000000"
          },
          "events": {
            "type": "object",
            "additionalProperties": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CM.Platform.Channels.Models.External.MetaCallbacks.ApiMetaCallbackWhatsAppTemplateLanguageUpdate"
              }
            }
          }
        }
      },
      "CM.Platform.Channels.Models.ChannelTypes.WhatsApp.ApiWhatsAppTemplateResponse": {
        "required": [
          "id",
          "accountId",
          "channelId",
          "templateCategoryId",
          "enabledLanguages",
          "languageIds",
          "isActive",
          "isIncomplete",
          "isPending",
          "isValidationRequested",
          "createdOnUtc"
        ],
        "type": "object",
        "properties": {
          "id": {
            "format": "uuid",
            "type": "string",
            "example": "00000000-0000-0000-0000-000000000000"
          },
          "accountId": {
            "format": "uuid",
            "type": "string",
            "example": "00000000-0000-0000-0000-000000000000"
          },
          "channelId": {
            "format": "uuid",
            "type": "string",
            "example": "00000000-0000-0000-0000-000000000000"
          },
          "facebookNamespaceId": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "templateCategoryId": {
            "format": "uuid",
            "type": "string",
            "example": "00000000-0000-0000-0000-000000000000"
          },
          "category": {
            "type": "string"
          },
          "generatedLayout": {
            "enum": [
              "AUTHENTICATION_OTP_COPY",
              "AUTHENTICATION_OTP_ONE_TAP",
              "MARKETING_CAROUSEL",
              "MARKETING_COUPONS",
              "MARKETING_LIMITED_TIME_OFFER",
              "UTILITY_CAROUSEL"
            ],
            "type": "string"
          },
          "facebookName": {
            "type": "string"
          },
          "enabledLanguages": {
            "type": "array",
            "items": {
              "format": "uuid",
              "type": "string",
              "example": "00000000-0000-0000-0000-000000000000"
            }
          },
          "assistedMode": {
            "type": "boolean"
          },
          "interactiveSettings": {
            "$ref": "#/components/schemas/CM.Platform.Channels.Models.ChannelTypes.WhatsApp.ApiWhatsAppTemplateInteractiveSettingsResponse"
          },
          "headerSettings": {
            "$ref": "#/components/schemas/CM.Platform.Channels.Models.ChannelTypes.WhatsApp.ApiWhatsAppTemplateHeaderSettingsResponse"
          },
          "rejectionReason": {
            "type": "string"
          },
          "settings": {
            "$ref": "#/components/schemas/CM.Platform.Channels.Models.ChannelTypes.WhatsApp.ApiWhatsAppTemplateSettingsResponse"
          },
          "languagesStatus": {
            "$ref": "#/components/schemas/CM.Platform.Channels.Models.ChannelTypes.WhatsApp.ApiWhatsAppTemplateLanguageStatus"
          },
          "languageIds": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CM.Platform.Channels.Models.ChannelTypes.WhatsApp.ApiWhatsAppTemplateLanguageId"
            }
          },
          "languages": {
            "type": "object",
            "additionalProperties": {
              "$ref": "#/components/schemas/CM.Platform.Channels.Models.ChannelTypes.WhatsApp.ApiWhatsAppTemplateLanguageResponse"
            }
          },
          "isActive": {
            "type": "boolean"
          },
          "isIncomplete": {
            "type": "boolean"
          },
          "isPending": {
            "type": "boolean"
          },
          "isValidationRequested": {
            "type": "boolean"
          },
          "rejectedOnUtc": {
            "format": "date-time",
            "type": "string"
          },
          "cancelledOnUtc": {
            "format": "date-time",
            "type": "string"
          },
          "deletedOnUtc": {
            "format": "date-time",
            "type": "string"
          },
          "fulfilledOnUtc": {
            "format": "date-time",
            "type": "string"
          },
          "updatedOnUtc": {
            "format": "date-time",
            "type": "string"
          },
          "createdOnUtc": {
            "format": "date-time",
            "type": "string"
          },
          "metaCallbackHistory": {
            "$ref": "#/components/schemas/CM.Platform.Channels.Models.ChannelTypes.WhatsApp.ApiWhatsAppTemplateMetaCallbackHistory"
          },
          "entityStatus": {
            "enum": [
              "ACTIVE",
              "PENDING",
              "ELIGIBLE",
              "NOT_VALIDATED",
              "CUSTOMER_ACTION_REQUIRED",
              "EXPIRED",
              "REJECTED",
              "CANCELLED",
              "DELETED"
            ],
            "type": "string"
          }
        }
      },
      "CM.Platform.Channels.Models.ChannelTypes.WhatsApp.ApiWhatsAppTemplateUpdateRequest": {
        "required": [
          "enabledLanguages"
        ],
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "generatedLayout": {
            "enum": [
              "AUTHENTICATION_OTP_COPY",
              "AUTHENTICATION_OTP_ONE_TAP",
              "MARKETING_CAROUSEL",
              "MARKETING_COUPONS",
              "MARKETING_LIMITED_TIME_OFFER",
              "UTILITY_CAROUSEL"
            ],
            "type": "string"
          },
          "templateCategoryId": {
            "format": "uuid",
            "type": "string",
            "example": "00000000-0000-0000-0000-000000000000"
          },
          "enabledLanguages": {
            "type": "array",
            "items": {
              "format": "uuid",
              "type": "string",
              "example": "00000000-0000-0000-0000-000000000000"
            }
          },
          "assistedMode": {
            "type": "boolean"
          },
          "languages": {
            "type": "object",
            "additionalProperties": {
              "$ref": "#/components/schemas/CM.Platform.Channels.Models.ChannelTypes.WhatsApp.ApiWhatsAppTemplateLanguageRequest"
            }
          }
        }
      },
      "CM.Platform.Channels.Models.ChannelTypes.WhatsApp.ApiWhatsAppTemplateLanguageRequest": {
        "required": [
          "header",
          "body",
          "content",
          "footer"
        ],
        "type": "object",
        "properties": {
          "header": {
            "$ref": "#/components/schemas/CM.Platform.Channels.Models.ChannelTypes.WhatsApp.ApiWhatsAppTemplateLanguageHeaderLayoutRequest"
          },
          "headerContent": {
            "type": "string"
          },
          "body": {
            "$ref": "#/components/schemas/CM.Platform.Channels.Models.ChannelTypes.WhatsApp.ApiWhatsAppTemplateLanguageBodyLayoutRequest"
          },
          "content": {
            "type": "string"
          },
          "footer": {
            "$ref": "#/components/schemas/CM.Platform.Channels.Models.ChannelTypes.WhatsApp.ApiWhatsAppTemplateLanguageFooterLayoutRequest"
          },
          "footerContent": {
            "type": "string"
          },
          "interactiveSettings": {
            "$ref": "#/components/schemas/CM.Platform.Channels.Models.ChannelTypes.WhatsApp.ApiWhatsAppTemplateLanguageInteractiveSettingsRequest"
          },
          "carouselLayoutSettings": {
            "$ref": "#/components/schemas/CM.Platform.Channels.Models.ChannelTypes.WhatsApp.ApiWhatsAppTemplateLanguageCarouselLayoutRequest"
          },
          "limitedTimeOffer": {
            "$ref": "#/components/schemas/CM.Platform.Channels.Models.ChannelTypes.WhatsApp.ApiWhatsAppTemplateLanguageLimitedTimeOfferLayoutRequest"
          },
          "messageSendTimeToLiveSeconds": {
            "format": "int32",
            "type": "integer"
          }
        }
      },
      "CM.Platform.Channels.Models.ChannelTypes.WhatsApp.ApiWhatsAppTemplateLanguageHeaderLayoutRequest": {
        "type": "object",
        "properties": {
          "content": {
            "type": "string"
          }
        }
      },
      "CM.Platform.Channels.Models.ChannelTypes.WhatsApp.ApiWhatsAppTemplateLanguageFooterLayoutRequest": {
        "type": "object",
        "properties": {
          "content": {
            "type": "string"
          },
          "otpSettings": {
            "$ref": "#/components/schemas/CM.Platform.Channels.Models.ChannelTypes.WhatsApp.ApiWhatsAppTemplateLanguageFooterOtpSettings"
          }
        }
      },
      "CM.Platform.Channels.Models.ChannelTypes.WhatsApp.ApiWhatsAppTemplateLanguageInteractiveSettingsRequest": {
        "type": "object",
        "properties": {
          "buttons": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CM.Platform.Channels.Models.ChannelTypes.WhatsApp.ApiWhatsAppTemplateLanguageInteractiveButtonRequest"
            }
          }
        }
      },
      "CM.Platform.Channels.Models.ChannelTypes.WhatsApp.ApiWhatsAppTemplateLanguageCarouselLayoutRequest": {
        "type": "object",
        "properties": {
          "cards": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CM.Platform.Channels.Models.ChannelTypes.WhatsApp.ApiWhatsAppTemplateLanguageCarouselCardRequest"
            }
          },
          "carouselSettings": {
            "$ref": "#/components/schemas/CM.Platform.Channels.Models.ChannelTypes.WhatsApp.ApiWhatsAppTemplateLanguageCarouselSettingsRequest"
          }
        }
      },
      "CM.Platform.Channels.Models.ChannelTypes.WhatsApp.ApiWhatsAppTemplateLanguageLimitedTimeOfferLayoutRequest": {
        "type": "object",
        "properties": {
          "content": {
            "type": "string"
          },
          "hasExpiration": {
            "type": "boolean"
          }
        }
      },
      "CM.Platform.Channels.Models.ChannelTypes.WhatsApp.ApiWhatsAppTemplateLanguageInteractiveButtonRequest": {
        "type": "object",
        "properties": {
          "buttonText": {
            "type": "string"
          },
          "url": {
            "type": "string"
          },
          "phoneNumber": {
            "type": "string"
          },
          "otp": {
            "$ref": "#/components/schemas/CM.Platform.Channels.Models.ChannelTypes.WhatsApp.ApiWhatsAppTemplateLanguageInteractiveButtonOtpRequest"
          },
          "id": {
            "format": "uuid",
            "type": "string",
            "example": "00000000-0000-0000-0000-000000000000"
          },
          "type": {
            "enum": [
              "PHONENUMBER",
              "URL",
              "QUICK_REPLY",
              "OTP_COPY",
              "OTP_ONE_TAP",
              "CODE_COPY"
            ],
            "type": "string"
          },
          "urlType": {
            "enum": [
              "STATIC",
              "DYNAMIC"
            ],
            "type": "string"
          }
        }
      },
      "CM.Platform.Channels.Models.ChannelTypes.WhatsApp.ApiWhatsAppTemplateLanguageCarouselCardRequest": {
        "type": "object",
        "properties": {
          "buttons": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CM.Platform.Channels.Models.ChannelTypes.WhatsApp.ApiWhatsAppTemplateLanguageInteractiveButtonRequest"
            }
          },
          "header": {
            "$ref": "#/components/schemas/CM.Platform.Channels.Models.ChannelTypes.WhatsApp.ApiWhatsAppTemplateLanguageCarouselCardHeader"
          },
          "body": {
            "$ref": "#/components/schemas/CM.Platform.Channels.Models.ChannelTypes.WhatsApp.ApiWhatsAppTemplateLanguageBodyLayoutRequest"
          }
        }
      },
      "CM.Platform.Channels.Models.ChannelTypes.WhatsApp.ApiWhatsAppTemplateLanguageCarouselSettingsRequest": {
        "type": "object",
        "properties": {
          "header": {
            "$ref": "#/components/schemas/CM.Platform.Channels.Models.ChannelTypes.WhatsApp.ApiWhatsAppTemplateLanguageCarouselCardHeader"
          },
          "buttonSettings": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CM.Platform.Channels.Models.ChannelTypes.WhatsApp.ApiWhatsAppTemplateInteractiveSettingsButtonRequest"
            }
          }
        }
      },
      "CM.Platform.Channels.Models.ChannelTypes.WhatsApp.ApiWhatsAppTemplateInteractiveSettingsButtonRequest": {
        "type": "object",
        "properties": {
          "id": {
            "format": "uuid",
            "type": "string",
            "example": "00000000-0000-0000-0000-000000000000"
          },
          "type": {
            "enum": [
              "PHONENUMBER",
              "URL",
              "QUICK_REPLY",
              "OTP_COPY",
              "OTP_ONE_TAP",
              "CODE_COPY"
            ],
            "type": "string"
          },
          "urlType": {
            "enum": [
              "STATIC",
              "DYNAMIC"
            ],
            "type": "string"
          }
        }
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "_id": {
    "buffer": {
      "0": 103,
      "1": 190,
      "2": 212,
      "3": 166,
      "4": 50,
      "5": 7,
      "6": 123,
      "7": 0,
      "8": 17,
      "9": 137,
      "10": 237,
      "11": 0
    }
  }
}
```