POST
/
v1
/
pathway
/
{pathway_id}
/
publish
Promote Pathway Version
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"
}

Headers

authorization
string
required
Your API key for authentication.

Path

pathway_id
string
required
The ID of the pathway you want to promote

Body

version_id
number
required
The version number of the pathway you want to promote
environment
string
The environment you want to promote the pathway to. Can be production or staging. Default is production.

Response

message
string
A message indicating the status of the request.
{
  "message": "Pathway published successfully"
}