---
title: "POST /api/v1/GenevaActions/Billing/{environmentId}/state-changes"
method: POST
path: "/api/v1/GenevaActions/Billing/{environmentId}/state-changes"
tags: ["Billing"]
---

# POST /api/v1/GenevaActions/Billing/{environmentId}/state-changes

`POST /api/v1/GenevaActions/Billing/{environmentId}/state-changes`

## Path parameters

- `environmentId` string, uuid, required

## Request body

- CreateEnvironmentStateChangeBody
  - `time` string, date-time, nullable
  - `oldValue` integer
  - `newValue` integer

## Response `200`

Success

- EnvironmentStateChange
  - `id` string, nullable
  - `sessionToken` string, nullable
  - `partitionKey` string, nullable
  - `time` string, date-time
  - `environment` EnvironmentBillingInfo
    - `id` string, nullable
    - `name` string, nullable
    - `userId` string, nullable
    - `sku` Sku
      - `name` string, nullable
      - `tier` string, nullable
  - `oldValue` integer
  - `newValue` integer

## Other responses

- `404` — Not Found

---

[API](https://skmtc.net/visualstudio/apis/vsonline.md) · [All operations](https://skmtc.net/visualstudio/apis/vsonline/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/visualstudio/vsonline/versions/d55b712ea3ab/schema)
