---
title: "PUT /public/console/v2/chargeback-cost"
method: PUT
path: "/public/console/v2/chargeback-cost"
tags: ["cli_chargeback-cost_console_v2_24"]
---

# PUT /public/console/v2/chargeback-cost

`PUT /public/console/v2/chargeback-cost`

## Request

- Base URL: `https://developers.conduktor.io` (the document declares no server; this is the origin it was published from)
- URL: `https://developers.conduktor.io/public/console/v2/chargeback-cost`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/conduktor/apis/conduktor-console-api/docs/public/console/v2/chargeback-cost/put.ts> (a function with typed inputs; its response is checked against the schema)

Create or update a ChargebackCost

## Query parameters

- `dryMode` boolean

## Request body

- ChargebackCostResourceV2
  - `apiVersion` string, required
  - `kind` 'ChargebackCost', required
  - `metadata` ChargebackCostMetadata, required
    - `name` string, required
  - `spec` ChargebackCostSpec, required
    - `topics` ChargebackCostTopics, required
      - `storageGigaBytesHourCost` string, required
      - `partitionHourCost` string, required
    - `network` ChargebackCostNetwork
      - `ingressGigaByteCost` string
      - `egressGigaBytesCost` string
    - `connect` ChargebackCostConnect
      - `connectorTaskHourDefault` string
      - `connectorTaskHourOverrides` ChargebackCostConnectorOverride[]
        - `connectorClass` string, required
        - `connectorTaskHour` string, required

## Response `200`

- ChargebackCostApplyResultV2
  - `resource` ChargebackCostResourceV2, required
    - `apiVersion` string, required
    - `kind` 'ChargebackCost', required
    - `metadata` ChargebackCostMetadata, required
      - `name` string, required
    - `spec` ChargebackCostSpec, required
      - `topics` ChargebackCostTopics, required
        - `storageGigaBytesHourCost` string, required
        - `partitionHourCost` string, required
      - `network` ChargebackCostNetwork
        - `ingressGigaByteCost` string
        - `egressGigaBytesCost` string
      - `connect` ChargebackCostConnect
        - `connectorTaskHourDefault` string
        - `connectorTaskHourOverrides` ChargebackCostConnectorOverride[]
          - `connectorClass` string, required
          - `connectorTaskHour` string, required
  - `upsertResult` 'Created' | 'Updated' | 'NotChanged', required

## Other responses

- `400`: The request is not valid
- `401`: The user is not authenticated
- `403`: The user doesn't have sufficient privilege to do this operation
- `404`: No chargeback-cost with this technical id exists
- `409`: The request does not match one of the business rules
- `500`: An unexpected error occurred in the server

---

[API](https://skmtc.dev/conduktor/apis/conduktor-console-api.md) - [All operations](https://skmtc.dev/conduktor/apis/conduktor-console-api/llms.txt) - [OpenAPI document](https://skmtc.dev/conduktor/apis/conduktor-console-api/revisions/24750c294805?raw)
