Add Messages
post
/api/v1/bots/{botId}/bundles
If you have a multi-language skill, you can use this method to add messages in other languages to an existing resource bundle entry. A resource bundle entry is a set of messages (strings) for a given
All bundle entries contain a message for the
If any objects in the request body are malformed, if a resource bundle entry doesn't exist for a specified
You can't use this method add keys or to modify existing messages or annotations. You also can't use this method to modify bundles in skills that you've pulled from the store.
key
where each message contains the text for a different language (languageTag
).All bundle entries contain a message for the
default
language, and you use this method to add the translations for other languages. Say, for example, the default language is Spanish, and there is a message with the key
"Hello_Message" and the languageTag
"default". You can use this method to add a French version of the message with the key
"Hello_Message" and the languageTag
"fr".If any objects in the request body are malformed, if a resource bundle entry doesn't exist for a specified
key
, or any object references a language that already exists for the key
, then no changes are made, and the response status is either 400 (non-existing key) or 409 (duplicate). If the request body has some objects with non-existing keys and some objects with duplicate key/language combinations, then the response status is 409 and the response body contains only the objects with duplicate key/language combinations. If there were any objects with non-existing keys, the response body will not report these.You can't use this method add keys or to modify existing messages or annotations. You also can't use this method to modify bundles in skills that you've pulled from the store.
Request
Path Parameters
-
botId(required): string
The skill's ID.
Supported Media Types
- application/json
The messages to add for languages other than the default language.
Root Schema : schema
Type:
object
The messages or annotations (or both) to change.
Show Source
-
items: array
items
The message to add or change.
Nested Schema : items
Type:
array
The message to add or change.
Show Source
-
Array of:
object LanguageBundleEntryInputForm
The message to add or change.
Nested Schema : LanguageBundleEntryInputForm
Type:
object
The message to add or change.
Show Source
-
annotation: string
Any information that will be useful for those that may need to reference the message later, such as translators.
-
key(required): string
A unique identifier for a message in the default language and all its equivalent strings in other languages. The combination of
key
andlanguageTag
identifies a specific entry in the resource bundle. -
languageTag(required): string
Language identifier using IETF BCP 47 language tag. For example, use
fr
for French andde
for German. Usedefault
for the skill's primary language. -
message: string
The text to use in the skill conversation for the specified
languageTag
andkey
. This property is required for the POST method and is optional for the PATCH method.
Response
Supported Media Types
- application/json
200 Response
Array of all the messages that were added to the resource bundle.
Root Schema : BundleEntries
Type:
array
List of a skill's resource bundle messages.
Show Source
-
Array of:
object LanguageBundleEntry
Resource bundle message.
Nested Schema : LanguageBundleEntry
Type:
object
Resource bundle message.
Show Source
-
annotation: string
Any information that will be useful for those that may need to reference the message later, such as translators.
-
createdOn: string
(date-time)
Read Only:
true
The date and time, in ISO 8601 format, that the resource was created (for example,2018-10-17T06:50:34.045Z
). -
extensionType: string
Allowed Values:
[ "INHERITED", "CUSTOMIZED" ]
If the skill was extended from another skill, then this property shows if the message is a custom message or it was inherited from the original skill. -
id: string
Read Only:
true
The resource's unique ID. -
key: string
A unique identifier for a message in the default language and all its equivalent strings in other languages. The combination of
key
andlanguageTag
identifies a specific entry in the resource bundle. -
languageTag: string
Language identifier using IETF BCP 47 language tag. For example, use
fr
for French andde
for German. Usedefault
for the skill's primary language. -
links: array
links
Read Only:
true
An array of links to the resource. -
message: string
The text to use in the skill conversation for the specified
languageTag
andkey
. This property is required for the POST method and is optional for the PATCH method. -
updatedOn: string
(date-time)
Read Only:
true
The date and time, in ISO 8601 format, that the resource was last modified (for example,2018-10-17T06:50:34.045Z
).
Nested Schema : links
Type:
array
Read Only:
true
An array of links to the resource.
Show Source
Show Source
Nested Schema : selfLinks
Type:
Show Source
object
-
absolutePath: string
(uri)
-
absolutePathBuilder: object
absolutePathBuilder
-
baseUri: string
(uri)
-
baseUriBuilder: object
baseUriBuilder
-
matchedResources: array
matchedResources
-
matchedURIs: array
matchedURIs
-
path: string
-
pathParameters: object
pathParameters
Additional Properties Allowed: additionalProperties
-
pathSegments: array
pathSegments
-
queryParameters: object
queryParameters
Additional Properties Allowed: additionalProperties
-
requestUri: string
(uri)
-
requestUriBuilder: object
requestUriBuilder
Nested Schema : Link
Type:
Show Source
object
-
href: string
URL to the resource
-
rel: string
The relationship with the resource
Nested Schema : absolutePathBuilder
Type:
object
Nested Schema : baseUriBuilder
Type:
object
Nested Schema : requestUriBuilder
Type:
object
Nested Schema : items
Type:
object
Nested Schema : items
Type:
Show Source
object
-
matrixParameters: object
matrixParameters
Additional Properties Allowed: additionalProperties
-
path: string
400 Response
Either the request body is malformed or one or more objects reference a
key
that doesn't exist in the skill's resource bundles. You can't use this method to add keys.Root Schema : LanguageBundleEntryErrorForm
Type:
object
List of the invalid messages.
Show Source
-
detail: string
The description of the error.
-
invalidEntries: array
invalidEntries
If the request failed because of bad keys or duplicate entries, this contains information about the message objects in the request body that caused the request to fail.
Nested Schema : invalidEntries
Type:
array
If the request failed because of bad keys or duplicate entries, this contains information about the message objects in the request body that caused the request to fail.
Show Source
-
Array of:
object LanguageBundleEntry
Resource bundle message.
Nested Schema : LanguageBundleEntry
Type:
object
Resource bundle message.
Show Source
-
annotation: string
Any information that will be useful for those that may need to reference the message later, such as translators.
-
createdOn: string
(date-time)
Read Only:
true
The date and time, in ISO 8601 format, that the resource was created (for example,2018-10-17T06:50:34.045Z
). -
extensionType: string
Allowed Values:
[ "INHERITED", "CUSTOMIZED" ]
If the skill was extended from another skill, then this property shows if the message is a custom message or it was inherited from the original skill. -
id: string
Read Only:
true
The resource's unique ID. -
key: string
A unique identifier for a message in the default language and all its equivalent strings in other languages. The combination of
key
andlanguageTag
identifies a specific entry in the resource bundle. -
languageTag: string
Language identifier using IETF BCP 47 language tag. For example, use
fr
for French andde
for German. Usedefault
for the skill's primary language. -
links: array
links
Read Only:
true
An array of links to the resource. -
message: string
The text to use in the skill conversation for the specified
languageTag
andkey
. This property is required for the POST method and is optional for the PATCH method. -
updatedOn: string
(date-time)
Read Only:
true
The date and time, in ISO 8601 format, that the resource was last modified (for example,2018-10-17T06:50:34.045Z
).
Nested Schema : links
Type:
array
Read Only:
true
An array of links to the resource.
Show Source
Show Source
Nested Schema : selfLinks
Type:
Show Source
object
-
absolutePath: string
(uri)
-
absolutePathBuilder: object
absolutePathBuilder
-
baseUri: string
(uri)
-
baseUriBuilder: object
baseUriBuilder
-
matchedResources: array
matchedResources
-
matchedURIs: array
matchedURIs
-
path: string
-
pathParameters: object
pathParameters
Additional Properties Allowed: additionalProperties
-
pathSegments: array
pathSegments
-
queryParameters: object
queryParameters
Additional Properties Allowed: additionalProperties
-
requestUri: string
(uri)
-
requestUriBuilder: object
requestUriBuilder
Nested Schema : Link
Type:
Show Source
object
-
href: string
URL to the resource
-
rel: string
The relationship with the resource
Nested Schema : absolutePathBuilder
Type:
object
Nested Schema : baseUriBuilder
Type:
object
Nested Schema : requestUriBuilder
Type:
object
Nested Schema : items
Type:
object
Nested Schema : items
Type:
Show Source
object
-
matrixParameters: object
matrixParameters
Additional Properties Allowed: additionalProperties
-
path: string
404 Response
A skill with the specified
botId
does not exist.Nested Schema : Context
Type:
Show Source
object
-
elementName: string
-
elementType: string
Allowed Values:
[ "state", "defaultTransitionAction", "inputParameter", "outputParameter", "variable", "eventMapping", "intent", "entity" ]
-
subElementName: string
-
subElementType: string
Allowed Values:
[ "stateProperty", "componentProperty", "transition", "transitionAction", "property", "inputParameter", "outputParameter" ]
409 Response
Array of all existing resource bundle messages with
key
and languageTag
pairs that match objects in the request body.Root Schema : LanguageBundleEntryErrorForm
Type:
object
List of the invalid messages.
Show Source
-
detail: string
The description of the error.
-
invalidEntries: array
invalidEntries
If the request failed because of bad keys or duplicate entries, this contains information about the message objects in the request body that caused the request to fail.
Nested Schema : invalidEntries
Type:
array
If the request failed because of bad keys or duplicate entries, this contains information about the message objects in the request body that caused the request to fail.
Show Source
-
Array of:
object LanguageBundleEntry
Resource bundle message.
Nested Schema : LanguageBundleEntry
Type:
object
Resource bundle message.
Show Source
-
annotation: string
Any information that will be useful for those that may need to reference the message later, such as translators.
-
createdOn: string
(date-time)
Read Only:
true
The date and time, in ISO 8601 format, that the resource was created (for example,2018-10-17T06:50:34.045Z
). -
extensionType: string
Allowed Values:
[ "INHERITED", "CUSTOMIZED" ]
If the skill was extended from another skill, then this property shows if the message is a custom message or it was inherited from the original skill. -
id: string
Read Only:
true
The resource's unique ID. -
key: string
A unique identifier for a message in the default language and all its equivalent strings in other languages. The combination of
key
andlanguageTag
identifies a specific entry in the resource bundle. -
languageTag: string
Language identifier using IETF BCP 47 language tag. For example, use
fr
for French andde
for German. Usedefault
for the skill's primary language. -
links: array
links
Read Only:
true
An array of links to the resource. -
message: string
The text to use in the skill conversation for the specified
languageTag
andkey
. This property is required for the POST method and is optional for the PATCH method. -
updatedOn: string
(date-time)
Read Only:
true
The date and time, in ISO 8601 format, that the resource was last modified (for example,2018-10-17T06:50:34.045Z
).
Nested Schema : links
Type:
array
Read Only:
true
An array of links to the resource.
Show Source
Show Source
Nested Schema : selfLinks
Type:
Show Source
object
-
absolutePath: string
(uri)
-
absolutePathBuilder: object
absolutePathBuilder
-
baseUri: string
(uri)
-
baseUriBuilder: object
baseUriBuilder
-
matchedResources: array
matchedResources
-
matchedURIs: array
matchedURIs
-
path: string
-
pathParameters: object
pathParameters
Additional Properties Allowed: additionalProperties
-
pathSegments: array
pathSegments
-
queryParameters: object
queryParameters
Additional Properties Allowed: additionalProperties
-
requestUri: string
(uri)
-
requestUriBuilder: object
requestUriBuilder
Nested Schema : Link
Type:
Show Source
object
-
href: string
URL to the resource
-
rel: string
The relationship with the resource
Nested Schema : absolutePathBuilder
Type:
object
Nested Schema : baseUriBuilder
Type:
object
Nested Schema : requestUriBuilder
Type:
object
Nested Schema : items
Type:
object
Nested Schema : items
Type:
Show Source
object
-
matrixParameters: object
matrixParameters
Additional Properties Allowed: additionalProperties
-
path: string