Skip to main content
POST
Create thread
Scope requis : THREADS_WRITE

Comportement

Démarre un fil de discussion sur un élément de conversation. content devient le premier commentaire du fil, et la réponse est le fil complet incluant ce commentaire. Chaque élément ne peut avoir qu’un seul fil. S’il en existe déjà un, la requête retourne une erreur 409 avec le code THREAD_ALREADY_EXISTS — retrouvez-le avec GET /v2/api/threads et ajoutez-y un commentaire à la place.

Mentions

Mentionnez des coéquipiers inline dans content avec @[Display Name](usr-xxxx) — voir le guide des mentions.

Erreurs

Autorisations

Authorization
string
header
requis

Corps

application/json
entity_type
enum<string>
requis

Type of the conversation item to attach the thread to.

Options disponibles:
CALL,
TEXT_MESSAGE,
CONVERSATION_NOTE
entity_id
string
requis

ID of the conversation item (cll-*, msg-*, or not-*).

Exemple:

"cll-abc123"

content
string
requis

First comment text (max 4000 characters). Mention teammates inline with @[Name](usr-...).

Exemple:

"Can someone call them back today? @[Jane Doe](usr-abc123)"

Réponse

Thread created with its first comment

data
object