---
title: "Unzip Node"
description: "Unzip Node efficiently extracts ZIP attachments from nodes into specified target folders with flexible configurations. (Gitana 4.0)"
product: "Gitana"
version: "4.0"
url: "/documentation/gitana/4.0/engine/behaviors/actions/unzip-node"
---

# Unzip Node

ID: `unzipNode`

Unzips an attachment from a node into a target folder.

### Configuration

| Property | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| repositoryId | text |  |  | The repository ID of the node with the ZIP attachment. |
| branchId | text |  |  | The branch ID of the node with the ZIP attachment. |
| nodeId | text |  |  | The ID of the node with the ZIP attachment. |
| attachmentId | text |  | default | The ID of the attachment containing the ZIP file. |
| targetRepositoryId | text |  |  | The repository ID of the folder where the ZIP should be expanded. |
| targetBranchId | text |  |  | The branch ID of the folder where the ZIP should be expanded. |
| targetNodeId | text |  |  | The node ID of the folder where the ZIP should be expanded. |
| targetPath | text |  |  | An offset path from the target node, used to determine where the ZIP should be expanded. |

The configuration for this action is described using JSON Schema like this:

```
{
    "title": "Unzip Node",
    "properties": {
        "repositoryId": {
            "title": "Repository ID of node with ZIP attachment",
            "type": "string"
        },
        "branchId": {
            "title": "Branch ID of node with ZIP attachment",
            "type": "string"
        },
        "nodeId": {
            "title": "ID of node with ZIP attachment",
            "type": "string"
        },
        "attachmentId": {
            "title": "ID of the attachment containing the ZIP file",
            "type": "string",
            "default": "default"
        },
        "targetRepositoryId": {
            "title": "Target Repository ID of the folder where the ZIP should be expanded",
            "type": "string"
        },
        "targetBranchId": {
            "title": "Target Branch ID of the folder where the ZIP should be expanded",
            "type": "string"
        },
        "targetNodeId": {
            "title": "Target Node ID of the folder where the ZIP should be expanded",
            "type": "string"
        },
        "targetPath": {
            "title": "An offset path from the target node (used to determine where the ZIP should be expanded)",
            "type": "string"
        }
    }
}
```

## See Also

- The "Zip/Unzip" section of the [API Server](/documentation/gitana/4.0/self-managed/containers/api-server.md) configuration, which sets the `unzip` executable path and timeout used by the server
