---
title: Update meter pricing configuration
slug: reference/update-meter-pricing-configuration
docTags: 
createdAt: 2025-07-03T16:20:35.017Z
---

{
  "id": "fnxh7p6pIIyWWZxYhIfLl",
  "type": "api-oas-v2",
  "data": {
    "method": "PUT",
    "url": "https://app.amberflo.io/business-unit/meter/price",
    "servers": [
      {
        "url": "https://app.amberflo.io/business-unit/meter/price"
      }
    ],
    "name": "Update meter pricing configuration",
    "description": "<p>Update an existing price configuration for an Amberflo meter to modify pricing models, effective time periods, or calculation parameters. Allows changes to unit pricing, volume tiers, tiered structures, and group-based pricing configurations while maintaining historical pricing accuracy for business unit cost allocation.</p>",
    "contentType": "application/json",
    "request": {
      "pathParameters": [],
      "headerParameters": [],
      "queryParameters": [],
      "bodyDataParameters": [
        {
          "kind": "optional",
          "name": "body",
          "type": "object",
          "description": "Input model for creating meter price configurations that define how Amberflo meter usage is calculated and charged for accurate business unit cost allocation.",
          "customType": "business_unit.pricing.configuration.MeterPriceConfiguration.in",
          "schema": [
            {
              "name": "meterApiName",
              "kind": "required",
              "type": "string",
              "description": "Amberflo meter API identifier from Meter API definitions. Specifies which meter this price configuration applies to for usage calculations.",
              "example": ""
            },
            {
              "name": "label",
              "kind": "required",
              "type": "string",
              "description": "Human-readable display name for price configuration management. Used for administrative identification and organizational purposes in pricing setup.",
              "example": ""
            },
            {
              "name": "description",
              "kind": "optional",
              "type": "string",
              "description": "Detailed explanation of price configuration purpose and calculation logic. Provides context for pricing model application and business unit cost assignment.",
              "example": ""
            },
            {
              "name": "model",
              "kind": "required",
              "type": "object",
              "description": "Pricing calculation model defining cost computation logic. Supports unit, volume, tiered, and group-based pricing structures for usage-based billing.",
              "modelRef": "#/components/schemas/business_unit.pricing.generator.PriceMachineGenerator.in",
              "customType": "business_unit.pricing.generator.PriceMachineGenerator.in",
              "schema": [],
              "complexType": "oneOf",
              "complexItems": [
                {
                  "name": "business_unit.pricing.generator.BlockPriceGenerator.in",
                  "description": "",
                  "modelRef": "#/components/schemas/business_unit.pricing.generator.BlockPriceGenerator.in",
                  "schema": [
                    {
                      "name": "type",
                      "kind": "optional",
                      "type": "string",
                      "description": "Pricing model type identifier for block-based billing structure.\n\n**Fixed value:** Always \"block\" for block-based pricing with fixed block sizes.\n",
                      "example": "",
                      "default": "block"
                    },
                    {
                      "name": "size",
                      "kind": "optional",
                      "type": "integer<int64>",
                      "description": "Number of usage units that comprise one billable block for pricing calculations.\n\n**Example:** Size of 100 means usage is billed in increments of 100 units per block.\n",
                      "example": 0
                    },
                    {
                      "name": "price",
                      "kind": "optional",
                      "type": "number",
                      "description": "Cost per block of usage in account currency regardless of partial usage within block.\n\n**Important:** This price applies to each complete block, with fractional blocks handled per blockUseMode.\n",
                      "example": ""
                    },
                    {
                      "name": "blockUseMode",
                      "kind": "optional",
                      "type": "string",
                      "description": "Controls how partial blocks are priced when usage doesn't align with block boundaries.\n\n**Options:** FULL (charge full block price) or PARTIAL (charge proportionally).\n",
                      "modelRef": "#/components/schemas/business_unit.pricing.machine.BlockUseMode.in",
                      "customType": "business_unit.pricing.machine.BlockUseMode.in",
                      "schema": []
                    }
                  ]
                },
                {
                  "name": "business_unit.pricing.generator.GroupBlockPriceGenerator.in",
                  "description": "",
                  "modelRef": "#/components/schemas/business_unit.pricing.generator.GroupBlockPriceGenerator.in",
                  "schema": [
                    {
                      "name": "type",
                      "kind": "optional",
                      "type": "string",
                      "description": "Pricing model type identifier for dimension-based block pricing with variable rates per group.\n\n**Fixed value:** Always \"group_block\" for dimension-grouped block pricing models.\n",
                      "example": "",
                      "default": "group_block"
                    },
                    {
                      "name": "dimensionKeys",
                      "kind": "optional",
                      "type": "array",
                      "description": "Ordered array of dimension names that define the grouping structure for block pricing variations.\n\n**Example:** [\"region\", \"instance_type\"] creates pricing groups based on region and instance type combinations.\n",
                      "example": "",
                      "itemType": "string",
                      "customType": "string[]",
                      "itemExample": "",
                      "itemDefault": ""
                    },
                    {
                      "name": "priceTable",
                      "kind": "optional",
                      "type": "array",
                      "description": "Array of pricing rows defining specific dimension value combinations and their corresponding block pricing configuration.\n\n**Structure:** Each row maps dimension values to block size and price for that combination.\n",
                      "modelRef": "#/components/schemas/business_unit.pricing.generator.GroupBlockPriceGenerator.Row.in",
                      "customType": "business_unit.pricing.generator.GroupBlockPriceGenerator.Row.in[]",
                      "schema": [
                        {
                          "name": "dimensionValues",
                          "kind": "optional",
                          "type": "array",
                          "description": "",
                          "example": "",
                          "itemType": "string",
                          "customType": "string[]",
                          "itemExample": "",
                          "itemDefault": ""
                        },
                        {
                          "name": "size",
                          "kind": "optional",
                          "type": "integer<int64>",
                          "description": "",
                          "example": 0
                        },
                        {
                          "name": "price",
                          "kind": "optional",
                          "type": "number",
                          "description": "",
                          "example": ""
                        }
                      ]
                    },
                    {
                      "name": "blockUseMode",
                      "kind": "optional",
                      "type": "string",
                      "description": "Controls how partial blocks are priced when usage doesn't align with block boundaries across all groups.\n\n**Application:** Applied consistently across all dimension-based pricing groups.\n",
                      "modelRef": "#/components/schemas/business_unit.pricing.machine.BlockUseMode.in",
                      "customType": "business_unit.pricing.machine.BlockUseMode.in",
                      "schema": []
                    }
                  ]
                },
                {
                  "name": "business_unit.pricing.generator.GroupTieredPriceGenerator.in",
                  "description": "",
                  "modelRef": "#/components/schemas/business_unit.pricing.generator.GroupTieredPriceGenerator.in",
                  "schema": [
                    {
                      "name": "type",
                      "kind": "optional",
                      "type": "string",
                      "description": "Pricing model type identifier for dimension-based tiered pricing with progressive rates per group.\n\n**Fixed value:** Always \"group_tiered\" for dimension-grouped tiered pricing models.\n",
                      "example": "",
                      "default": "group_tiered"
                    },
                    {
                      "name": "dimensionKeys",
                      "kind": "optional",
                      "type": "array",
                      "description": "Ordered array of dimension names that define the grouping structure for tiered pricing variations.\n\n**Example:** [\"region\", \"service_level\"] creates tier structures based on region and service level combinations.\n",
                      "example": "",
                      "itemType": "string",
                      "customType": "string[]",
                      "itemExample": "",
                      "itemDefault": ""
                    },
                    {
                      "name": "priceTable",
                      "kind": "optional",
                      "type": "array",
                      "description": "Array of pricing rows defining specific dimension value combinations and their corresponding tier pricing structures.\n\n**Structure:** Each row maps dimension values to tier configurations for progressive billing within that group.\n",
                      "modelRef": "#/components/schemas/business_unit.pricing.generator.GroupTieredPriceGenerator.Row.in",
                      "customType": "business_unit.pricing.generator.GroupTieredPriceGenerator.Row.in[]",
                      "schema": [
                        {
                          "name": "dimensionValues",
                          "kind": "optional",
                          "type": "array",
                          "description": "",
                          "example": "",
                          "itemType": "string",
                          "customType": "string[]",
                          "itemExample": "",
                          "itemDefault": ""
                        },
                        {
                          "name": "tiers",
                          "kind": "optional",
                          "type": "array",
                          "description": "**Pricing tier definition for tiered and volume billing models**\n\n**Important note:** Defines usage range boundaries and pricing for progressive billing structures\n\n**Technical details:**\n- Used in TieredPriceGenerator and VolumePriceGenerator for usage-based pricing\n- Supports progressive pricing where different usage ranges have different rates\n- Block-based calculation allows for bulk pricing within tier boundaries\n\n**Constraint:** startAfterUnit must be less than or equal to next tier's startAfterUnit\n",
                          "modelRef": "#/components/schemas/business_unit.pricing.machine.PriceTier.in",
                          "customType": "business_unit.pricing.machine.PriceTier.in[]",
                          "schema": [
                            {
                              "name": "",
                              "description": "",
                              "customType": "Max depth limit reached"
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "name": "blockUseMode",
                      "kind": "optional",
                      "type": "string",
                      "description": "Controls how partial blocks within tiers are priced across all dimension-based pricing groups.\n\n**Application:** Applied to fractional blocks in each tier calculation for every group combination.\n",
                      "modelRef": "#/components/schemas/business_unit.pricing.machine.BlockUseMode.in",
                      "customType": "business_unit.pricing.machine.BlockUseMode.in",
                      "schema": []
                    }
                  ]
                },
                {
                  "name": "business_unit.pricing.generator.GroupUnitPriceGenerator.in",
                  "description": "",
                  "modelRef": "#/components/schemas/business_unit.pricing.generator.GroupUnitPriceGenerator.in",
                  "schema": [
                    {
                      "name": "type",
                      "kind": "optional",
                      "type": "string",
                      "description": "Pricing model type identifier for dimension-based unit pricing with variable rates per group.\n\n**Fixed value:** Always \"group_unit\" for dimension-grouped unit pricing models.\n",
                      "example": "",
                      "default": "group_unit"
                    },
                    {
                      "name": "dimensionKeys",
                      "kind": "required",
                      "type": "array",
                      "description": "The names (or keys) of the dimensions that form the price table.",
                      "example": "",
                      "itemType": "string",
                      "customType": "string[]",
                      "itemExample": "",
                      "itemDefault": ""
                    },
                    {
                      "name": "priceTable",
                      "kind": "required",
                      "type": "array",
                      "description": "Allows specifying different prices for different combinations of dimension values.",
                      "modelRef": "#/components/schemas/business_unit.pricing.generator.GroupUnitPriceGenerator.Row.in",
                      "customType": "business_unit.pricing.generator.GroupUnitPriceGenerator.Row.in[]",
                      "schema": [
                        {
                          "name": "",
                          "description": "",
                          "customType": "Max depth limit reached"
                        }
                      ]
                    },
                    {
                      "name": "blockUseMode",
                      "kind": "optional",
                      "type": "string",
                      "description": "Specifies how fractional usage is priced:\n- `PARTIAL` means that a fraction of a unit of usage is proportionally priced.\n- `FULL` means that a fraction of a unit of usage is priced the same as a whole unit of usage.\n",
                      "modelRef": "#/components/schemas/business_unit.pricing.machine.BlockUseMode.in",
                      "customType": "business_unit.pricing.machine.BlockUseMode.in",
                      "schema": [
                        {
                          "name": "",
                          "description": "",
                          "customType": "Max depth limit reached"
                        }
                      ]
                    }
                  ]
                },
                {
                  "name": "business_unit.pricing.generator.GroupVolumePriceGenerator.in",
                  "description": "",
                  "modelRef": "#/components/schemas/business_unit.pricing.generator.GroupVolumePriceGenerator.in",
                  "schema": [
                    {
                      "name": "",
                      "description": "",
                      "customType": "Max depth limit reached"
                    }
                  ]
                },
                {
                  "name": "business_unit.pricing.generator.TieredPriceGenerator.in",
                  "description": "",
                  "modelRef": "#/components/schemas/business_unit.pricing.generator.TieredPriceGenerator.in",
                  "schema": [
                    {
                      "name": "",
                      "description": "",
                      "customType": "Max depth limit reached"
                    }
                  ]
                },
                {
                  "name": "business_unit.pricing.generator.UnitPriceGenerator.in",
                  "description": "",
                  "modelRef": "#/components/schemas/business_unit.pricing.generator.UnitPriceGenerator.in",
                  "schema": [
                    {
                      "name": "",
                      "description": "",
                      "customType": "Max depth limit reached"
                    }
                  ]
                },
                {
                  "name": "business_unit.pricing.generator.VolumePriceGenerator.in",
                  "description": "",
                  "modelRef": "#/components/schemas/business_unit.pricing.generator.VolumePriceGenerator.in",
                  "schema": [
                    {
                      "name": "",
                      "description": "",
                      "customType": "Max depth limit reached"
                    }
                  ]
                }
              ]
            },
            {
              "name": "startTimeInSeconds",
              "kind": "required",
              "type": "integer<int64>",
              "description": "Configuration activation timestamp in Unix seconds format. Defines when price configuration becomes effective for meter usage calculations.",
              "example": 0
            },
            {
              "name": "endTimeInSeconds",
              "kind": "optional",
              "type": "integer<int64>",
              "description": "Optional configuration expiration timestamp in Unix seconds format. When not set, configuration applies until next version starts. Used for explicit period termination.",
              "example": 0
            }
          ],
          "modelRef": "#/components/schemas/business_unit.pricing.configuration.MeterPriceConfiguration.in",
          "isExpanded": true
        }
      ],
      "formDataParameters": [],
      "oAuthParameters": [
        {
          "id": "apiKey",
          "name": "X-API-KEY",
          "kind": "optional",
          "type": "apiKey",
          "in": "header"
        }
      ]
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "Successful request",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "Complete meter price configuration with system metadata defining how Amberflo meter usage is calculated and charged for accurate business unit cost allocation.",
            "customType": "business_unit.pricing.configuration.MeterPriceConfiguration.out",
            "schema": [
              {
                "name": "meterApiName",
                "kind": "required",
                "type": "string",
                "description": "Amberflo meter API identifier from Meter API definitions. Specifies which meter this price configuration applies to for usage calculations.",
                "example": ""
              },
              {
                "name": "label",
                "kind": "required",
                "type": "string",
                "description": "Human-readable display name for price configuration management. Used for administrative identification and organizational purposes in pricing setup.",
                "example": ""
              },
              {
                "name": "description",
                "kind": "optional",
                "type": "string",
                "description": "Detailed explanation of price configuration purpose and calculation logic. Provides context for pricing model application and business unit cost assignment.",
                "example": ""
              },
              {
                "name": "model",
                "kind": "required",
                "type": "object",
                "description": "Pricing calculation model defining cost computation logic. Supports unit, volume, tiered, and group-based pricing structures for usage-based billing.",
                "modelRef": "#/components/schemas/business_unit.pricing.generator.PriceMachineGenerator.out",
                "customType": "business_unit.pricing.generator.PriceMachineGenerator.out",
                "schema": [],
                "complexType": "oneOf",
                "complexItems": [
                  {
                    "name": "business_unit.pricing.generator.BlockPriceGenerator.out",
                    "description": "",
                    "modelRef": "#/components/schemas/business_unit.pricing.generator.BlockPriceGenerator.out",
                    "schema": [
                      {
                        "name": "type",
                        "kind": "optional",
                        "type": "string",
                        "description": "",
                        "example": "",
                        "default": "block"
                      },
                      {
                        "name": "size",
                        "kind": "optional",
                        "type": "integer<int64>",
                        "description": "",
                        "example": 0
                      },
                      {
                        "name": "price",
                        "kind": "optional",
                        "type": "number",
                        "description": "",
                        "example": ""
                      },
                      {
                        "name": "blockUseMode",
                        "kind": "optional",
                        "type": "string",
                        "description": "Billing behavior for fractional block usage when consumption doesn't align with block size boundaries.\n\n**Values:**\n- **FULL:** Charge complete block price for any partial block usage (round up billing)\n- **PARTIAL:** Charge proportional price based on actual usage within the block (exact billing)\n",
                        "modelRef": "#/components/schemas/business_unit.pricing.machine.BlockUseMode.out",
                        "customType": "business_unit.pricing.machine.BlockUseMode.out",
                        "schema": []
                      }
                    ]
                  },
                  {
                    "name": "business_unit.pricing.generator.GroupBlockPriceGenerator.out",
                    "description": "",
                    "modelRef": "#/components/schemas/business_unit.pricing.generator.GroupBlockPriceGenerator.out",
                    "schema": [
                      {
                        "name": "type",
                        "kind": "optional",
                        "type": "string",
                        "description": "",
                        "example": "",
                        "default": "group_block"
                      },
                      {
                        "name": "dimensionKeys",
                        "kind": "optional",
                        "type": "array",
                        "description": "",
                        "example": "",
                        "itemType": "string",
                        "customType": "string[]",
                        "itemExample": "",
                        "itemDefault": ""
                      },
                      {
                        "name": "priceTable",
                        "kind": "optional",
                        "type": "array",
                        "description": "",
                        "modelRef": "#/components/schemas/business_unit.pricing.generator.GroupBlockPriceGenerator.Row.out",
                        "customType": "business_unit.pricing.generator.GroupBlockPriceGenerator.Row.out[]",
                        "schema": [
                          {
                            "name": "dimensionValues",
                            "kind": "optional",
                            "type": "array",
                            "description": "",
                            "example": "",
                            "itemType": "string",
                            "customType": "string[]",
                            "itemExample": "",
                            "itemDefault": ""
                          },
                          {
                            "name": "size",
                            "kind": "optional",
                            "type": "integer<int64>",
                            "description": "",
                            "example": 0
                          },
                          {
                            "name": "price",
                            "kind": "optional",
                            "type": "number",
                            "description": "",
                            "example": ""
                          }
                        ]
                      },
                      {
                        "name": "blockUseMode",
                        "kind": "optional",
                        "type": "string",
                        "description": "Billing behavior for fractional block usage when consumption doesn't align with block size boundaries.\n\n**Values:**\n- **FULL:** Charge complete block price for any partial block usage (round up billing)\n- **PARTIAL:** Charge proportional price based on actual usage within the block (exact billing)\n",
                        "modelRef": "#/components/schemas/business_unit.pricing.machine.BlockUseMode.out",
                        "customType": "business_unit.pricing.machine.BlockUseMode.out",
                        "schema": []
                      }
                    ]
                  },
                  {
                    "name": "business_unit.pricing.generator.GroupTieredPriceGenerator.out",
                    "description": "",
                    "modelRef": "#/components/schemas/business_unit.pricing.generator.GroupTieredPriceGenerator.out",
                    "schema": [
                      {
                        "name": "type",
                        "kind": "optional",
                        "type": "string",
                        "description": "",
                        "example": "",
                        "default": "group_tiered"
                      },
                      {
                        "name": "dimensionKeys",
                        "kind": "optional",
                        "type": "array",
                        "description": "",
                        "example": "",
                        "itemType": "string",
                        "customType": "string[]",
                        "itemExample": "",
                        "itemDefault": ""
                      },
                      {
                        "name": "priceTable",
                        "kind": "optional",
                        "type": "array",
                        "description": "",
                        "modelRef": "#/components/schemas/business_unit.pricing.generator.GroupTieredPriceGenerator.Row.out",
                        "customType": "business_unit.pricing.generator.GroupTieredPriceGenerator.Row.out[]",
                        "schema": [
                          {
                            "name": "dimensionValues",
                            "kind": "optional",
                            "type": "array",
                            "description": "",
                            "example": "",
                            "itemType": "string",
                            "customType": "string[]",
                            "itemExample": "",
                            "itemDefault": ""
                          },
                          {
                            "name": "tiers",
                            "kind": "optional",
                            "type": "array",
                            "description": "**Pricing tier definition for tiered and volume billing models**\n\n**Important note:** Defines usage range boundaries and pricing for progressive billing structures\n\n**Technical details:**\n- Used in TieredPriceGenerator and VolumePriceGenerator for usage-based pricing\n- Supports progressive pricing where different usage ranges have different rates\n- Block-based calculation allows for bulk pricing within tier boundaries\n\n**Constraint:** startAfterUnit must be less than or equal to next tier's startAfterUnit\n",
                            "modelRef": "#/components/schemas/business_unit.pricing.machine.PriceTier.out",
                            "customType": "business_unit.pricing.machine.PriceTier.out[]",
                            "schema": [
                              {
                                "name": "",
                                "description": "",
                                "customType": "Max depth limit reached"
                              }
                            ]
                          }
                        ]
                      },
                      {
                        "name": "blockUseMode",
                        "kind": "optional",
                        "type": "string",
                        "description": "Billing behavior for fractional block usage when consumption doesn't align with block size boundaries.\n\n**Values:**\n- **FULL:** Charge complete block price for any partial block usage (round up billing)\n- **PARTIAL:** Charge proportional price based on actual usage within the block (exact billing)\n",
                        "modelRef": "#/components/schemas/business_unit.pricing.machine.BlockUseMode.out",
                        "customType": "business_unit.pricing.machine.BlockUseMode.out",
                        "schema": []
                      }
                    ]
                  },
                  {
                    "name": "business_unit.pricing.generator.GroupUnitPriceGenerator.out",
                    "description": "",
                    "modelRef": "#/components/schemas/business_unit.pricing.generator.GroupUnitPriceGenerator.out",
                    "schema": [
                      {
                        "name": "type",
                        "kind": "optional",
                        "type": "string",
                        "description": "",
                        "example": "",
                        "default": "group_unit"
                      },
                      {
                        "name": "dimensionKeys",
                        "kind": "required",
                        "type": "array",
                        "description": "The names (or keys) of the dimensions that form the price table.",
                        "example": "",
                        "itemType": "string",
                        "customType": "string[]",
                        "itemExample": "",
                        "itemDefault": ""
                      },
                      {
                        "name": "priceTable",
                        "kind": "required",
                        "type": "array",
                        "description": "Allows specifying different prices for different combinations of dimension values.",
                        "modelRef": "#/components/schemas/business_unit.pricing.generator.GroupUnitPriceGenerator.Row.out",
                        "customType": "business_unit.pricing.generator.GroupUnitPriceGenerator.Row.out[]",
                        "schema": [
                          {
                            "name": "",
                            "description": "",
                            "customType": "Max depth limit reached"
                          }
                        ]
                      },
                      {
                        "name": "blockUseMode",
                        "kind": "optional",
                        "type": "string",
                        "description": "Specifies how fractional usage is priced:\n- `PARTIAL` means that a fraction of a unit of usage is proportionally priced.\n- `FULL` means that a fraction of a unit of usage is priced the same as a whole unit of usage.\n",
                        "modelRef": "#/components/schemas/business_unit.pricing.machine.BlockUseMode.out",
                        "customType": "business_unit.pricing.machine.BlockUseMode.out",
                        "schema": [
                          {
                            "name": "",
                            "description": "",
                            "customType": "Max depth limit reached"
                          }
                        ]
                      }
                    ]
                  },
                  {
                    "name": "business_unit.pricing.generator.GroupVolumePriceGenerator.out",
                    "description": "",
                    "modelRef": "#/components/schemas/business_unit.pricing.generator.GroupVolumePriceGenerator.out",
                    "schema": [
                      {
                        "name": "",
                        "description": "",
                        "customType": "Max depth limit reached"
                      }
                    ]
                  },
                  {
                    "name": "business_unit.pricing.generator.TieredPriceGenerator.out",
                    "description": "",
                    "modelRef": "#/components/schemas/business_unit.pricing.generator.TieredPriceGenerator.out",
                    "schema": [
                      {
                        "name": "",
                        "description": "",
                        "customType": "Max depth limit reached"
                      }
                    ]
                  },
                  {
                    "name": "business_unit.pricing.generator.UnitPriceGenerator.out",
                    "description": "",
                    "modelRef": "#/components/schemas/business_unit.pricing.generator.UnitPriceGenerator.out",
                    "schema": [
                      {
                        "name": "",
                        "description": "",
                        "customType": "Max depth limit reached"
                      }
                    ]
                  },
                  {
                    "name": "business_unit.pricing.generator.VolumePriceGenerator.out",
                    "description": "",
                    "modelRef": "#/components/schemas/business_unit.pricing.generator.VolumePriceGenerator.out",
                    "schema": [
                      {
                        "name": "",
                        "description": "",
                        "customType": "Max depth limit reached"
                      }
                    ]
                  }
                ]
              },
              {
                "name": "startTimeInSeconds",
                "kind": "required",
                "type": "integer<int64>",
                "description": "Configuration activation timestamp in Unix seconds format. Defines when price configuration becomes effective for meter usage calculations.",
                "example": 0
              },
              {
                "name": "endTimeInSeconds",
                "kind": "optional",
                "type": "integer<int64>",
                "description": "Optional configuration expiration timestamp in Unix seconds format. When not set, configuration applies until next version starts. Used for explicit period termination.",
                "example": 0
              },
              {
                "name": "createTimeInMillis",
                "kind": "optional",
                "type": "integer<int64>",
                "description": "Configuration creation timestamp in Unix milliseconds format. Tracks when meter price configuration was first established in system.",
                "example": 0
              },
              {
                "name": "updateTimeInMillis",
                "kind": "optional",
                "type": "integer<int64>",
                "description": "Configuration modification timestamp in Unix milliseconds format. Tracks when meter price configuration was last changed or updated.",
                "example": 0
              }
            ],
            "modelRef": "#/components/schemas/business_unit.pricing.configuration.MeterPriceConfiguration.out",
            "isExpanded": true
          }
        ]
      }
    ],
    "hasXCodeSamples": false,
    "examples": {
      "languages": [
        {
          "id": "8D2_2ynHCYjRGqPBFknDp",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request PUT \\\n     --url https://app.amberflo.io/business-unit/meter/price \\\n     --header 'accept: application/json' \\\n     --header 'content-type: application/json' \\\n     --data '{\n     \"meterApiName\": \"\",\n     \"label\": \"\",\n     \"model\": {\n     \"type\": \"block\"\n     },\n     \"startTimeInSeconds\": 0\n     }'"
        },
        {
          "id": "bDHpBExEKHkdsuy69CIZj",
          "language": "javascript",
          "label": "javascript",
          "code": "var myHeaders = new Headers();\nmyHeaders.append(\"accept\", \"application/json\");\nmyHeaders.append(\"content-type\", \"application/json\");\n\nvar raw = JSON.stringify({\n   \"meterApiName\": \"\",\n   \"label\": \"\",\n   \"model\": {\n      \"type\": \"block\"\n   },\n   \"startTimeInSeconds\": 0\n});\n\nvar requestOptions = {\n   method: 'PUT',\n   headers: myHeaders,\n   body: raw,\n   redirect: 'follow'\n};\n\nfetch(\"https://app.amberflo.io/business-unit/meter/price\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "-P9P4TTMcS0gWlAV0WSM8",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"https://app.amberflo.io/business-unit/meter/price\")\n\nhttps = Net::HTTP.new(url.host, url.port)\nhttps.use_ssl = true\n\nrequest = Net::HTTP::Put.new(url)\nrequest[\"accept\"] = \"application/json\"\nrequest[\"content-type\"] = \"application/json\"\nrequest.body = JSON.dump({\n   \"meterApiName\": \"\",\n   \"label\": \"\",\n   \"model\": {\n      \"type\": \"block\"\n   },\n   \"startTimeInSeconds\": 0\n})\n\nresponse = https.request(request)\nputs response.read_body\n"
        },
        {
          "id": "mtA3QXjU4ZlNJoPfMhHml",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"https://app.amberflo.io/business-unit/meter/price\"\n\npayload = json.dumps({\n   \"meterApiName\": \"\",\n   \"label\": \"\",\n   \"model\": {\n      \"type\": \"block\"\n   },\n   \"startTimeInSeconds\": 0\n})\nheaders = {\n   'accept': 'application/json',\n   'content-type': 'application/json'\n}\n\nresponse = requests.request(\"PUT\", url, headers=headers, data=payload)\n\nprint(response.text)\n"
        }
      ],
      "selectedLanguageId": "8D2_2ynHCYjRGqPBFknDp"
    },
    "results": {
      "languages": [
        {
          "id": "response-0-200",
          "language": "200",
          "code": "// Successful request\n{\n  \"meterApiName\": \"\",\n  \"label\": \"\",\n  \"description\": \"\",\n  \"model\": {},\n  \"startTimeInSeconds\": \"\",\n  \"endTimeInSeconds\": \"\",\n  \"createTimeInMillis\": \"\",\n  \"updateTimeInMillis\": \"\"\n}"
        }
      ],
      "selectedLanguageId": "response-0-200"
    }
  },
  "children": [
    {
      "text": "",
      "id": "ZyA8TzrovSqRdu-LRg10v"
    }
  ]
}