MMP Message API
  1. Template
MMP Message API
  • Introduction
  • How to retrieve required IDs
  • How to retrieve API key
  • Onboard
    • Onboard new Company and Company's Admin
      POST
    • Update company profile
      POST
    • Create a new API key
      POST
  • Channel
    • RCS
      • Create RCS Official account
      • Edit Channel RCS
      • Get Channel Rcs Status
      • Add Channel Test Number
      • Check Bulk Phones
      • Check capabilities of phone number
      • Request Verification Channel
    • ZALO
      • Check Zalo Channel Consent Status
      • Send Consent request
    • Get channel information
      GET
    • Get Channel Status
      GET
    • Broadcast Template Message
      POST
    • Send Conversation Message
      POST
    • Broadcast Message
      POST
  • Message
    • Get Message Status
      GET
  • Template
    • Create Template
      POST
    • Get Template By PublicId
      GET
    • Update Template
      POST
    • Get List Approved Template
      GET
    • Delete Template
      DELETE
  • Bulk Campaign
    • Get list bulk campaign
      GET
    • Send Bulk Campaign Broadcast
      POST
    • Send Bulk Contact Message
      POST
  • Channel Onboard
    • Generate token for onboarding Whatsapp
      POST
  • Billing CDR
    • Create billing request
    • Get billing request status
    • Download billing
  • Summary
    • Get Channel Summary
  • Partner
    • radica
      • Wecom
        • Get Wecom agent's customers
        • Sync Wecom agent's customers
        • Send messages to Wecom customers
        • Send messages to Wecom Customer Group
        • Get Wecom Message Status
  • Schemas
    • ChannelTestRequest
    • ChannelTestResponse
    • CheckPhoneCapabilitiesResponse
    • OnboardRequest
    • OnboardResponse
    • UpdateCompanyProfileRequest
    • UpdateCompanyProfileResponse
    • CreateAPIKeyRequest
    • CreateAPIKeyResponse
    • PartnerMessageType
    • MessageType
    • Status
    • TemplateStatus
    • TemplateMessage
    • BroadcastSubscriberMessage
    • BroadcastSubscriberGroupMessage
    • CreateOrEditChannelRequest
    • LaunchChannelRequest
    • LaunchChannelRequestIndonesia
    • LaunchChannelRequestIndia
    • CheckBulkPhonesRequest
    • SendMessageBroadcast
    • TextMessage
    • TextMessageWithAttachment
    • RichLink
    • ListPicker
    • QuickReply
    • FileMessage
    • SuggestionActionType
    • Suggestion
    • RichCard
    • RCSRichCard
    • ViberRichCard
    • ViberBotRichCard
    • FBWhatsappInteractiveHeaderText
    • FBWhatsappInteractiveHeaderMedia
    • FBWhatsappInteractive
    • FBWhatsappInteractiveButton
    • FBWhatsappInteractiveList
    • WhatsappFormCreateTemplateMessage
    • CreateFormTemplateMessage
    • ResponseCreateTemplateMessage
    • ResponseGetTemplate
    • ListSubscriberResponseMessage
    • BroadcastResponseMessage
    • ChannelResponse
    • ResponseMessage
    • ResponseStatusMessage
    • ResponseSummaryChannelRCS
    • BulkCampaignBroadcastRequest
    • BulkCampaignBroadcastRequestMessage
    • BulkCampaignSearchResponse
    • BulkCampaign
    • BulkCampaignStatus
    • BulkCampaignType
    • BulkCampaignBroadcastResponse
    • BulkCampaignContact
    • BulkCampaignConversationRequest
    • BulkCampaignConversationResponse
    • ChanelOnboardGenerateTokenRequest
    • ChanelOnboardGenerateTokenResponse
    • ErrorMessage
    • Application
    • PartnerEvent
    • ResponseChannelInfo
    • ResponseChannelRCSLaunchInfo
    • CheckBulkPhonesResponse
    • ResponseListApproveTemplate
    • RCSConversationParams
    • ViberBotConversationParams
    • ViberConversationParams
    • AppleConversationParams
    • WhatsappConversationParams
    • CommonGetChannelStatusResponse
    • WhatsappChannelStatusResponse
    • ChannelStatus
    • Attachment
    • AttachmentImage
    • AttachmentLink
    • AttachmentMiniProgram
    • AttachmentVideo
    • AttachmentFile
    • backgroundTask
    • ZaloRequestConsentRequest
    • ZaloCheckConsentResponse
    • ZaloRequestConsentResponse
  1. Template

