Logo Site EngageLab Mark Colored TransparentDocument
Search

Delete Template

Request URL

DELETE https://otp.api.engagelab.cc/v1/template-configs/{templateId}

Authentication

Please refer to Authentication to learn how to perform API authentication.

Request

Request Parameters

{templateId} in the URL represents the template ID to be deleted, which is defined by the caller when calling the create template interface.

Request Example

Request Header

DELETE /v1/template-configs/{templateId} HTTP/1.1 Authorization: Basic amlndWFuZ2RldjpkZXZfc2VjcmV0
              
              DELETE /v1/template-configs/{templateId}  HTTP/1.1
Authorization: Basic amlndWFuZ2RldjpkZXZfc2VjcmV0

            
This code block in the floating window

Request Body

None

Response

Response Parameters

Field Type Option Description
code Integer Required Error code, 0 means success, others mean failure
message String Required Response message

Response Example

Success Response

{ "code": 0, "message": "success" }
              
              {
    "code": 0,
    "message": "success"
}

            
This code block in the floating window

Failure Response

{ "code": 4001, "message": "config not exist" }
              
              {
    "code": 4001,
    "message": "config not exist"
}

            
This code block in the floating window

Error Codes

Error Code HTTP Code Description
1000 500 Internal error
2001 401 Authentication failed, incorrect token carried
2002 401 Authentication failed, token has expired or been disabled
2004 403 No permission to call this API
3001 400 Invalid request parameter format, please check if the JSON content conforms to the parameter format
3002 400 Incorrect request parameters, please check if the request parameters meet the requirements
4001 400 Template does not exist
Icon Solid Transparent White Qiyu
Contact Sales