*Cloud*

# The variable object

An environment variable of a service, or a project variable shared by its services. Lists never show values: reveal one to read it. A change applies at the next deployment.

## Attributes

- `name` (string): Its name.
- `kind` (string): value, or shared (it takes a project variable's value).
- `scope` (string): runtime, build or both: when the value is given to the service.
- `version` (number): +1 on every change.
- `ref_name` (string): For a shared variable: the project variable it uses.
- `updated_at` (timestamp): When it last changed.

## Example

```json
{
  "data": {
    "name": "DATABASE_URL",
    "kind": "value",
    "scope": "runtime",
    "version": 3,
    "ref_name": "DATABASE_URL",
    "updated_at": "2026-12-05T10:15:02Z"
  }
}
```

## Endpoints

- `DELETE` [Delete a project variable](https://docs.dispralabs.com/api/delete-a-project-variable.md)
- `DELETE` [Delete a service variable](https://docs.dispralabs.com/api/delete-a-service-variable.md)
- `GET` [List project variables](https://docs.dispralabs.com/api/list-project-variables.md)
- `GET` [List service variables](https://docs.dispralabs.com/api/list-service-variables.md)
- `POST` [Reveal a project variable](https://docs.dispralabs.com/api/reveal-a-project-variable.md)
- `POST` [Reveal a service variable](https://docs.dispralabs.com/api/reveal-a-service-variable.md)
- `PUT` [Set a project variable](https://docs.dispralabs.com/api/set-a-project-variable.md)
- `PUT` [Set a service variable](https://docs.dispralabs.com/api/set-a-service-variable.md)
