# Import one script module

Source: https://www.jawsdeploy.net/rest-api/projects-script-module-assign | Section: Projects

Import a single workspace script module into a project.

`POST /api/project/script-module`

Adds one script module assignment without affecting the others.

## Parameters

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `projectId` | body | string | yes | ID of the project. |
| `scriptModuleId` | body | string | yes | ID of the script module to import. |

## Errors

| Status | Meaning |
|---|---|
| 400 | Invalid `projectId` or `scriptModuleId`. |
| 401 | Missing or invalid Basic auth credentials, or the service account lacks the required role. |

Example request:

```
POST /api/project/script-module

{ "projectId": "prj_abc123", "scriptModuleId": "sm_1" }
```

Example response:

```
{}
```

