v1 · OpenAPI 3.1Panel

API referansı İngilizcedir.

Users

Move a user to another country

POST/v1/applications/{app_id}/users/{user_id}/move

Not in the first release.

Moves the user to the region of the new country. The user ID does not change. All sessions are ended and refresh tokens are revoked when the move switches over; access tokens already issued expire on their own (short lifetime). The old region keeps a forwarding record with no personal data, so requests that still reach it get 409 user_moved with the new region. Sends user.region_changed.

Only the tenant can move a user; end users cannot change their own country.

Gereken yetki
users:write
Kimlik doğrulama
Secret key · Organization API key

Yol parametreleri

  • app_idstringzorunlu

    Örnek: app_seller

  • user_idstringzorunlu

    Örnek: usr_tr_8f2c91a7

Gövde application/json

  • countrystringzorunlu

    ISO 3166-1 alpha-2 of the new country

    Örnek: DE

Yanıtlar

  • 202AcceptedJob

    Move job queued

    • job_idstring

      Örnek: job_9x2k

    • typestring

      Değerler: user_erasure user_export user_move application_deletion

    • statusstring

      Değerler: queued running completed failed

    • regionstring

      More regions will be added; clients must accept unknown values.

      Değerler: EU TR

    • backups_purged_bystring (date)

  • 404Not FoundError

    Not found

    • errorobjectzorunlu

      5 alan
      • codestringzorunlu

        Stable machine code, e.g. email_exists, country_not_allowed, user_moved, method_not_available, region_unavailable

        Örnek: region_unavailable

      • messagestringzorunlu

        Plain English, for developers

      • regionstringboş olabilir

        Region that produced the error, if any

        Değerler: EU TR

      • retryablebooleanzorunlu

      • detailsobject

  • 409ConflictError

    user_moved: the user is already in another region (error.region names it).

    • errorobjectzorunlu

      5 alan
      • codestringzorunlu

        Stable machine code, e.g. email_exists, country_not_allowed, user_moved, method_not_available, region_unavailable

        Örnek: region_unavailable

      • messagestringzorunlu

        Plain English, for developers

      • regionstringboş olabilir

        Region that produced the error, if any

        Değerler: EU TR

      • retryablebooleanzorunlu

      • detailsobject

  • 422Unprocessable ContentError

    method_not_available: user moves are not available yet.

    • errorobjectzorunlu

      5 alan
      • codestringzorunlu

        Stable machine code, e.g. email_exists, country_not_allowed, user_moved, method_not_available, region_unavailable

        Örnek: region_unavailable

      • messagestringzorunlu

        Plain English, for developers

      • regionstringboş olabilir

        Region that produced the error, if any

        Değerler: EU TR

      • retryablebooleanzorunlu

      • detailsobject

  • 503Service UnavailableError

    region_unavailable: the user's region cannot answer right now. Retry after Retry-After seconds.

    • errorobjectzorunlu

      5 alan
      • codestringzorunlu

        Stable machine code, e.g. email_exists, country_not_allowed, user_moved, method_not_available, region_unavailable

        Örnek: region_unavailable

      • messagestringzorunlu

        Plain English, for developers

      • regionstringboş olabilir

        Region that produced the error, if any

        Değerler: EU TR

      • retryablebooleanzorunlu

      • detailsobject