---
title: "Allow or stop copies"
description: "The owner only. Lets other people copy the computer into their own accounts (POST /api/computers/{id}/copy), functions source and cool.json included, or stops new copies; copies already made are not…"
canonical: "https://www.cool.computer/docs/api-reference/publishing/allow-or-stop-copies"
---
# Allow or stop copies

> The owner only. Lets other people copy the computer into their own accounts (POST /api/computers/{id}/copy), functions source and cool.json included, or stops new copies; copies already made are not…

```http
PUT https://api.cool.computer/api/computers/{id}/copy-settings
```

The owner only. Lets other people copy the computer into their own accounts (POST /api/computers/{id}/copy), functions source and cool.json included, or stops new copies; copies already made are not affected. Off until the owner turns it on; the owner may always copy their own computer. Only a site without a VM can be copied for now: a computer with a VM cannot turn copies on (409 computer_has_vm), and may turn them off.

## Authorization

- A Cool Computers API key, user access token, or claimed agent access token in the Authorization header. Follow https://www.cool.computer/auth.md for agent registration and https://www.cool.computer/authentication.md for direct user credentials.

## Parameters

- `id` (path, string, at least 1 characters, required): The computer's name, such as agent-atlas, or its id (cmp_…). Every caller may use either, the computer's own runtime token included.

## Request body

Required.

- `application/json` (object)
  - `enabled` (boolean, required): Whether people other than the owner may copy the computer.

## Responses

- `200`: The computer's copy switch.
  - `application/json` (object)
    - `enabled` (boolean, required): Whether people other than the owner may copy the computer.
- `400`: Bad Request. `invalid_settings`: send enabled.
- `401`: Unauthorized.
- `404`: Not Found. `computer_not_found`: the computer does not exist or is not yours.
- `409`: Conflict. `computer_has_vm`: only a site without a VM can be copied for now, so its copies stay off.
- `429`: Too Many Requests. If the problem code is api_request_rate_exceeded, wait for Retry-After seconds; other problem codes describe a separate limit.
- `500`: Internal Server Error.
- `default`: A machine-readable API error with a stable code and recovery instruction.

An error is an `application/problem+json` document with a stable `code`; [API errors](/docs/api-reference/errors) says how to handle one.

## Example

```sh
curl -X PUT "https://api.cool.computer/api/computers/$PARAM_ID/copy-settings" \
  -H "authorization: Bearer $TOKEN" \
  -H "content-type: application/json" \
  --data '{"enabled":true}'
```
