# /themes/{themeId}/copy

Copies a theme within the current account (creates a duplicate)

# 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": {
    "/themes/{themeId}/copy": {
      "post": {
        "tags": [
          "Themes"
        ],
        "description": "Copies a theme within the current account (creates a duplicate)",
        "operationId": "copyTheme",
        "parameters": [
          {
            "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/ThemeIdApiDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad request"
          },
          "401": {
            "description": "Unauthorized"
          },
          "404": {
            "description": "Theme not found"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "ThemeIdApiDto": {
        "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": "Themes",
      "description": "Themes control the visual styling applied to forms. Use these endpoints to list the themes in an account, copy a theme, delete a theme, list the forms using a theme, and assign a theme to a form. Deleting a theme switches its forms to the default theme."
    }
  ]
}
```