Conversations
Create or update a conversation
Creates a conversation, or updates conversation details.
To update conversation details, you only need to send the subset of fields you want to update. In that respect, even though you update a conversation with an HTTP PUT request method, the update acts similar to an HTTP PATCH request method.
Note: You can't remove participants from a conversation by providing a list of participants that excludes some existing participants. To remove participants from a conversation, use the participation endpoint.
put/v1/{appId}/conversations/{conversationId}
Request
- Base URLhttps://api.talkjs.com
- Auth
- HTTP bearer
- or HTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
appIdstring required
Example:abcd1234
A unique identifier of your TalkJS app. You can find your app ID on the Settings page of your dashboard.
conversationIdstring required
Example:0123456789abcdef
A unique identifier of a conversation.
Request body
Example request
{
"participants": [
"alice",
"zayneb"
],
"subject": "Studio headphones",
"welcomeMessages": [
"Hello there!",
"I'm currently out of town, leave a message and I'll respond ASAP :)"
],
"custom": {
"productId": "012345"
},
"photoUrl": "https://example.com/productpictures/012345.jpg"
}Response
Empty response
object required
Empty response
Changes
No recorded changes to this operation across all 1 revision of this API.