Skip to main content
PUT
/
intents
Create or update an intent
curl --request PUT \
  --url https://app.melodi.fyi/api/external/intents \
  --header 'Content-Type: application/json' \
  --header 'api-key: <api-key>' \
  --data '{
  "projectId": 123,
  "name": "<string>"
}'
{
  "id": 123,
  "projectId": 123,
  "name": "<string>",
  "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
projectId
integer
required

ID of the project this intent belongs to

name
string
required

Name of the intent

Response

External intent successfully created or updated

id
integer
required

Unique identifier for the intent

projectId
integer
required

ID of the project this intent belongs to

name
string
required

Name of the intent

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