Update Template

POST
/channel/{publicId}/template/{publicTemplateId}
This API is used to Update template details by Channel's publicId and Template publicId.

Request

Authorization
API Key
Add parameter in header
apiKey
Example:
apiKey: ********************
or
Path Params

Body Params application/jsonRequired

Examples

Responses

🟢200
application/json
Successfully operation
Body

🟠400
🔴500
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.peacom.co/eip/partner/channel/3cb69db1-c410-4b83-8d37-84b823be9c06/template/3cb69db1-c410-4b83-8d37-84b823be9c06' \
--header 'apiKey: <api-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "name": "Template name",
    "description": "Template description",
    "whatsapp": {
        "name": "new_offer_xxx",
        "description": "hello_world_1",
        "whatsapp": {
            "name": "new_offer",
            "language": "en_US",
            "category": "MARKETING",
            "components": [
                {
                    "type": "HEADER",
                    "format": "IMAGE"
                },
                {
                    "type": "BODY",
                    "text": "Shop now through {{{1}}} and use code {{2}} to get {{3}} off of all merchandise."
                },
                {
                    "type": "FOOTER",
                    "text": "Thanks"
                },
                {
                    "type": "BUTTONS",
                    "buttons": [
                        {
                            "type": "QUICK_REPLY",
                            "text": "More Info"
                        },
                        {
                            "type": "QUICK_REPLY",
                            "text": "Unsubscribe from All"
                        },
                        {
                            "type": "CATALOG",
                            "text": "View catalog"
                        },
                        {
                            "type": "FLOW",
                            "text": "Complete Flow",
                            "flow": {
                                "id": "1094889789792768000"
                            }
                        }
                    ]
                }
            ],
            "example": {
                "1": "the end of August",
                "2": "25OFF",
                "3": "25%",
                "headerMediaUrl": "https://vnn-imgs-f.vgcloud.vn/2020/04/22/13/the-beauty-of-cua-tung-beach-7.jpg"
            }
        }
    }
}'
Response Response Example
200 - Example 1
{
    "name": "Template name",
    "publicId": "3cb69db1-c410-4b83-8d37-84b823be9c06",
    "tariffType": 0,
    "description": "Template description",
    "status": 1,
    "statusText": "APPROVED",
    "message": {
        "type": "rich_card",
        "message": "Message Content",
        "richCards": [
            {
                "fileUrl": "https://images.pexels.com/photo.jpeg",
                "thumbnailUrl": "https://images.pexels.com/photo.jpeg",
                "title": "Example Title",
                "description": "Example Description",
                "suggestions": [
                    {
                        "text": "Example suggestion",
                        "action": "reply",
                        "tracking": true,
                        "webviewType": "FULL",
                        "postbackData": "Example postback data",
                        "openUrlApplication": "BROWSER"
                    }
                ]
            }
        ],
        "rcsExpireOpts": {
            "type": "TTL",
            "ttl": 3600,
            "expireTime": "2025-06-13T11:00:00.000Z"
        },
        "rcsRichCardsOpts": {
            "type": "STANDALONE",
            "imageAlign": "THUMBNAIL_IMAGE_ALIGNMENT_UNSPECIFIED",
            "orientation": "VERTICAL"
        },
        "fileUrl": "https://images.pexels.com/photo.jpeg",
        "thumbnailUrl": "https://images.pexels.com/photo.jpeg"
    }
}
Modified at 2026-01-06 07:06:58
Previous
Get Template By PublicId
Next
Get List Approved Template
Built with