---
title: "Update showback"
method: PATCH
path: "/v1/cost-allocation/{id}"
tags: ["Cost allocation"]
---

# Update showback

`PATCH /v1/cost-allocation/{id}`

## Request

- Base URL: `https://api.nops.io`
- URL: `https://api.nops.io/v1/cost-allocation/{id}`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/nops/apis/nops-public-api/docs/v1/cost-allocation/:id/patch.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `id` string, required: Showback ID

## Headers

- `Idempotency-Key` string, required: Unique key for safe retries on write requests (required, max 64 characters).

## Request body

- object
  - `name` string
  - `active` boolean
  - `allocationTagType` 'tags' | 'labels' | 'cost_allocation_tags'
  - `tagKeys` string[]
  - `extraValues` string[]
  - `hideValues` string[]
  - `removedShowbackValues` string[]
  - `baseFilters` object[]
    - `dimension` string, required
    - `mode` 'include' | 'exclude', required
    - `values` string[], required
    - `valueModes` object
    - `texts` object[]
      - `mode` 'include' | 'exclude', required
      - `text` string, required
    - `textCombinator` 'and' | 'or'
    - `keyCombinator` 'and' | 'or'
    - `tagKeyOnly` boolean
    - `includePreAttributionHistory` true
  - `category` 'ai_agents' | 'ai_seats' | 'ai', nullable
  - `monthlyProcessingEnabled` boolean

## Response `200`

Update showback

- object
  - `data` object, required: JSON object

## Other responses

- `401`: Unauthorized — invalid or missing API key
- `403`: Forbidden — insufficient permissions or entitlement

---

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