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.
Pfadparameter
app_idstringerforderlichBeispiel:
app_selleruser_idstringerforderlichBeispiel:
usr_tr_8f2c91a7
Body application/json
countrystringerforderlichISO 3166-1 alpha-2 of the new country
Beispiel:
DE
Antworten
202AcceptedJob
Move job queued
job_idstringBeispiel:
job_9x2ktypestringWerte:
user_erasureuser_exportuser_moveapplication_deletionstatusstringWerte:
queuedrunningcompletedfailedregionstringMore regions will be added; clients must accept unknown values.
Werte:
EUTRbackups_purged_bystring (date)
404Not FoundError
Not found
errorobjecterforderlich5 Felder
codestringerforderlichStable machine code, e.g. email_exists, country_not_allowed, user_moved, method_not_available, region_unavailable
Beispiel:
region_unavailablemessagestringerforderlichPlain English, for developers
regionstringnullableRegion that produced the error, if any
Werte:
EUTRretryablebooleanerforderlichdetailsobject
409ConflictError
user_moved: the user is already in another region (error.regionnames it).errorobjecterforderlich5 Felder
codestringerforderlichStable machine code, e.g. email_exists, country_not_allowed, user_moved, method_not_available, region_unavailable
Beispiel:
region_unavailablemessagestringerforderlichPlain English, for developers
regionstringnullableRegion that produced the error, if any
Werte:
EUTRretryablebooleanerforderlichdetailsobject
422Unprocessable ContentError
method_not_available: user moves are not available yet.errorobjecterforderlich5 Felder
codestringerforderlichStable machine code, e.g. email_exists, country_not_allowed, user_moved, method_not_available, region_unavailable
Beispiel:
region_unavailablemessagestringerforderlichPlain English, for developers
regionstringnullableRegion that produced the error, if any
Werte:
EUTRretryablebooleanerforderlichdetailsobject
503Service UnavailableError
region_unavailable: the user's region cannot answer right now. Retry afterRetry-Afterseconds.errorobjecterforderlich5 Felder
codestringerforderlichStable machine code, e.g. email_exists, country_not_allowed, user_moved, method_not_available, region_unavailable
Beispiel:
region_unavailablemessagestringerforderlichPlain English, for developers
regionstringnullableRegion that produced the error, if any
Werte:
EUTRretryablebooleanerforderlichdetailsobject