/keywords/{id}
Use this resource to get detail, update or delete a keyword.
Get keyword detail.
Headers
Name | Required | Type | Description |
---|---|---|---|
X-AUTH-TOKEN | * | string |
An authentication token provided to you by GovDelivery. |
Body
Example
{
"name": "weather",
"response_text": "Current Weather Conditions",
"created_at": "2014-12-17T18:57:44Z",
"updated_at": "2014-12-27T14:22:37Z",
"_links": {
"self": "/keywords/3",
"commands": "/keywords/3/commands"
}
}
Schema
Name | Type | Description |
---|---|---|
name | string |
The name of the keyword. Case-insensitive. Example
|
response_text | string |
Optional response text that will be sent back to the SMS sender in an SMS Example
|
created_at | string |
The date and time when the keyword was created. Example
|
updated_at | string |
The date and time when the keyword was last updated. Example
|
_links | object |
An object that defines links to related objects. Properties
|
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Keyword",
"type": "object",
"properties": {
"name": {
"description": "The name of the keyword. Case-insensitive.",
"type": "string",
"example": "weather"
},
"response_text": {
"description": "Optional response text that will be sent back to the SMS sender in an SMS",
"type": "string",
"example": "Current Weather Conditions"
},
"created_at": {
"description": "The date and time when the keyword was created.",
"type": "string",
"example": "2013-01-30T17:45:27Z"
},
"updated_at": {
"description": "The date and time when the keyword was last updated.",
"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": "/keywords/3"
},
"commands": {
"description": "Relative URI to the commands associated with this keyword",
"type": "string",
"example": "/keywords/3/commands"
}
}
}
}
}
Body
Example
{
"error": "Invalid authentication token"
}
Update a keyword.
Headers
Name | Required | Type | Description |
---|---|---|---|
X-AUTH-TOKEN | * | string |
An authentication token provided to you by GovDelivery. |
Body
Example
{
"name": "weather",
"response_text": "Current Weather Conditions"
}
Schema
Name | Required | Type | Description |
---|---|---|---|
name | * | string |
The name of the keyword. Case-insensitive. Example
|
response_text | string |
Optional response text that will be sent back to the SMS sender in an SMS Example
|
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "/keywords/{id}",
"description": "Update a keyword.",
"type": "object",
"properties": {
"name": {
"description": "The name of the keyword. Case-insensitive.",
"type": "string",
"example": "weather"
},
"response_text": {
"description": "Optional response text that will be sent back to the SMS sender\nin an SMS\n",
"type": "string",
"example": "Current Weather Conditions"
}
},
"required": [
"name"
]
}
Form Parameters
Name | Required | Type | Description |
---|---|---|---|
name | * | string |
The name of the keyword. Case-insensitive. Example
|
response_text | string |
Optional response text that will be sent back to the SMS sender in an SMS Example
|
Description
The updated keyword object
Body
Example
{
"name": "weather",
"response_text": "Current Weather Conditions",
"created_at": "2014-12-17T18:57:44Z",
"updated_at": "2014-12-27T14:22:37Z",
"_links": {
"self": "/keywords/3",
"commands": "/keywords/3/commands"
}
}
Schema
Name | Type | Description |
---|---|---|
name | string |
The name of the keyword. Case-insensitive. Example
|
response_text | string |
Optional response text that will be sent back to the SMS sender in an SMS Example
|
created_at | string |
The date and time when the keyword was created. Example
|
updated_at | string |
The date and time when the keyword was last updated. Example
|
_links | object |
An object that defines links to related objects. Properties
|
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Keyword",
"type": "object",
"properties": {
"name": {
"description": "The name of the keyword. Case-insensitive.",
"type": "string",
"example": "weather"
},
"response_text": {
"description": "Optional response text that will be sent back to the SMS sender in an SMS",
"type": "string",
"example": "Current Weather Conditions"
},
"created_at": {
"description": "The date and time when the keyword was created.",
"type": "string",
"example": "2013-01-30T17:45:27Z"
},
"updated_at": {
"description": "The date and time when the keyword was last updated.",
"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": "/keywords/3"
},
"commands": {
"description": "Relative URI to the commands associated with this keyword",
"type": "string",
"example": "/keywords/3/commands"
}
}
}
}
}
Body
Example
{
"error": "Invalid authentication token"
}
Delete a keyword.
Headers
Name | Required | Type | Description |
---|---|---|---|
X-AUTH-TOKEN | * | string |
An authentication token provided to you by GovDelivery. |
Body
Example
{
"error": "Invalid authentication token"
}