---
title: "Copy resources"
method: POST
path: "/resources/copy"
tags: ["Resources"]
---

# Copy resources

`POST /resources/copy`

Copies a set of exisiting files/folders (provided by an array `resources`) to the requested `parentResource` in your account.
In the `resources` array, you may specify paths pointing files/folders throughout the account, but everything will be copied to the 
root of the `parentResource`.

**Notes:**
- Authenticated user should have modify permission.

## Headers

- `ev-api-key` string, required
- `ev-access-token` string, required

## Request body

- object
  - `resources` string[], required — Resource identifier(s) of items to be copied to a new location
  - `parentResource` string, required — Resource identifier for folder where items will be copied to.

## Response `200`

Successful Operation

- ResourceCopyMove — Resource which was successfully copied or moved.
  - `data` Resource — All properties of the resource.
    - `id` integer
    - `type` 'resource' — Type of item. "resource"
    - `attributes` ResourceAttributes — Attributes of resource
      - `hash` string — Unique hash of the resource.
      - `name` string — Resource name, e.g. the name of the file or folder.
      - `extension` string — Resource extension. Property exists only if resource `type` is file.
      - `type` 'file' | 'dir' — Type of the resource.
      - `createdBy` string — Username of the creator.
      - `uploadDate` string, date-time — Timestamp of resource upload.
      - `createdAt` string, date-time — Date-time of resource creation.
      - `updatedAt` string, date-time — Date-time of resource modification.
      - `accessedAt` string, date-time — Date-time of the time when resource was accessed.
      - `createdTime` integer — UNIX timestamp of resource creation
      - `updatedTime` integer — UNIX timestamp of resource modification
      - `accessedTime` integer — UNIX timestamp of last access
      - `path` string — Full path to the resource.
      - `size` integer — Resource size in bytes
      - `fileCount` integer — Number of files within folder. null if resource type is a file.
      - `previewable` true | false — Can resource be previewed. Property equals `null` if resource `type` is dir.
    - `relationships` object
      - `share` object
        - `data` object
          - `id` integer
          - `type` string
      - `notifications` object[]
        - `data` object
          - `id` integer
          - `type` string
      - `directFile` object
        - `data` object
          - `id` integer
          - `type` string
      - `parentResource` object
        - `data` object
          - `id` integer
          - `type` string
  - `meta` object — Meta object containing non-standard meta-information about the operation.

## Other responses

- `207` — Multi Response

---

[API](https://skmtc.net/prismic/apis/exavault-api.md) · [All operations](https://skmtc.net/prismic/apis/exavault-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/prismic/exavault-api/revisions/a1bd874b5960/schema)
