Delete Template

Use this API to delete a template using the elementName

You will need below details to start using this API.
NOTE: This action is irreversible. Once a template has been deleted, it cannot be restored.

  1. App ID
  2. Partner App Token
  3. Element Name

Parameters

KeyDescriptionRequiredTypeValue
AuthorizationAccess Token for the applicationRequiredString{{PARTNER_APP_TOKEN}}
appIdUnique Identifier for Gupshup AppRequiredString{{APP_ID}}
elementNameTemplate element name, refer Get template by id apiRequiredString{{ELEMENT_NAME}}

Sample Request

curl --location --request DELETE 'https://partner.gupshup.io/partner/app/{{APP_ID}}/template/{{ELEMENT_NAME}}' \
--header 'Authorization: {{PARTNER_APP_TOKEN}}'

Sample Response

     {
       "status": "success"
     }
Language
Click Try It! to start a request and see the response here!