Update SMS Template
API Description
Update existing SMS template information.
Request Information
- Get API Key:
ACCESSKEY_ID:ACCESSKEY_SECRET - Request Method:
PUT - Request Path:
/api/v1/usms/USMSTemplate/{id} - Content-Type:
application/json
idstringrequired
Template ID
?
TemplateNamestring
Template name
?
Templatestring
Template content
?
Instructionstring
Usage instructions
Tagsstring
Tag list (JSON array), e.g. [1, 2]
?
VariableAttrstring
Template variable attributes
LANGUAGE
CREDENTIALS
👁️
🔒
🔑Log in to get ACCESSKEY_ID and ACCESSKEY_SECRET
URL
PUT
CURL Request▼
curl -X PUT "https://api.uspeedo.com/api/v1/usms/USMSTemplate/template_id_1" \-H "Content-Type: application/json" \-H "Accept: application/json" \-H "Authorization: Basic $(echo -n 'ACCESSKEY_ID:ACCESSKEY_SECRET' | base64)" \-d '{"id": "template_id_1","TemplateName": "UpdatedTemplate","Template": "Your verification code is {1}, please keep it confidential"}'
RESPONSE
Click Try It! to start a request and see the response here.
Common Error Codes
| Error Code | Description |
|---|---|
| 0 | Success |
| 215392 | Parameter error |
| 215396 | Template not found |
| 215400 | Server error |