Sidebar navigationMain contentFooter
Suggest an edit

Changing the commercial type of an Instance with the API

Reviewed on 02 January 2024Published on 26 May 2021

It is possible to change the commercial type of an Instance by using the API.

To migrate an Instance via the API, the Instance ID, and a valid API key are required.

Security & Identity (IAM)

To perform certain actions described below, you must either be the Owner of the Organization in which the actions will be performed, or an IAM user with the necessary permissions.

  • You have an account and are logged into the Scaleway console
  • You have created an Instance
  • The Instance must be stopped for the migration to be possible
  • The Instance cannot be in a placement group
  1. Stop the Instance. Replace {zone} with the Availability Zone of your Instance. This value can be fr-par-1 for Instances located in Paris, for example. Replace {server_id} with the ID of your Instance.


    curl -X POST -H "X-Auth-Token: $SCW_SECRET_KEY" -H "Content-Type: application/json" -d '{"action" : "poweroff"}' "{zone}/servers/{server_id}/action"


  2. Update the commercial_type of your Instance.


    curl -X PATCH -H "X-Auth-Token: $SCW_SECRET_KEY" -H "Content-Type: application/json" -d '{"commercial_type" : "<NEW_INSTANCE_TYPE>"}' "{zone}/servers/{server_id}"

    Local storage constraints must be respected. For example, downgrading a DEV1-L Instance with 80 GB of local SSD storage to a DEV1-S Instance is not possible because the DEV1-S offer only supports a maximum of 20 GB. However, if the DEV1-L Instance is only using block storage (b_ssd) without relying on local SSD storage, the downgrade can be performed without any issues.


    "commercial_type":"PLAY2-MICRO", # New commercial type of the Instance
    "name":"Ubuntu 22.04 Jammy Jellyfish",
    "name":"Ubuntu 22.04 Jammy Jellyfish",
  3. Power on the Instance.


    curl -X POST -H "X-Auth-Token: $SCW_SECRET_KEY" -H "Content-Type: application/json" -d '{"action" : "poweron"}' "{zone}/servers/{server_id}/action"



    For more information on using the API, refer to the complete API documentation.

Creating backupsUsing the import/export feature (API)
Cloud Products & Resources
  • Scaleway Console
  • Compute
  • Storage
  • Network
  • IoT
  • AI
Dedicated Products & Resources
  • Dedibox Console
  • Dedibox Servers
  • Network
  • Web Hosting
  • Blog
  • Careers
  • Scaleway Learning
Scaleway Docs
Follow us
ContractsLegal NoticePrivacy PolicyCookie PolicyDocumentation license
© 1999-2024 – Scaleway SAS