PUT
/
threads

Authorizations

api-key
string
header
required

Your Melodi API key

Body

application/json
messages
object[]
required
projectId
number
required
externalId
string
externalUser
object

Request object for creating or updating an external user

metadata
object

Response

200 - application/json
createdAt
string
required

Date when the thread was created

id
number
required

Unique identifier for the thread

messages
object[]
required
metadata
object
required

Metadata associated with the thread

organizationId
number
required

ID of the organization to which the thread belongs

project
object
required
updatedAt
string
required

Date when the thread was last updated

externalId
string | null

External thread ID

externalUser
object

Represents an external user. Note: The combination of organizationId and externalId must be unique.