---
title: "POST /resource/{resourceId}/children/copy"
method: POST
path: "/resource/{resourceId}/children/copy"
tags: ["copyChildren"]
---

# POST /resource/{resourceId}/children/copy

`POST /resource/{resourceId}/children/copy`

Copy resources from one container to another.

## Path parameters

- `resourceId` string, required

## Query parameters

- `autoRename` boolean
- `conflictResolution` 'RENAME' | 'OVERWRITE' | 'NONE' | 'INVALID'
- `lockToken` string

## Headers

- `cookie` string
- `If-Match` string

## Request body

- string[]

## Response `207`

MULTI STATUS

## Other responses

- `403` — FORBIDDEN, Not allowed
- `409` — CONFLICT, file resource already exists (inside of the multistatus)
- `412` — PRECONDITION, FAILED non-matching Etag of 'If-Match' Header
- `423` — LOCKED, Resource or parent resource is locked (inside of the multistatus)
- `507` — INSUFFICIENT STORAGE, insufficient storage or quotas exceeded (inside of the multistatus)

## Changes

- **2021-10-25** `ef9761927b5f` — 1 breaking
  - removed the success response with the status `200`
- **2021-10-18** `75899b69a09a` — 1 breaking, 1 info
  - the response's body type changed from `object` to `string` for status `207`
  - added the success response with the status `200`

[Change history](https://skmtc.dev/iterate-ch/apis/restfs/changes/resource/:resourceId/children/copy/post.md)

---

[API](https://skmtc.dev/iterate-ch/apis/restfs.md) · [All operations](https://skmtc.dev/iterate-ch/apis/restfs/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/iterate-ch/restfs/revisions/517e17452ca3/schema)
