---
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

## 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

---

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