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

# Upsert Cost Attribution

`POST /global_config/cost-attribution`

## Request

- Base URL: `https://api.myaltimate.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.myaltimate.com/global_config/cost-attribution`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer

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`

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

---

[API](https://skmtc.dev/myaltimate/apis/myaltimate-api.md) - [All operations](https://skmtc.dev/myaltimate/apis/myaltimate-api/llms.txt) - [OpenAPI document](https://skmtc.dev/myaltimate/apis/myaltimate-api/revisions/727657ce54e9?raw)
