Skip to content

DmConversionController_convert

POST
/api/chat/direct-messages/{id}/convert
curl --request POST \
--url https://api.streams.chat/api/chat/direct-messages/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/convert \
--header 'Content-Type: application/json' \
--data '{ "title": "example", "visibility": "public", "history": { "kind": "all" }, "streamId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" }'
id
required
string format: uuid
/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/
Media typeapplication/json
object
title
required
string
>= 1 characters <= 255 characters
visibility
string
default: private
Allowed values: public private
history
required
One of:
object
kind
required
string
Allowed values: all
streamId
required
string format: uuid
/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/