Tenants

Sync Tenant From App

Sync tenant from Claim Mind App to Open API.

This operation:

  • Moves all data (claims, sftp_sync_log, users) from old tenant to new tenant
  • Transfers hospital_group_id from old to new tenant
  • Updates Keycloak group attributes

Requires mtk-admin role.

post/admin/tenants/sync-from-app

Request

  • Base URL
    https://developer.claimmind.life (the document declares no server; this is the origin it was published from)
  • Auth
    OAuth 2
    Password
    Token URL: token

Request body

tenant_id_appstring required

Tenant ID from Claim Mind App

tenant_id_oldstring required

Tenant ID to replace in Open API

Example request

{
  "tenant_id_app": "f52f9c6d-4cf5-4691-8f7b-1160e4ed3e79",
  "tenant_id_old": "a55eac0f-ffc6-4152-9448-76ef82568b7c"
}

Response

Successful Response

successboolean required
messagestring required

Example response

{
  "details": {
    "api_keys_updated": 2,
    "claims_updated": 150,
    "configs_merged": 8,
    "hospital_group_id": "xxx-xxx-xxx",
    "keycloak_updated": true,
    "old_tenant_deleted": true,
    "sftp_sync_log_updated": 25
  },
  "message": "Sync completed successfully",
  "success": true
}

Changes

No recorded changes to this operation across all 1 revision of this API.