Reinstall a Server
curl --request POST \
--url https://api.arct.cloud/v1/servers/{server_id}/reinstall \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"image_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"ssh_key_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"hostname": "<string>"
}
'import requests
url = "https://api.arct.cloud/v1/servers/{server_id}/reinstall"
payload = {
"image_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"ssh_key_ids": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"],
"hostname": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
image_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
ssh_key_ids: ['3c90c3cc-0d44-4b50-8888-8dd25736052a'],
hostname: '<string>'
})
};
fetch('https://api.arct.cloud/v1/servers/{server_id}/reinstall', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"server": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"hostname": "<string>",
"status": "provisioning",
"location": "<string>",
"plan": "<string>",
"plan_name": "<string>",
"cpu_cores": 123,
"ram_gb": 123,
"storage_gb": 123,
"bandwidth_tb": 123,
"ipv4": "<string>",
"ipv6": "<string>",
"os": "<string>",
"login_user": "<string>",
"labels": [
"<string>"
],
"delete_protection": true,
"billing_period": "<string>",
"price": 123,
"next_due_date": "2023-12-25",
"cancel_at": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z"
},
"password": "<string>"
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}Servers
Reinstall a Server
Wipes the disk and installs image_id. The server must be running or stopped. Returns 202 while it reinstalls.
POST
/
servers
/
{server_id}
/
reinstall
Reinstall a Server
curl --request POST \
--url https://api.arct.cloud/v1/servers/{server_id}/reinstall \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"image_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"ssh_key_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"hostname": "<string>"
}
'import requests
url = "https://api.arct.cloud/v1/servers/{server_id}/reinstall"
payload = {
"image_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"ssh_key_ids": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"],
"hostname": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
image_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
ssh_key_ids: ['3c90c3cc-0d44-4b50-8888-8dd25736052a'],
hostname: '<string>'
})
};
fetch('https://api.arct.cloud/v1/servers/{server_id}/reinstall', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"server": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"hostname": "<string>",
"status": "provisioning",
"location": "<string>",
"plan": "<string>",
"plan_name": "<string>",
"cpu_cores": 123,
"ram_gb": 123,
"storage_gb": 123,
"bandwidth_tb": 123,
"ipv4": "<string>",
"ipv6": "<string>",
"os": "<string>",
"login_user": "<string>",
"labels": [
"<string>"
],
"delete_protection": true,
"billing_period": "<string>",
"price": 123,
"next_due_date": "2023-12-25",
"cancel_at": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z"
},
"password": "<string>"
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}Authorizations
API token from Dashboard > Settings > API Tokens.
Path Parameters
Body
application/json
Image ID from GET /images, for the server's location and plan.
IDs of your SSH keys to install. Omit for all saved keys (a password if none); send [] for a password. Ignored for Windows images.
Maximum array length:
20Hostname for the reinstalled OS.
Required string length:
1 - 63Pattern:
^[a-zA-Z0-9]([a-zA-Z0-9-]*[a-zA-Z0-9])?$Response
Accepted. Poll GET /servers/{server_id} for status.