---
title: "Transfer script"
method: POST
path: "/api/scripts/{handle}/{host}/{slug}/transfer"
---

# Transfer script

`POST /api/scripts/{handle}/{host}/{slug}/transfer`

## Request

- Base URL: `https://reduck.ai`
- URL: `https://reduck.ai/api/scripts/{handle}/{host}/{slug}/transfer`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-API-Key`

Move a script to another scope: your personal one, or a project where you may create scripts.

## Path parameters

- `handle` string, required: The owner a resource is addressed under: "@username" for a personal scope, or a bare slug for a project.
- `host` string, required: The site the script automates, as a hostname.
- `slug` string, required: The script's unique identifier within its host, unique per owner.

## Request body

- object
  - `target` string, required: The owner a resource is addressed under: "@username" for a personal scope, or a bare slug for a project.

## Response `200`

OK

- object
  - `handle` string, required
  - `host` string, required
  - `slug` string, required

## Other responses

- `400`: Invalid request
- `401`: Not authenticated
- `403`: You may not transfer the script out of the scope it is in, or the destination is not one you may create scripts in: an unknown handle, another user's personal scope, or a project where you lack that right.
- `404`: Not found
- `409`: The destination already has a script on this host and slug, or the script is archived.

---

[API](https://skmtc.dev/reduck/apis/reduck-api.md) · [All operations](https://skmtc.dev/reduck/apis/reduck-api/llms.txt) · [OpenAPI document](https://skmtc.dev/reduck/apis/reduck-api/revisions/a573b91206d6?raw)
