# Import one workspace variable

Source: https://www.jawsdeploy.net/rest-api/project-workspace-variable-import | Section: Project Variables

Import a single workspace variable into a project.

`POST /api/project/workspace-variable`

Imports a single workspace variable. Returns the project-side variable ID, even if the variable was already imported.

## Parameters

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `projectId` | body | string | yes | ID of the project. |
| `workspaceVariableId` | body | string | yes | ID of the workspace variable. |

## Errors

| Status | Meaning |
|---|---|
| 400 | Invalid `projectId` or `workspaceVariableId`. |
| 401 | Missing or invalid Basic auth credentials, or the service account lacks the required role. |

Example request:

```
POST /api/project/workspace-variable

{ "projectId": "prj_abc123", "workspaceVariableId": "wv_1" }
```

Example response:

```
{ "projectVariableId": "v_local1" }
```

