*Cloud*

# The config plan object

What applying a dispra.yaml file would change, step by step. Apply it with its plan_hash, so what you reviewed is exactly what runs.

## Attributes

- `plan_hash` (string): Identifies the plan. Apply refuses it if the environment changed since.
- `changes` (array): The steps, in order: list of {action, kind, target, fields}.
- `unmanaged` (array): Objects of the environment the file leaves out.
- `warnings` (array): What apply will not do, and why.

## Example

```json
{
  "data": {
    "plan_hash": "pln_7c1e9a2f4b6d8e0a1c3e5f7a",
    "changes": [{"action":"update","kind":"service","target":"api","fields":[{"field":"replicas","from":1,"to":2}]}],
    "unmanaged": ["service legacy-worker"],
    "warnings": ["variables.STRIPE_KEY is a secret without a value"]
  }
}
```

## Endpoints

- `POST` [Apply a config file](https://docs.dispralabs.com/api/apply-a-config-file.md)
- `POST` [Plan a config file](https://docs.dispralabs.com/api/plan-a-config-file.md)
