/templates/sms/{uuid}

Secured By: Authentication Token
Description:

Get details for a particular SMS template.

Headers

Name Required Type Description
X-AUTH-TOKEN * string

An authentication token provided to you by GovDelivery.

Status

Body

Format: application/json

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
Object that may include:
Name Type Description
id string

The id of the template

Example

1
uuid string

The id of the template

Example

new-template_1
body string

Content of the template

Example

Hi
created_at string

The date and time when the template was created.

Example

2013-01-30T17:45:27Z
_links object

An object that defines links to related objects.

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"
  }
}
{
  "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

Format: application/json

Example
{
  "error": "Invalid authentication token"
}
Secured By: Authentication Token
Description:

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

Format: application/json

Example
{
  "body": "This is a new SMS body."
}
Schema
Object that may include:
Name Required Type Description
body * string

Template body will comprise SMS content.

Example

hello world
{
  "$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

hello world

Status

Description

OK

Body

Format: application/json

Example
{
  "error": "Invalid authentication token"
}
Secured By: Authentication Token
Description:

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

Format: application/json

Example
{
  "body": "This is a new SMS body."
}
Schema
Object that may include:
Name Required Type Description
body * string

Template body will comprise sms content.

Example

hello world
{
  "$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

hello world

Status

Description

OK

Body

Format: application/json

Example
{
  "error": "Invalid authentication token"
}
Secured By: Authentication Token
Description:

Delete an SMS template.

Headers

Name Required Type Description
X-AUTH-TOKEN * string

An authentication token provided to you by GovDelivery.

Status

Description

OK

Body

Format: application/json

Example
{
  "error": "Invalid authentication token"
}