---
title: "Upsert Cost Attribution"
method: POST
path: "/global_config/cost-attribution"
tags: ["GLOBAL_CONFIG"]
---

# Upsert Cost Attribution

`POST /global_config/cost-attribution`

Upsert cost attribution global configuration

## Request body

- UpsertCostAttributionRequest
  - `enabled` boolean
  - `mode` string, nullable

## Response `200`

Successful Response

- CostAttributionResponse
  - `enabled` boolean, required
  - `mode` string, required

## Other responses

- `400` — Bad request
- `403` — Not supported for public user
- `404` — Configuration not found
- `422` — Validation Error

## Changes

- **2026-09-15** `8a08bdb37cfa` — 2 info
  - the `mode` request property default value `warehouse` was removed
  - request property `mode` list-of-types was widened by adding types `null` to media type `application/json`

[Change history](https://skmtc.dev/myaltimate/apis/fastapi/changes/global_config/cost-attribution/post.md)

---

[API](https://skmtc.dev/myaltimate/apis/fastapi.md) · [All operations](https://skmtc.dev/myaltimate/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc.dev/myaltimate/apis/fastapi/revisions/eb8306fa77dd?raw)
