---
url: /process-functions/blueprint-publish.md
description: >-
  Applies a blueprint to a hierarchy, creating the hierarchy and any missing
  elements.
---

# blueprint.publish&#x20;

Applies a blueprint to a hierarchy, creating the hierarchy and any missing elements.

::: warning Deprecated
Use [`blueprint.publish(dimensionName, hierarchyName)`](/process-functions/hierarchy-hierarchyblueprint#publish) instead.
:::

```js
blueprint.publish(dimensionName, hierarchyName, blueprintName)
```

## Parameters

| Parameter | Type | Description |
|---|---|---|
| `dimensionName` | `string` | The dimension to publish into. |
| `hierarchyName` | `string` | The hierarchy to publish into. It's created if it doesn't exist. |
| `blueprintName` | `string` | The blueprint's name. |

## Returns

An empty string when it succeeds, or an error message when the blueprint or dimension can't be found.

## Examples

```js
blueprint.publish("Account", "Default", "Default");
```
