---
title: "Save AI Character to Drupal"
method: POST
path: "/api/v1/characters/save"
tags: ["Characters"]
deprecated: true
---

# Save AI Character to Drupal

`POST /api/v1/characters/save`

> **Deprecated.**

Saves an AI character from Postgres to Drupal MySQL and updates the Postgres record with the Drupal ID. The characterId from the generate step is required.

## Request body

- SaveAiCharacterRequest
  - `characterId` string, uuid, required — Character ID from generation step
  - `b2bClientId` string — B2B client ID (required if ohFunCreatorId not provided)
  - `ohFunCreatorId` string — OhFun creator ID (required if b2bClientId not provided)
  - `firstName` string — Override first name
  - `lastName` string — Override last name
  - `biography` string — Override biography
  - `alias` string — Override alias/nickname
  - `job` string — Override job title
  - `whereYouLive` string — Override location
  - `dateOfBirth` string — Override date of birth. Character must be 21+.
  - `gender` string — Override gender
  - `orientation` string — Override orientation
  - `relationshipStatus` string — Override relationship status
  - `interests` Interests — unresolved $ref
  - `personality` string — Override personality
  - `typeOfCharacter` string — Type of character for OhChat
  - `bodyType` number — Body type ID for OhChat
  - `eyeColor` number — Eye color ID for OhChat
  - `hairColor` number — Hair color ID for OhChat
  - `messagePrice` number — Price per message
  - `subscriptionPrice` number — Subscription price
  - `uid` number — User ID in OhChat/Drupal system

## Response `200`

Character saved to Drupal successfully

- object
  - `success` boolean — Whether the save was successful
  - `characterId` number — The character ID in Drupal
  - `message` string — Status message

## Other responses

- `401` — Unauthorized - invalid API key
- `404` — Character not found in Postgres

---

[API](https://skmtc.dev/oh/apis/ohapi-documentation.md) · [All operations](https://skmtc.dev/oh/apis/ohapi-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/oh/ohapi-documentation/revisions/b623c2e9cb65/schema)
