---
title: "Publish a survey"
method: POST
path: "/engagement/surveys/{surveyId}/publish"
tags: ["Engagement Survey"]
---

# Publish a survey

`POST /engagement/surveys/{surveyId}/publish`

## Request

- Base URL: `https://api.gleap.io/v3`
- URL: `https://api.gleap.io/v3/engagement/surveys/{surveyId}/publish`
- Auth: HTTP bearer

Publish the draft as the next version. The page and emails serve it; it shows in the app only
while the survey is live there (`{ goLive: true }` also switches that on). Returns
`{ version, publishedAt, status }`; 422 `{ errors }` when the draft is invalid.

## Path parameters

- `surveyId` string, required

## Headers

- `project` string, required

## Request body

- unknown

## Response `200`

Ok

- unknown

## Changes

- **2026-10-08** `fd83cd1963c4`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/gleap/apis/gleap-server/changes/engagement/surveys/:surveyId/publish/post.md)

---

[API](https://skmtc.dev/gleap/apis/gleap-server.md) - [All operations](https://skmtc.dev/gleap/apis/gleap-server/llms.txt) - [OpenAPI document](https://skmtc.dev/gleap/apis/gleap-server/revisions/3b025e883cef?raw)
