curl --request POST \
--url https://api.cleartalk.ai/agency/pathway/{id}/publish \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"version_id": 1,
"environment": "production"
}
'{
"success": "Pathway has been published successfully."
}Publishes a specific version of a pathway to the specified environment
curl --request POST \
--url https://api.cleartalk.ai/agency/pathway/{id}/publish \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"version_id": 1,
"environment": "production"
}
'{
"success": "Pathway has been published successfully."
}API Key for authentication
Pathway ID
"1"
Pathway published successfully
"Pathway has been published successfully."