Combines two user accounts, transferring data from one account to another while preserving important user information.
curl --request PUT \
--url https://production-storytell-ai-platfor-cds2.encr.app/v1/users/merge \
--header 'Content-Type: application/json' \
--data '{
"newUserID": [
127
],
"oldUserId": [
127
],
"reason": "<string>"
}'
{
"code": "<string>",
"data": {
"assets": {
"assets": [
"<string>"
],
"recent": [
"<string>"
],
"references": [
"<string>"
]
},
"collectionPaths": [
{
"collection_id": "<string>",
"new_path": "<string>",
"old_path": "<string>"
}
],
"collections": [
{
"created_by": "<string>",
"id": "<string>",
"last_asset_by": "<string>",
"last_chat_by": "<string>"
}
],
"joinTables": {
"assets_to_col": [
{
"created_by": "<string>",
"deleted_by": "<string>",
"join_id": "<string>",
"modified_by": "<string>"
}
],
"threads_to_col": [
{
"created_by": "<string>",
"deleted_by": "<string>",
"join_id": "<string>",
"modified_by": "<string>"
}
]
},
"permissions": {
"deleted": [
{
"action": "<string>",
"collection_id": "<string>",
"user_id": "<string>"
}
],
"updated": [
{
"action": "<string>",
"collection_id": "<string>",
"created_by": "<string>",
"user_id": "<string>"
}
]
},
"teams": [
{
"created_by": "<string>",
"id": "<string>",
"modified_by": "<string>"
}
],
"threads": {
"recent": [
"<string>"
],
"threads": [
"<string>"
]
},
"tokens": [
{
"token": "<string>"
}
],
"workingContext": [
{
"organization_id": "<string>",
"tenant_id": "<string>",
"user_id": "<string>"
}
]
},
"details": {
"consumption": {
"units": 123
},
"operation": {
"duration": 123,
"operationId": "<string>"
}
},
"done": true,
"eventKey": "<string>",
"message": "<string>"
}
Success response
The response is of type object
.
curl --request PUT \
--url https://production-storytell-ai-platfor-cds2.encr.app/v1/users/merge \
--header 'Content-Type: application/json' \
--data '{
"newUserID": [
127
],
"oldUserId": [
127
],
"reason": "<string>"
}'
{
"code": "<string>",
"data": {
"assets": {
"assets": [
"<string>"
],
"recent": [
"<string>"
],
"references": [
"<string>"
]
},
"collectionPaths": [
{
"collection_id": "<string>",
"new_path": "<string>",
"old_path": "<string>"
}
],
"collections": [
{
"created_by": "<string>",
"id": "<string>",
"last_asset_by": "<string>",
"last_chat_by": "<string>"
}
],
"joinTables": {
"assets_to_col": [
{
"created_by": "<string>",
"deleted_by": "<string>",
"join_id": "<string>",
"modified_by": "<string>"
}
],
"threads_to_col": [
{
"created_by": "<string>",
"deleted_by": "<string>",
"join_id": "<string>",
"modified_by": "<string>"
}
]
},
"permissions": {
"deleted": [
{
"action": "<string>",
"collection_id": "<string>",
"user_id": "<string>"
}
],
"updated": [
{
"action": "<string>",
"collection_id": "<string>",
"created_by": "<string>",
"user_id": "<string>"
}
]
},
"teams": [
{
"created_by": "<string>",
"id": "<string>",
"modified_by": "<string>"
}
],
"threads": {
"recent": [
"<string>"
],
"threads": [
"<string>"
]
},
"tokens": [
{
"token": "<string>"
}
],
"workingContext": [
{
"organization_id": "<string>",
"tenant_id": "<string>",
"user_id": "<string>"
}
]
},
"details": {
"consumption": {
"units": 123
},
"operation": {
"duration": 123,
"operationId": "<string>"
}
},
"done": true,
"eventKey": "<string>",
"message": "<string>"
}