v1 · OpenAPI 3.1Dashboard

Die API-Referenz ist auf Englisch.

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.

Benötigter Scope
users:write
Authentifizierung
Secret key · Organization API key

Pfadparameter

  • app_idstringerforderlich

    Beispiel: app_seller

  • user_idstringerforderlich

    Beispiel: usr_tr_8f2c91a7

Body application/json

  • countrystringerforderlich

    ISO 3166-1 alpha-2 of the new country

    Beispiel: DE

Antworten

  • 202AcceptedJob

    Move job queued

    • job_idstring

      Beispiel: job_9x2k

    • typestring

      Werte: user_erasure user_export user_move application_deletion

    • statusstring

      Werte: queued running completed failed

    • regionstring

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

      Werte: EU TR

    • backups_purged_bystring (date)

  • 404Not FoundError

    Not found

    • errorobjecterforderlich

      5 Felder
      • codestringerforderlich

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

        Beispiel: region_unavailable

      • messagestringerforderlich

        Plain English, for developers

      • regionstringnullable

        Region that produced the error, if any

        Werte: EU TR

      • retryablebooleanerforderlich

      • detailsobject

  • 409ConflictError

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

    • errorobjecterforderlich

      5 Felder
      • codestringerforderlich

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

        Beispiel: region_unavailable

      • messagestringerforderlich

        Plain English, for developers

      • regionstringnullable

        Region that produced the error, if any

        Werte: EU TR

      • retryablebooleanerforderlich

      • detailsobject

  • 422Unprocessable ContentError

    method_not_available: user moves are not available yet.

    • errorobjecterforderlich

      5 Felder
      • codestringerforderlich

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

        Beispiel: region_unavailable

      • messagestringerforderlich

        Plain English, for developers

      • regionstringnullable

        Region that produced the error, if any

        Werte: EU TR

      • retryablebooleanerforderlich

      • detailsobject

  • 503Service UnavailableError

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

    • errorobjecterforderlich

      5 Felder
      • codestringerforderlich

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

        Beispiel: region_unavailable

      • messagestringerforderlich

        Plain English, for developers

      • regionstringnullable

        Region that produced the error, if any

        Werte: EU TR

      • retryablebooleanerforderlich

      • detailsobject