curl --request POST \
--url https://api.kapso.ai/platform/v1/whatsapp/flows/{flow_id}/data_endpoint \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"code": "<string>"
}
'{
"data": {
"function_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"function_name": "<string>",
"status": "draft",
"endpoint_url": "<string>",
"last_deployed_at": "2023-11-07T05:31:56Z",
"code": "<string>"
}
}Create or update the data endpoint function code. The function handles dynamic data for your flow.
curl --request POST \
--url https://api.kapso.ai/platform/v1/whatsapp/flows/{flow_id}/data_endpoint \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"code": "<string>"
}
'{
"data": {
"function_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"function_name": "<string>",
"status": "draft",
"endpoint_url": "<string>",
"last_deployed_at": "2023-11-07T05:31:56Z",
"code": "<string>"
}
}Was this page helpful?