---
title: "Update Codex Cost Per Credit"
method: PATCH
path: "/codex-cost-per-credit/{codex_cost_per_credit_id}"
tags: ["codex-cost-per-credit"]
---

# Update Codex Cost Per Credit

`PATCH /codex-cost-per-credit/{codex_cost_per_credit_id}`

## Path parameters

- `codex_cost_per_credit_id` string, uuid4, required

## Request body

- CodexCostPerCreditUpdate
  - `start_date` string, date, nullable
  - `end_date` string, date, nullable
  - `cost_per_credit` union
    - number
    - string

## Response `200`

Successful Response

- CodexCostPerCreditResponse
  - `start_date` string, date, required
  - `end_date` string, date, required
  - `cost_per_credit` string, required
  - `id` string, uuid4, required
  - `organization_id` string, uuid4, required
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/galileo/apis/galileo-api-server.md) · [All operations](https://skmtc.net/galileo/apis/galileo-api-server/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/galileo/galileo-api-server/versions/933e8c8e6366/schema)
