POST
/
intent-message-associations
Add messages to an existing intent
curl --request POST \
  --url https://app.melodi.fyi/api/external/intent-message-associations \
  --header 'Content-Type: application/json' \
  --header 'api-key: <api-key>' \
  --data '[
  {
    "intentId": 123,
    "messageId": 123
  }
]'
[
  {
    "id": 123,
    "intentId": 123,
    "messageId": 123,
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z"
  }
]

Authorizations

api-key
string
header
required

Your Melodi API key

Body

application/json · object[]
intentId
integer
required

ID of the intent to associate

messageId
integer
required

ID of the message to associate

Response

Successfully created intent message associations

id
integer
required

Unique identifier for the association

intentId
integer
required

ID of the associated intent

messageId
integer
required

ID of the associated message

createdAt
string<date-time>
required
updatedAt
string<date-time>
required