Skip to main content
POST
/
agency
/
pathway
/
{id}
/
publish
Publish pathway
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."
}

Authorizations

x-api-key
string
header
required

API Key for authentication

Path Parameters

id
string
required

Pathway ID

Example:

"1"

Body

application/json
version_id
number
required

The version ID of the pathway to publish

Example:

1

environment
enum<string>
required

The environment to publish the pathway to

Available options:
production,
staging
Example:

"production"

Response

Pathway published successfully

success
string
required
Example:

"Pathway has been published successfully."