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.
Path parameters
app_idstringrequiredExample:
app_selleruser_idstringrequiredExample:
usr_tr_8f2c91a7
Body application/json
countrystringrequiredISO 3166-1 alpha-2 of the new country
Example:
DE
Responses
202AcceptedJob
Move job queued
job_idstringExample:
job_9x2ktypestringValues:
user_erasureuser_exportuser_moveapplication_deletionstatusstringValues:
queuedrunningcompletedfailedregionstringMore regions will be added; clients must accept unknown values.
Values:
EUTRbackups_purged_bystring (date)
404Not FoundError
Not found
errorobjectrequired5 properties
codestringrequiredStable machine code, e.g. email_exists, country_not_allowed, user_moved, method_not_available, region_unavailable
Example:
region_unavailablemessagestringrequiredPlain English, for developers
regionstringnullableRegion that produced the error, if any
Values:
EUTRretryablebooleanrequireddetailsobject
409ConflictError
user_moved: the user is already in another region (error.regionnames it).errorobjectrequired5 properties
codestringrequiredStable machine code, e.g. email_exists, country_not_allowed, user_moved, method_not_available, region_unavailable
Example:
region_unavailablemessagestringrequiredPlain English, for developers
regionstringnullableRegion that produced the error, if any
Values:
EUTRretryablebooleanrequireddetailsobject
422Unprocessable ContentError
method_not_available: user moves are not available yet.errorobjectrequired5 properties
codestringrequiredStable machine code, e.g. email_exists, country_not_allowed, user_moved, method_not_available, region_unavailable
Example:
region_unavailablemessagestringrequiredPlain English, for developers
regionstringnullableRegion that produced the error, if any
Values:
EUTRretryablebooleanrequireddetailsobject
503Service UnavailableError
region_unavailable: the user's region cannot answer right now. Retry afterRetry-Afterseconds.errorobjectrequired5 properties
codestringrequiredStable machine code, e.g. email_exists, country_not_allowed, user_moved, method_not_available, region_unavailable
Example:
region_unavailablemessagestringrequiredPlain English, for developers
regionstringnullableRegion that produced the error, if any
Values:
EUTRretryablebooleanrequireddetailsobject