curl --request POST \
--url https://api.bland.ai/v1/pathway/{pathway_id}/publish \
--header 'Content-Type: application/json' \
--header 'authorization: <authorization>' \
--data '{
"version_id": 123,
"environment": "<string>"
}'
{
"message": "Pathway published successfully"
}
Promote a pathway version for a pathway ID to either staging or production environment.
curl --request POST \
--url https://api.bland.ai/v1/pathway/{pathway_id}/publish \
--header 'Content-Type: application/json' \
--header 'authorization: <authorization>' \
--data '{
"version_id": 123,
"environment": "<string>"
}'
{
"message": "Pathway published successfully"
}
production
or staging
. Default is production
.{
"message": "Pathway published successfully"
}
Was this page helpful?