Migrate SIMs between Workspaces

Migrate SIMs from one workspace to another. The calling user must have admin permissions on the target Workspace and the source Workspaces. The target Workspace must be an enterprise Workspace. <Warning> The request fails if one or more SIMs don't meet the requirements for migration. </Warning> <Note> Only 500 SIMs can be migrated at once. </Note> <Info> SIMs in status `ACTIVATED` are suspended during migration. </Info>

Authentication

AuthorizationBearer

An auth_token should be provided to authenticate a session.

To obtain an auth_token, see the /api/v1/authenticate POST request.

Request

This endpoint expects an object.
target_workspaceobjectRequired
Target Workspace to migrate SIMs to. Must be an enterprise Workspace. The calling user must have administrator permissions on the target Workspace.
simslist of objectsOptional

List of SIMs to migrate. Cannot be used in combination with the iccids or the iccid_range field. The list may include up to 500 SIMs.

iccidslist of stringsOptional

List of ICCIDs to migrate. All SIMs must belong to the source Workspace. Cannot be used in combination with the sims or the iccid_range field. The list may include up to 500 ICCIDs.

iccid_rangeobjectOptional

ICCID range to migrate. All SIMs withing the range must belong to the source Workspace. Cannot be used in combination with the iccids or the sims field. The range may include up to 500 ICCIDs.

allowed_sim_statuseslist of objectsOptional
List of SIM statuses that are allowed to be migrated. The request is rejected if a SIM has a status that isn't in this list. If not provided, all SIM statuses are allowed.
dry_runbooleanOptional

If set to true, the API returns a summary of the changes that would be performed without executing the migration. Defaults to true.

auto_detach_devicesbooleanOptional

If set to true, the SIMs automatically detach from the devices before being migrated. Otherwise, the request is rejected if one or more SIMs are attached to devices.

Response

Successful migration request. If dry_run was set to false, the migration is processed. If dry_run was set to true, the response contains a summary of the changes that would be executed.

sim_countdouble
The amount of SIMs to be migrated
dry_runboolean

The dry_run option specified in the request

target_workspaceobject

The target_workspace specified in the request

auto_detach_devicesboolean

The auto_detach_devices option specified in the request

simslist of objects
List of SIMs to be migrated
allowed_sim_statuseslist of objects or null

The allowed_sim_statuses option specified in the request

Errors