freshworks · Schema
MessageCreate
Properties
| Name | Type | Description |
|---|---|---|
| message_type | string | Type of message. |
| actor_type | string | Type of actor sending the message. |
| actor_id | string | ID of the actor sending the message. |
| message_parts | array | Parts composing the message content. |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "#/components/schemas/MessageCreate",
"title": "MessageCreate",
"type": "object",
"required": [
"message_parts",
"actor_type",
"actor_id"
],
"properties": {
"message_type": {
"type": "string",
"description": "Type of message.",
"enum": [
"normal",
"private"
],
"default": "normal"
},
"actor_type": {
"type": "string",
"description": "Type of actor sending the message.",
"enum": [
"user",
"agent"
]
},
"actor_id": {
"type": "string",
"description": "ID of the actor sending the message."
},
"message_parts": {
"type": "array",
"description": "Parts composing the message content.",
"items": {
"type": "object",
"properties": {
"text": {
"type": "object",
"properties": {
"content": {
"type": "string",
"description": "Text content."
}
}
}
}
}
}
}
}