Delete template by element name

API to delete template by element name

curl --location --request DELETE '{{api_front_url}}/wa/app/:appId/template/:elementName' \
--header 'apikey: <apikey>'

Status codes:


Status CodeStatusResponseDescription
200Success{ "status": "success" }
400Error{ "status":"error", "message":"Invalid App ID" }appId provided is not valid
400Error{ "status":"error", "message":"Delete Operation is not allowed for sandbox apps" }App is not live
400Error{ "status":"error", "message":"Please Check If App Has been approved" }App is not approved
400Error{ "status":"error", "message":"Template Does not exists." }No template found for the provided element name.
400Error{ "status":"error", "message":"Template Cannot be deleted" }Not a master template
400Error{ "status":"error", "message":"Unable to delete the template, please try after sometime and if issue still exists than contact dev support" }Error occured while deleting template.
403Error{ "status":"error", "message":"Not App Owner" }appId provided is not associated with the provided api key.

Request Params

ParameterDescriptionConstraints
apikeyApikey of the account where the app is to be createdShould be a valid gupshup.io apikey

Path Params

ParameterDescriptionConstraints
appIdApp id of the app
elemetnNameelement name for the template to be deleted

Response Params

ParameterDescriptionConstraints
statusAPI call status(“success/error”)
messageerror message describing failure of API