Publish path
POST /api/v2/paths/:slug/publish - Publishes the current draft as a new live version.
POST
/api/v2/paths/:slug/publishPublishes the current draft as a new live version.
Required scope: paths (or *).
Path parameters
| Name | Required | Description |
|---|---|---|
slug | Yes | Path slug |
JSON body
| Name | Required | Description |
|---|---|---|
publish_note | No | Optional publish note (max 255) |
Example request
curl -s -X POST -H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"publish_note": "Launch v4 with ZIP step"
}' \
"https://benefitpath.com/api/v2/paths/medicare-quiz/publish"
Example response
{
"success": true,
"path": { "slug": "medicare-quiz", "version": "4" }
}