curl --request POST \
--url https://api.kadoa.com/v5/notifications/settings \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '{
"workflowId": "<string>",
"eventType": "workflow_started",
"eventConfiguration": {},
"enabled": true,
"channelIds": [
"<string>"
]
}'
{
"data": {
"settings": {
"id": "<string>",
"workflowId": "<string>",
"eventType": "<string>",
"eventConfiguration": {},
"enabled": true,
"channels": [
{
"id": "<string>",
"name": "<string>",
"channelType": "<string>"
}
],
"createdAt": "<string>",
"updatedAt": "<string>"
}
},
"status": "<string>",
"message": "<string>"
}
curl --request POST \
--url https://api.kadoa.com/v5/notifications/settings \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '{
"workflowId": "<string>",
"eventType": "workflow_started",
"eventConfiguration": {},
"enabled": true,
"channelIds": [
"<string>"
]
}'
{
"data": {
"settings": {
"id": "<string>",
"workflowId": "<string>",
"eventType": "<string>",
"eventConfiguration": {},
"enabled": true,
"channels": [
{
"id": "<string>",
"name": "<string>",
"channelType": "<string>"
}
],
"createdAt": "<string>",
"updatedAt": "<string>"
}
},
"status": "<string>",
"message": "<string>"
}
Settings created successfully
The response is of type object
.