/templates/sms/{uuid}
Get details for a particular SMS template.
Headers
Name | Required | Type | Description |
---|---|---|---|
X-AUTH-TOKEN | * | string |
An authentication token provided to you by GovDelivery. |
Body
Example
{
"id": "1",
"uuid": "template-1",
"body": "hello world",
"created_at": "2015-10-22T14:27:49Z",
"_links": {
"self": "/templates/sms/template-1",
"account": "/accounts/1"
}
}
Schema
Name | Type | Description |
---|---|---|
id | string |
The id of the template Example
|
uuid | string |
The id of the template Example
|
body | string |
Content of the template Example
|
created_at | string |
The date and time when the template was created. Example
|
_links | object |
An object that defines links to related objects. Properties
|
{
"title": "SMS Template",
"type": "object",
"properties": {
"id": {
"description": "The id of the template",
"type": "string",
"example": "1"
},
"uuid": {
"description": "The id of the template",
"type": "string",
"example": "new-template_1"
},
"body": {
"description": "Content of the template",
"type": "string",
"example": "Hi"
},
"created_at": {
"description": "The date and time when the template was created.",
"type": "string",
"example": "2013-01-30T17:45:27Z"
},
"_links": {
"title": "Relational Links",
"description": "An object that defines links to related objects.",
"type": "object",
"properties": {
"self": {
"description": "Relative URI of the object",
"type": "string",
"example": "/inbound/sms/2"
},
"account": {
"description": "Relative URI of the account.",
"type": "string",
"example": "/account/2"
}
}
}
}
}
Body
Example
{
"error": "Invalid authentication token"
}
Update an SMS template with partial update.
Headers
Name | Required | Type | Description |
---|---|---|---|
X-AUTH-TOKEN | * | string |
An authentication token provided to you by GovDelivery. |
Body
Example
{
"body": "This is a new SMS body."
}
Schema
Name | Required | Type | Description |
---|---|---|---|
body | * | string |
Template body will comprise SMS content. Example
|
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "/templates/sms/{uuid}",
"description": "Update an SMS template with partial update.",
"type": "object",
"properties": {
"body": {
"description": "Template body will comprise SMS content.",
"type": "string",
"example": "hello world"
}
},
"required": [
"body"
]
}
Form Parameters
Name | Required | Type | Description |
---|---|---|---|
body | * | string |
Template body will comprise SMS content. Example
|
Description
OK
Body
Example
{
"error": "Invalid authentication token"
}
Update an SMS template with partial update.
Headers
Name | Required | Type | Description |
---|---|---|---|
X-AUTH-TOKEN | * | string |
An authentication token provided to you by GovDelivery. |
Body
Example
{
"body": "This is a new SMS body."
}
Schema
Name | Required | Type | Description |
---|---|---|---|
body | * | string |
Template body will comprise sms content. Example
|
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "/templates/sms/{uuid}",
"description": "Update an SMS template with partial update.",
"type": "object",
"properties": {
"body": {
"description": "Template body will comprise sms content.",
"type": "string",
"example": "hello world"
}
},
"required": [
"body"
]
}
Form Parameters
Name | Required | Type | Description |
---|---|---|---|
body | * | string |
Template body will comprise sms content. Example
|
Description
OK
Body
Example
{
"error": "Invalid authentication token"
}
Delete an SMS template.
Headers
Name | Required | Type | Description |
---|---|---|---|
X-AUTH-TOKEN | * | string |
An authentication token provided to you by GovDelivery. |
Description
OK
Body
Example
{
"error": "Invalid authentication token"
}