PUT
/
v1
/
users
/
merge
curl --request PUT \
  --url https://api.storytell.ai/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>"
}

Body

application/json
newUserID
integer[]
required
oldUserId
integer[]
required
reason
string
required

Response

200
application/json
Success response
code
string
required
data
object
required
details
object
required
done
boolean
required
eventKey
string
required
message
string
required