> For the complete documentation index, see [llms.txt](https://dev.guardian.hedera.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://dev.guardian.hedera.com/guardian/standard-registry/schemas/schema-apis-for-asynchronous-execution/copy-schema.md).

# Copy Schema

<mark style="color:green;">`POST`</mark> `/schemas/push/copy`

Copy schema. Only users with the Standard Registry role are allowed to\
make the request.

**Headers**

| Name          | Value              |
| ------------- | ------------------ |
| Content-Type  | `application/json` |
| Authorization | `Bearer <token>`   |

**Body**

| Name       | Type    | Description        |
| ---------- | ------- | ------------------ |
| iri        | string  | IRI                |
| topicId    | number  | Topic ID           |
| name       | string  | Schema name        |
| copyNested | boolean | Copy Nested Schema |

**Response**

{% tabs %}
{% tab title="200" %}

```json
{
  description: Successful operation.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TaskDTO'
}
```

{% endtab %}

{% tab title="401" %}

```json
{
  description: Unauthorized.
}
```

{% endtab %}

{% tab title="403" %}

```
{
description: Forbidden.
}
```

{% endtab %}

{% tab title="500" %}

```
{
description: Internal server error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalServerErrorDTO'
  }
```

{% endtab %}
{% endtabs %}
