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.
Yol parametreleri
app_idstringzorunluÖrnek:
app_selleruser_idstringzorunluÖrnek:
usr_tr_8f2c91a7
Gövde application/json
countrystringzorunluISO 3166-1 alpha-2 of the new country
Örnek:
DE
Yanıtlar
202AcceptedJob
Move job queued
job_idstringÖrnek:
job_9x2ktypestringDeğerler:
user_erasureuser_exportuser_moveapplication_deletionstatusstringDeğerler:
queuedrunningcompletedfailedregionstringMore regions will be added; clients must accept unknown values.
Değerler:
EUTRbackups_purged_bystring (date)
404Not FoundError
Not found
errorobjectzorunlu5 alan
codestringzorunluStable machine code, e.g. email_exists, country_not_allowed, user_moved, method_not_available, region_unavailable
Örnek:
region_unavailablemessagestringzorunluPlain English, for developers
regionstringboş olabilirRegion that produced the error, if any
Değerler:
EUTRretryablebooleanzorunludetailsobject
409ConflictError
user_moved: the user is already in another region (error.regionnames it).errorobjectzorunlu5 alan
codestringzorunluStable machine code, e.g. email_exists, country_not_allowed, user_moved, method_not_available, region_unavailable
Örnek:
region_unavailablemessagestringzorunluPlain English, for developers
regionstringboş olabilirRegion that produced the error, if any
Değerler:
EUTRretryablebooleanzorunludetailsobject
422Unprocessable ContentError
method_not_available: user moves are not available yet.errorobjectzorunlu5 alan
codestringzorunluStable machine code, e.g. email_exists, country_not_allowed, user_moved, method_not_available, region_unavailable
Örnek:
region_unavailablemessagestringzorunluPlain English, for developers
regionstringboş olabilirRegion that produced the error, if any
Değerler:
EUTRretryablebooleanzorunludetailsobject
503Service UnavailableError
region_unavailable: the user's region cannot answer right now. Retry afterRetry-Afterseconds.errorobjectzorunlu5 alan
codestringzorunluStable machine code, e.g. email_exists, country_not_allowed, user_moved, method_not_available, region_unavailable
Örnek:
region_unavailablemessagestringzorunluPlain English, for developers
regionstringboş olabilirRegion that produced the error, if any
Değerler:
EUTRretryablebooleanzorunludetailsobject