# Update a workspace variable value

Source: https://www.jawsdeploy.net/rest-api/workspace-variable-value-update | Section: Workspace Variables

Update a scoped value on a workspace variable.

`PUT /api/workspace-variable/value`

Updates the value content and/or its filters. Pass only the fields to change.

## Parameters

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `variableValueId` | body | string | yes | ID of the value. |
| `theValue` | body | string | no | New value content. |
| `environmentsFilter` | body | array<string> | no | Replacement environments filter. |
| `machineFilter` | body | array<string> | no | Replacement machine filter. |
| `cloudTargetFilter` | body | array<string> | no | Replacement cloud target filter. |
| `tagFilter` | body | array<object> | no | Replacement tag filter. |

## Errors

| Status | Meaning |
|---|---|
| 400 | Invalid `variableValueId` or filter validation failure. |
| 401 | Missing or invalid Basic auth credentials, or the service account lacks the required role. |

Example request:

```
PUT /api/workspace-variable/value

{ "variableValueId": "wvv_1", "theValue": "Server=prod;..." }
```

Example response:

```
{}
```

