---
title: "Create"
method: POST
path: "/api/cp/card/{cardId}/rev"
tags: ["Card Revision"]
---

# Create

`POST /api/cp/card/{cardId}/rev`

Create a new Card Revision record.

## Path parameters

- `cardId` string, required

## Request body

- CardRevisionInput
  - `id` integer — Id
  - `card_id` string, required — Card Id (references card.id)
  - `name` string, required — Name
  - `ts` string, date-time, required — Ts
  - `revision` integer, required — Revision
  - `presentation` string — Presentation
  - `external` integer, required — External
  - `expire` string, date-time, required — Expire
  - `stale` integer, required — Stale
  - `currency` string — Currency
  - `date_live` string, date-time — Date Live
  - `count` integer — Count
  - `live_rev_id` integer — Live Rev Id
  - `billing_precision` integer, required — Billing Precision
  - `rounding_method` 'up' | 'down' | 'half-up' | 'half-down' — Rounding Method
  - `duration_rounding_method` 'up' | 'down' | 'half-up' | 'half-down' — Duration Rounding Method
  - `origin_billing_source` string, required — Origin Billing Source
  - `origin_billing_destination` string, required — Origin Billing Destination
  - `storage` 'live' | 'archive' | 'archiving' | 'archiving-deleting' | 'making-live', required — Storage
  - `archiving_at` string, date-time, nullable — Archiving At
  - `archive_rule_count` integer — Archive Rule Count
  - `archive_sha256` string — Archive Sha 256
  - `archive_size` integer — Archive Size
  - `archive_created_at` string, date-time, nullable — Archive Created At
  - `archive_deleted_at` string, date-time, nullable — Archive Deleted At
  - `archive_error` string — Archive Error

## Response `200`

Successful response

- CreateResponse
  - `id` union — The ID of the newly created record
    - integer
    - string
  - `status` string — Operation status

## Other responses

- `400` — Bad Request - Invalid parameters or request body
- `401` — Authentication information is missing or invalid
- `403` — Access denied - insufficient permissions or dependency access failure
- `409` — Conflict - foreign key or unique constraint violation on write
- `500` — Internal server error

---

[API](https://skmtc.dev/connexcs/apis/connexcs-control-panel-api.md) · [All operations](https://skmtc.dev/connexcs/apis/connexcs-control-panel-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/connexcs/connexcs-control-panel-api/revisions/54bc2ed6edae/schema)
