---
title: "Upsert Draft"
method: PUT
path: "/api/agents/{agent_id}/pricing-plan"
tags: ["agent-pricing-plan"]
---

# Upsert Draft

`PUT /api/agents/{agent_id}/pricing-plan`

## Request

- Base URL: `https://app.thinqos.com` (the document declares no server; this is the origin it was published from)
- URL: `https://app.thinqos.com/api/agents/{agent_id}/pricing-plan`
- Auth: none declared

## Path parameters

- `agent_id` string, uuid, required

## Headers

- `x-impersonate-identity-id` string, nullable

## Request body

- PricingPlanIn
  - `model` string, required
  - `per_use_price_usd` union
    - number
    - string
  - `sub_price_usd_month` union
    - number
    - string
  - `included_units_month` integer, nullable
  - `overage_policy` string, nullable
  - `overage_price_usd` union
    - number
    - string
  - `margin_multiplier` union
    - number
    - string
  - `min_monthly_usd` union
    - number
    - string
  - `trial_kind` string
  - `trial_runs` integer, nullable
  - `trial_days` integer, nullable
  - `throttle_per_min` integer, nullable
  - `throttle_per_day` integer, nullable
  - `currency` string

## Response `200`

Successful Response

- PricingPlanOut
  - `id` string, uuid, required
  - `agent_identity_id` string, uuid, required
  - `version` integer, required
  - `status` string, required
  - `model` string, required
  - `per_use_price_usd` string, nullable, required
  - `sub_price_usd_month` string, nullable, required
  - `included_units_month` integer, nullable, required
  - `overage_policy` string, nullable, required
  - `overage_price_usd` string, nullable, required
  - `margin_multiplier` string, nullable, required
  - `min_monthly_usd` string, nullable, required
  - `trial_kind` string, required
  - `trial_runs` integer, nullable, required
  - `trial_days` integer, nullable, required
  - `throttle_per_min` integer, nullable, required
  - `throttle_per_day` integer, nullable, required
  - `currency` string, required
  - `created_by` string, uuid, nullable, required
  - `published_at` string, date-time, nullable, required
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required
  - `publish_token` string, nullable

## Other responses

- `422`: Validation Error

---

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