---
title: "Replace Card Content"
method: POST
path: "/api/v1/edit-card-content"
tags: ["Chat"]
---

# Replace Card Content

`POST /api/v1/edit-card-content`

## Request

- Base URL: `https://backend.caspr.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://backend.caspr.ai/api/v1/edit-card-content`
- Auth: OAuth 2
  - Password
  - Token URL: `token`

Replace section or subsection content for a particular active card

## Request body

- RefineOrDeleteRequest
  - `report_id` string, required
  - `card` object, required

## Response `200`

Successful Response

- RefineOrDeleteResponse
  - `success` boolean, required
  - `message` string, required
  - `refine_card` object, nullable

## Other responses

- `401`: Unauthorized
- `404`: Not Found
- `422`: Unprocessable Entity
- `500`: Internal Server Error

---

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