chore: Create client API conversations with custom attributes (#8040)
- Update client API create conversations endpoint to accept custom attributes as well.
This commit is contained in:
@@ -138,6 +138,9 @@ public_message_create_payload:
|
||||
public_message_update_payload:
|
||||
$ref: ./request/public/message/update_payload.yml
|
||||
|
||||
public_conversation_create_payload:
|
||||
$ref: ./request/public/conversation/create_payload.yml
|
||||
|
||||
## ---------- RESPONSE ------------- ##
|
||||
## -------------------------------- ##
|
||||
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
type: object
|
||||
properties:
|
||||
custom_attributes:
|
||||
type: object
|
||||
description: Custom attributes of the conversation
|
||||
@@ -4,6 +4,12 @@ operationId: create-a-conversation
|
||||
summary: Create a conversation
|
||||
description: Create a conversation
|
||||
security: []
|
||||
parameters:
|
||||
- name: data
|
||||
in: body
|
||||
required: true
|
||||
schema:
|
||||
$ref: '#/definitions/public_conversation_create_payload'
|
||||
responses:
|
||||
200:
|
||||
description: Success
|
||||
|
||||
@@ -847,6 +847,16 @@
|
||||
"description": "Create a conversation",
|
||||
"security": [
|
||||
|
||||
],
|
||||
"parameters": [
|
||||
{
|
||||
"name": "data",
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/definitions/public_conversation_create_payload"
|
||||
}
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
@@ -6617,6 +6627,15 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"public_conversation_create_payload": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"custom_attributes": {
|
||||
"type": "object",
|
||||
"description": "Custom attributes of the conversation"
|
||||
}
|
||||
}
|
||||
},
|
||||
"extended_contact": {
|
||||
"allOf": [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user