Start a Dynamic Entities Migration
post
/api/v1/bots/{botId}/metadataMigration/dynamicEntitiesMigrationRequests
Migrates dynamic entities from a source skill to a target skill. As part of the migration process, it will create dynamic entity push requests with the copy query parameter set to false, which means it clears all values in the target entity, uploads all values in the push request, and then starts the training. If any of the push requests fail during the training step, all push requests (and the parent migration request) will complete with an error and no changes will be made to the target skill.
Request
Path Parameters
-
botId(required): string
The ID of the skill to migrate the dynamic entities into.
Query Parameters
-
sourceBotId(required): string
The ID of the skill that contains the entities to be migrated. This skill must have the same name as the target, have been versioned from it, and use the same multilingual mode. If using native multilingual mode, the primary native language should also be the same as the target.
There's no request body for this operation.
Back to TopResponse
Supported Media Types
- application/json
201 Response
Migration request created.
Root Schema : DynamicEntitiesMigrationRequest
Type:
object
Dynamic Entities Migration Request
Show Source
-
botId: string
Read Only:
true
The target skill ID for the migration request. -
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
). -
id: string
Read Only:
true
The resource's unique ID. -
links: array
links
Read Only:
true
An array of links to the resource. -
sourceBotId: string
Read Only:
true
The source skill ID for the migration request. -
status: string
Read Only:
true
Allowed Values:[ "TRAINING", "COMPLETED", "TERMINATED_BY_ERROR" ]
The status of the migration request. -
statusMessage: string
Read Only:
true
The message associated with the migration request. -
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
There was a problem with the request. Take action based on the error message.
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" ]
404 Response
Can't create the migration request because either the source or the target skill doesn't 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" ]
412 Response
A push request for one of the affected entities in the target skill is already in progress.
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" ]