# /subaccount/{subaccountId}/theme/{themeId}/copy

Copies a theme from the current account to a specified subaccount

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "Formstack API v2025.0",
    "version": "0.0.4"
  },
  "servers": [
    {
      "url": "https://www.formstack.com/api/v2025",
      "description": "Production server"
    },
    {
      "url": "https://staging-formstack.com/api/v2025",
      "description": "Staging server"
    },
    {
      "url": "https://dev-formstack.com/api/v2025",
      "description": "Development server"
    }
  ],
  "paths": {
    "/subaccount/{subaccountId}/theme/{themeId}/copy": {
      "post": {
        "tags": [
          "Subaccounts"
        ],
        "description": "Copies a theme from the current account to a specified subaccount",
        "operationId": "copyThemeToSubaccount",
        "parameters": [
          {
            "name": "subaccountId",
            "in": "path",
            "description": "Unique identifier of the target subaccount",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "themeId",
            "in": "path",
            "description": "Unique identifier of the theme to be copied",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "201": {
            "description": "Theme copied successfully",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SubaccountThemeIdApiDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad request"
          },
          "401": {
            "description": "Unauthorized"
          },
          "404": {
            "description": "Not found"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "SubaccountThemeIdApiDto": {
        "title": "Theme ID Response",
        "description": "Represents a theme ID in responses",
        "properties": {
          "id": {
            "description": "The ID of the theme",
            "type": "string",
            "nullable": false
          }
        },
        "type": "object"
      }
    }
  },
  "tags": [
    {
      "name": "Subaccounts",
      "description": "Subaccounts let a parent account manage separate child accounts. Use these endpoints to list subaccounts and to work with subaccount-scoped resources: copy a form into a subaccount, list a subaccount's themes, copy or delete a subaccount theme, list the forms using a subaccount theme, and assign a theme to a subaccount form. Subaccount records include details such as SMTP credentials."
    }
  ]
}
```