PUT
/
threads

Authorizations

api-key
string
headerrequired

Your Melodi API key

Body

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

Request object for creating or updating an external user

Response

200 - application/json
id
number
required

Unique identifier for the thread

organizationId
number
required

ID of the organization to which the thread belongs

project
object
required
messages
object[]
required
metadata
object
required

Metadata associated with the thread

createdAt
string
required

Date when the thread was created

updatedAt
string
required

Date when the thread was last updated

externalId
string | null

External thread ID

externalUser
object

Request object for creating or updating an external user