> ## Documentation Index > Fetch the complete documentation index at: https://docs.mapp.com/llms.txt > Use this file to discover all available pages before exploring further. # Publish a segment plan > Publishes a segment plan by ID, making it the live published version and assigning a segment term id. There is no request body - publishing acts on the plan already saved by create/update. The plan is fully validated on publish (drafts may save with invalid criteria, but publish rejects them). Returns the published plan's metadata (without node detail). ## OpenAPI ````json POST /segmentation/publish { "openapi": "3.0.4", "info": { "title": "Engage public API", "version": "1" }, "servers": [ { "url": "https://your-engage-domain.com/api/rest" } ], "tags": [ { "name": "Address Attributes" }, { "name": "Async" }, { "name": "Audit Log" }, { "name": "Automation" }, { "name": "Blacklist" }, { "name": "CMS" }, { "name": "Contact" }, { "name": "Content" }, { "name": "Coupon" }, { "name": "Draft Message" }, { "name": "Ecommerce" }, { "name": "Group" }, { "name": "Group Attributes" }, { "name": "Landing Page" }, { "name": "Member Attributes" }, { "name": "Membership" }, { "name": "Message" }, { "name": "Meta" }, { "name": "Mobile Push" }, { "name": "Prepared Message" }, { "name": "Process" }, { "name": "Profile Attributes" }, { "name": "Related Data" }, { "name": "Segmentation" }, { "name": "System" }, { "name": "System User" }, { "name": "Usage Statistics" }, { "name": "User" }, { "name": "Whiteboard" } ], "paths": { "/segmentation/publish": { "post": { "tags": [ "Segmentation" ], "summary": "Publish a segment plan", "description": "Publishes a segment plan by ID, making it the live published version and assigning a segment term id. There is no request body - publishing acts on the plan already saved by create/update. The plan is fully validated on publish (drafts may save with invalid criteria, but publish rejects them). Returns the published plan's metadata (without node detail).", "operationId": "publish", "parameters": [ { "name": "id", "in": "query", "description": "ID of the plan to publish (GUID).", "required": true, "schema": { "type": "string" } }, { "name": "isBeta", "in": "query", "description": "Use the beta calculation path. Defaults to false.", "schema": { "type": "boolean" } }, { "name": "fastCountMode", "in": "query", "description": "Fast-count mode. Defaults to 'off'.", "schema": { "type": "string" } } ], "responses": { "200": { "description": "The published plan's metadata (without node detail).", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SegmentationInfo" } } } }, "400": { "description": "bad request", "content": { "application/json": {} } } } } } }, "components": { "schemas": { "SegmentationInfo": { "type": "object", "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "status": { "type": "string" }, "timeZone": { "$ref": "#/components/schemas/TimeZoneReference" }, "selectionTermId": { "type": "integer", "format": "int64" }, "labels": { "type": "array", "items": { "type": "string" } }, "createdBy": { "$ref": "#/components/schemas/UserReference" }, "createdOn": { "type": "string" }, "publishedBy": { "$ref": "#/components/schemas/UserReference" }, "publishedOn": { "type": "string" }, "updatedBy": { "$ref": "#/components/schemas/UserReference" }, "updatedOn": { "type": "string" } } }, "TimeZoneReference": { "type": "object", "properties": { "id": { "type": "string" } } }, "UserReference": { "type": "object", "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "firstName": { "type": "string" }, "lastName": { "type": "string" }, "email": { "type": "string" } } } } } } ````