Specific API Endpoints
Create or Update Thread
Create a new thread or update an existing thread in Melodi.
PUT
/
threads
Authorizations
api-key
string
headerrequiredYour Melodi API key
Body
application/json
messages
object[]
requiredprojectId
number
requiredexternalId
string
metadata
object
externalUser
object
Request object for creating or updating an external user
Response
200 - application/json
id
number
requiredUnique identifier for the thread
organizationId
number
requiredID of the organization to which the thread belongs
project
object
requiredmessages
object[]
requiredmetadata
object
requiredMetadata associated with the thread
createdAt
string
requiredDate when the thread was created
updatedAt
string
requiredDate when the thread was last updated
externalId
string | null
External thread ID
externalUser
object
Request object for creating or updating an external user
Was this page helpful?