Channels
Update conversational components (ice breakers, commands)
PUT
/
v1
/
channels
/
{channelID}
/
conversational-components
Update conversational components (ice breakers, commands)
curl --request PUT \
--url https://api.wazapin.com/v1/channels/{channelID}/conversational-components \
--header 'Content-Type: application/json' \
--data '
{
"commands": [
{
"command_name": "<string>",
"description": "<string>"
}
],
"enable_welcome_message": true,
"prompts": [
"<string>"
]
}
'const options = {
method: 'PUT',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
commands: [{command_name: '<string>', description: '<string>'}],
enable_welcome_message: true,
prompts: ['<string>']
})
};
fetch('https://api.wazapin.com/v1/channels/{channelID}/conversational-components', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.wazapin.com/v1/channels/{channelID}/conversational-components"
payload = {
"commands": [
{
"command_name": "<string>",
"description": "<string>"
}
],
"enable_welcome_message": True,
"prompts": ["<string>"]
}
headers = {"Content-Type": "application/json"}
response = requests.put(url, json=payload, headers=headers)
print(response.text){
"status": "<string>"
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}⌘I
Update conversational components (ice breakers, commands)
curl --request PUT \
--url https://api.wazapin.com/v1/channels/{channelID}/conversational-components \
--header 'Content-Type: application/json' \
--data '
{
"commands": [
{
"command_name": "<string>",
"description": "<string>"
}
],
"enable_welcome_message": true,
"prompts": [
"<string>"
]
}
'const options = {
method: 'PUT',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
commands: [{command_name: '<string>', description: '<string>'}],
enable_welcome_message: true,
prompts: ['<string>']
})
};
fetch('https://api.wazapin.com/v1/channels/{channelID}/conversational-components', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.wazapin.com/v1/channels/{channelID}/conversational-components"
payload = {
"commands": [
{
"command_name": "<string>",
"description": "<string>"
}
],
"enable_welcome_message": True,
"prompts": ["<string>"]
}
headers = {"Content-Type": "application/json"}
response = requests.put(url, json=payload, headers=headers)
print(response.text){
"status": "<string>"
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}