WhatsApp Flows
Deprecate WhatsApp flow
POST
/
v1
/
flows
/
{flowID}
/
deprecate
Deprecate WhatsApp flow
curl --request POST \
--url https://api.wazapin.com/v1/flows/{flowID}/deprecateconst options = {method: 'POST'};
fetch('https://api.wazapin.com/v1/flows/{flowID}/deprecate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.wazapin.com/v1/flows/{flowID}/deprecate"
response = requests.post(url)
print(response.text){
"builder_json": {
"flow": {
"id": "<string>",
"name": "<string>",
"screens": [
{
"actions": [
{
"label": "<string>",
"type": "<string>",
"target": "<string>",
"url": "<string>"
}
],
"components": [
{
"id": "<string>",
"type": "<string>",
"helper_text": "<string>",
"label": "<string>",
"options": [
{
"id": "<string>",
"label": "<string>"
}
],
"placeholder": "<string>",
"required": true,
"text": "<string>"
}
],
"id": "<string>",
"title": "<string>"
}
]
},
"mode": "<string>"
},
"builder_version": 123,
"category": "<string>",
"data_api_version": "<string>",
"flow_json": "<unknown>",
"has_local_changes": true,
"id": "<string>",
"json_version": "<string>",
"name": "<string>",
"status": "<string>",
"validation_errors": "<unknown>",
"channel_id": "<string>",
"meta_flow_id": "<string>",
"preview_url": "<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>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}Path Parameters
Response
OK
Show child attributes
Show child attributes
⌘I
Deprecate WhatsApp flow
curl --request POST \
--url https://api.wazapin.com/v1/flows/{flowID}/deprecateconst options = {method: 'POST'};
fetch('https://api.wazapin.com/v1/flows/{flowID}/deprecate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.wazapin.com/v1/flows/{flowID}/deprecate"
response = requests.post(url)
print(response.text){
"builder_json": {
"flow": {
"id": "<string>",
"name": "<string>",
"screens": [
{
"actions": [
{
"label": "<string>",
"type": "<string>",
"target": "<string>",
"url": "<string>"
}
],
"components": [
{
"id": "<string>",
"type": "<string>",
"helper_text": "<string>",
"label": "<string>",
"options": [
{
"id": "<string>",
"label": "<string>"
}
],
"placeholder": "<string>",
"required": true,
"text": "<string>"
}
],
"id": "<string>",
"title": "<string>"
}
]
},
"mode": "<string>"
},
"builder_version": 123,
"category": "<string>",
"data_api_version": "<string>",
"flow_json": "<unknown>",
"has_local_changes": true,
"id": "<string>",
"json_version": "<string>",
"name": "<string>",
"status": "<string>",
"validation_errors": "<unknown>",
"channel_id": "<string>",
"meta_flow_id": "<string>",
"preview_url": "<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>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}