Change Messages

patch

/api/v1/bots/{botId}/bundles

Changes messages or associated annotations (or both) in the skill's resource bundles. A message is identified by a key and a languageTag.

If any object in the request body is malformed, or if any object in the request body references a message that doesn't exist, then no changes are made. You can't add keys to the bundle, and you can't update skills that you've pulled from the store.

Request

Path Parameters
Supported Media Types
Request Body - application/json ()
The messages or annotations (or both) to change.
Root Schema : schema
Type: object
The messages or annotations (or both) to change.
Show Source
Nested Schema : items
Type: array
The message to add or change.
Show Source
Nested Schema : LanguageBundleEntryInputForm
Type: object
The message to add or change.
Show Source
  • Any information that will be useful for those that may need to reference the message later, such as translators.
  • A unique identifier for a message in the default language and all its equivalent strings in other languages. The combination of key and languageTag identifies a specific entry in the resource bundle.
  • Language identifier using IETF BCP 47 language tag. For example, use fr for French and de for German. Use default for the skill's primary language.
  • The text to use in the skill conversation for the specified languageTag and key. This property is required for the POST method and is optional for the PATCH method.
Back to Top

Response

Supported Media Types

200 Response

Array of the messages that were changed in the resource bundle.
Body ()
Root Schema : BundleEntries
Type: array
List of a skill's resource bundle messages.
Show Source
Nested Schema : LanguageBundleEntry
Type: object
Resource bundle message.
Show Source
  • Any information that will be useful for those that may need to reference the message later, such as translators.
  • Read Only: true
    The date and time, in ISO 8601 format, that the resource was created (for example, 2018-10-17T06:50:34.045Z).
  • 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.
  • Read Only: true
    The resource's unique ID.
  • A unique identifier for a message in the default language and all its equivalent strings in other languages. The combination of key and languageTag identifies a specific entry in the resource bundle.
  • Language identifier using IETF BCP 47 language tag. For example, use fr for French and de for German. Use default for the skill's primary language.
  • links
  • The text to use in the skill conversation for the specified languageTag and key. This property is required for the POST method and is optional for the PATCH method.
  • 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).

400 Response

Either the request body is malformed or one or more objects reference a key and languageTag pair that doesn't exist in the skill's resource bundles. Note that you can't use this method to add messages. You only can update existing ones.
Body ()
Root Schema : LanguageBundleEntryErrorForm
Type: object
List of the invalid messages.
Show Source
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
Nested Schema : LanguageBundleEntry
Type: object
Resource bundle message.
Show Source
  • Any information that will be useful for those that may need to reference the message later, such as translators.
  • Read Only: true
    The date and time, in ISO 8601 format, that the resource was created (for example, 2018-10-17T06:50:34.045Z).
  • 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.
  • Read Only: true
    The resource's unique ID.
  • A unique identifier for a message in the default language and all its equivalent strings in other languages. The combination of key and languageTag identifies a specific entry in the resource bundle.
  • Language identifier using IETF BCP 47 language tag. For example, use fr for French and de for German. Use default for the skill's primary language.
  • links
  • The text to use in the skill conversation for the specified languageTag and key. This property is required for the POST method and is optional for the PATCH method.
  • 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).

404 Response

A skill with the specified botId does not exist.
Body ()
Root Schema : RestError
Type: object
Show Source
Nested Schema : o:errorDetails
Type: array
Show Source
Nested Schema : Location
Type: object
Show Source
Nested Schema : Context
Type: object
Show Source
Back to Top