Updating a Template
PUT https://gateway.lipachat.com/api/v1/template/PHONE_NUMBER/:templateId
Headers
Content-Type
application/json
apiKey
Get apiKey from App portal settings tab https://app.lipachat.com/app/settings
Body
name
string
Name of template
language
string
Language code e.g en
category
string
Accepted values are: MARKETING, UTILITY or AUTHENTICATION.
component.header.format
string
Accepted values are: TEXT, IMAGE, VIDEO, DOCUMENT
component.header.text
string
Text to be sent on header
component.header.example
string
Should be present if text above has a variable.
component.body.text
string
Body text, accepts variables e.g Hello {{1}}, your balance is {{2}}
component.body.examples
array
Should match number of variables passed in text. For the example above it should be ['John', '2000']
component.footer.text
string
Optional footer text.
component.buttons[0].type
string
Accepted values are: PHONE_NUMBER, URL or QUICK_REPLY.
component.buttons[0].text
string
Text on button above.
component.buttons[0].phoneNumber
string
Should be passed if button type passed is PHONE_NUMBER.
component.buttons[0].url
string
Should be passed if button type passed is URL.
component.buttons[0].example
string
Applies for PHONE_NUMBER and URL.
component.header, component.footer, component.buttons objects are optional.
Response
{
"timestamp": null,
"data": {
"success": true,
"error": null
},
"status": "success",
"message": "success",
"errors": null
}
Last updated