Update a sign-up form
US Region: https://public-api.sessionboard.com · EU Region: https://public-api-eu.sessionboard.com
Change what was sent; anything left out stays. status: archived stops sign-ups (the people stay). Requires write:marketing. Also at PUT /v1/marketing/audience/forms/{formId}.
Request example
curl --request PUT \ --url 'https://public-api.sessionboard.com/v1/organization/{orgId}/marketing/audience/forms/{formId}' \ --header 'x-access-token: <api-token>' \ --header 'Content-Type: application/json' \ --data '{ "eventId": 123, "placement": "event_page", "targetKind": "media_item", "targetId": "<string>", "name": "<string>", "heading": "<string>", "body": "<string>", "buttonText": "<string>", "fields": { "name": true, "company": true }, "listKey": "<string>", "doubleOptIn": true, "consentText": "<string>", "successMessage": "<string>", "status": "active"}'const response = await fetch('https://public-api.sessionboard.com/v1/organization/{orgId}/marketing/audience/forms/{formId}', { method: 'PUT', headers: { "x-access-token": "<api-token>", "Content-Type": "application/json" }, body: JSON.stringify({ "eventId": 123, "placement": "event_page", "targetKind": "media_item", "targetId": "<string>", "name": "<string>", "heading": "<string>", "body": "<string>", "buttonText": "<string>", "fields": { "name": true, "company": true }, "listKey": "<string>", "doubleOptIn": true, "consentText": "<string>", "successMessage": "<string>", "status": "active" }),});
const data = await response.json();console.log(data);import requests
response = requests.request( "PUT", "https://public-api.sessionboard.com/v1/organization/{orgId}/marketing/audience/forms/{formId}", headers={ "x-access-token": "<api-token>", "Content-Type": "application/json" }, json={ "eventId": 123, "placement": "event_page", "targetKind": "media_item", "targetId": "<string>", "name": "<string>", "heading": "<string>", "body": "<string>", "buttonText": "<string>", "fields": { "name": True, "company": True }, "listKey": "<string>", "doubleOptIn": True, "consentText": "<string>", "successMessage": "<string>", "status": "active" },)
print(response.json())<?php
$curl = curl_init();
curl_setopt_array($curl, [ CURLOPT_URL => "https://public-api.sessionboard.com/v1/organization/{orgId}/marketing/audience/forms/{formId}", CURLOPT_RETURNTRANSFER => true, CURLOPT_CUSTOMREQUEST => "PUT", CURLOPT_POSTFIELDS => '{ "eventId": 123, "placement": "event_page", "targetKind": "media_item", "targetId": "<string>", "name": "<string>", "heading": "<string>", "body": "<string>", "buttonText": "<string>", "fields": { "name": true, "company": true }, "listKey": "<string>", "doubleOptIn": true, "consentText": "<string>", "successMessage": "<string>", "status": "active"}', CURLOPT_HTTPHEADER => [ "x-access-token: <api-token>", "Content-Type: application/json", ],]);
$response = curl_exec($curl);curl_close($curl);
echo $response;package main
import ( "fmt" "io" "net/http" "strings")
func main() { req, _ := http.NewRequest("PUT", "https://public-api.sessionboard.com/v1/organization/{orgId}/marketing/audience/forms/{formId}", strings.NewReader(`{ "eventId": 123, "placement": "event_page", "targetKind": "media_item", "targetId": "<string>", "name": "<string>", "heading": "<string>", "body": "<string>", "buttonText": "<string>", "fields": { "name": true, "company": true }, "listKey": "<string>", "doubleOptIn": true, "consentText": "<string>", "successMessage": "<string>", "status": "active"}`)) req.Header.Add("x-access-token", "<api-token>") req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))}HttpRequest request = HttpRequest.newBuilder() .uri(URI.create("https://public-api.sessionboard.com/v1/organization/{orgId}/marketing/audience/forms/{formId}")) .header("x-access-token", "<api-token>") .header("Content-Type", "application/json") .method("PUT", HttpRequest.BodyPublishers.ofString("{\n \"eventId\": 123,\n \"placement\": \"event_page\",\n \"targetKind\": \"media_item\",\n \"targetId\": \"<string>\",\n \"name\": \"<string>\",\n \"heading\": \"<string>\",\n \"body\": \"<string>\",\n \"buttonText\": \"<string>\",\n \"fields\": {\n \"name\": true,\n \"company\": true\n },\n \"listKey\": \"<string>\",\n \"doubleOptIn\": true,\n \"consentText\": \"<string>\",\n \"successMessage\": \"<string>\",\n \"status\": \"active\"\n}")) .build();
HttpResponse<String> response = HttpClient.newHttpClient() .send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());Try it
Response headers
Authorizations
x-access-tokenstringheaderOrganization API token. Generate from Organization Settings → API Tokens.
AuthorizationBearer <token>headerorOAuth 2.1 access token. Obtained via the OAuth PKCE flow at
/oauth/token.
Send one of these. See Authentication.
Path parameters
orgIdstringpathrequiredYour organization ID. Any other organization returns
404.formIdstring<uuid>pathrequired
Request body
Every field is optional; defaults come from the event, the organization or the recording.
eventIdinteger | nullplacementstring- Allowed values
"event_page", "gallery", "clip", "recording_gate"
targetKindstring | null- Allowed values
"media_item", "content_item", "gallery", "gallery_item", null
targetIdstring | nullnamestringA label your team sees.
headingstringbodystringbuttonTextstringfieldsobjectShow child attributes
namebooleancompanyboolean
listKeystringdoubleOptInbooleanconsentTextstringWhat visitors agree to;
{org}is replaced with your organization's name.successMessagestringstatusstring- Allowed values
"active", "archived"
{ "eventId": 123, "placement": "event_page", "targetKind": "media_item", "targetId": "<string>", "name": "<string>", "heading": "<string>", "body": "<string>", "buttonText": "<string>", "fields": { "name": true, "company": true }, "listKey": "<string>", "doubleOptIn": true, "consentText": "<string>", "successMessage": "<string>", "status": "active"}Responses
200
payload.form
403
SCOPE_REQUIRED— the token lacksread:marketing(reads) orwrite:marketing(writes).ORG_WIDE_TOKEN_REQUIRED— the token is restricted to particular events; this operation reads the whole organization.FORBIDDEN— the organization's plan does not include Marketing, or the token's user cannot change goals (writes need an organization admin or the organization settings permission).
404
Not found in your organization.
