---
title: "Set data center spot capability"
method: PUT
path: "/datacenter/{location}/{status}"
tags: ["Data Centers"]
---

# Set data center spot capability

`PUT /datacenter/{location}/{status}`

## Request

- The document declares no server URL.
- Auth: one of:
  - API key in header `Authorization`
  - HTTP bearer
- TypeScript: <https://skmtc.dev/macrometa/apis/macrometa-api-reference/docs/datacenter/:location/:status/put.ts> (a function with typed inputs; its response is checked against the schema)

Changes the properties of a data center.

## Path parameters

- `location` string, string, required
- `status` boolean, required

## Response `200`

Successfully changed data center on-spot capability.

- object
  - `result` boolean

## Other responses

- `400`: Failed due to missing or malformed data. Verify that all parameters are complete.

---

[API](https://skmtc.dev/macrometa/apis/macrometa-api-reference.md) - [All operations](https://skmtc.dev/macrometa/apis/macrometa-api-reference/llms.txt) - [OpenAPI document](https://skmtc.dev/macrometa/apis/macrometa-api-reference/revisions/2006b6d7f31d?raw)
