Skip to main content
POST
Change survey status

Authorizations

Authorization
string
header
required

Bearer API key. Secret server keys start with gt_live_; client-safe browser keys start with gt_pub_ (write-only, origin-pinned). Create and scope keys in Settings → API Keys.

Path Parameters

id
string<uuid>
required

The survey's UUID.

Body

application/json
status
enum<string>
required
Available options:
active,
closed

Response

The survey with its new status.

data
object
required