Skip to main content
PATCH
/
api
/
chats
cURL
curl --request PATCH \
  --url https://recoup-api.vercel.app/api/chats \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "chatId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "topic": "<string>"
}
'
{
  "status": "success",
  "chat": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "account_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "topic": "<string>",
    "updated_at": "2023-11-07T05:31:56Z",
    "artist_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  }
}

Authorizations

x-api-key
string
header
required

Your Recoup API key. Learn more.

Body

application/json

Chat fields to update

chatId
string<uuid>
required

The unique identifier (UUID) of the chat room to update

topic
string
required

The new display name for the chat room. Must be between 3 and 50 characters.

Required string length: 3 - 50

Response

Chat updated successfully

status
enum<string>
required

Status of the request

Available options:
success
chat
object
required

The updated chat room object