# VariableSetRequest

> The VariableSetRequest object in the Guv API.

## Fields

| Field | Type | Description |
| --- | --- | --- |
| `service` | string | Service name or id. Omit for shared variables. |
| `variables` * | array of [VariableInput](/docs/api/objects/variable-input/) |  |

\* always present

## Example

```json
{
  "service": "web",
  "variables": [
    {
      "name": "NODE_ENV",
      "value": "production"
    },
    {
      "name": "NEXT_PUBLIC_POSTHOG_KEY",
      "value": "phc_xxx",
      "public": true
    }
  ]
}
```

## Used by

- [Set plain variables (create or replace)](/docs/api/variables/#set-plain-variables-create-or-replace)
