curl --request PATCH \
--url https://app.orgo.space/api/v1/events/{uuid}/preview-token \
--header 'Api-Token: <api-key>' \
--header 'Content-Type: application/merge-patch+json' \
--data '
{
"name": "Boston Chapter",
"location": "Boston Common, Boston, MA",
"description": "Quarterly chapter meeting open to all members.",
"logo": "https://cdn.orgo.space/tenants/acme/logo.png",
"type": {
"name": "Boston Chapter",
"color": "#16A34A",
"icon": "calendar"
},
"unit": "/api/v1/units/1",
"tags": "string",
"goal": "Increase active volunteer participation by 20% this quarter.",
"target": "All active members in the Boston local center.",
"activities": "Welcome remarks, working-group breakouts, and a social hour to close.",
"advertising": "Promoted via newsletter, on the homepage, and through partner channels.",
"budget": "Estimated $1,200 for venue and refreshments.",
"partners": "Boston Public Library, City of Boston Civic Engagement Office.",
"numberOfParticipants": 42,
"isGeneralMeeting": true,
"isGeneralMeetingEx": true,
"isGeneralMeetingElection": true,
"isTraining": true,
"parentEvent": {
"name": "Boston Chapter",
"location": "Boston Common, Boston, MA",
"description": "Quarterly chapter meeting open to all members.",
"logo": "https://cdn.orgo.space/tenants/acme/logo.png",
"type": {
"name": "Boston Chapter",
"color": "#16A34A",
"icon": "calendar"
},
"unit": "/api/v1/units/1",
"tags": "string",
"goal": "Increase active volunteer participation by 20% this quarter.",
"target": "All active members in the Boston local center.",
"activities": "Welcome remarks, working-group breakouts, and a social hour to close.",
"advertising": "Promoted via newsletter, on the homepage, and through partner channels.",
"budget": "Estimated $1,200 for venue and refreshments.",
"partners": "Boston Public Library, City of Boston Civic Engagement Office.",
"numberOfParticipants": 42,
"isGeneralMeeting": true,
"isGeneralMeetingEx": true,
"isGeneralMeetingElection": true,
"isTraining": true,
"parentEvent": "/api/v1/events/1",
"position": 42,
"dateTimeBegin": "2026-01-15T10:30:00+00:00",
"dateTimeEnd": "2026-01-15T10:30:00+00:00",
"isAnnualReport": true,
"product": "/api/v1/products/1",
"meet": "https://meet.google.com/abc-defg-hij",
"settings": [
"string"
],
"hasVoting": true,
"sdg": [
"string"
],
"isPublic": true,
"hasEventTicketing": true,
"isUnlisted": true,
"hasPublicAttendeeList": true,
"hasNetworking": true,
"isNetworkingDisabled": true,
"timezone": "America/New_York",
"newsletterEnabled": true,
"placesApiId": "ChIJOwg_06VPwokRYv534QaPC8g",
"subEventPlaceName": "Boston Common",
"placeLatitude": 42.3601,
"placeLongitude": -71.0589,
"gamificationPoints": 42,
"badge": {
"name": "Boston Chapter",
"logo": "https://cdn.orgo.space/tenants/acme/logo.png"
},
"customStatus": "/api/v1/event_statuses/1",
"sendAttendanceReminder": true,
"sendOneHourReminder": true,
"requiresRegistrationForm": true,
"maxCapacity": 42,
"registrationManuallyClosed": true,
"registrationFormText": "string",
"allowedUserType": "/api/v1/roles/1"
},
"position": 42,
"dateTimeBegin": "2026-01-15T10:30:00+00:00",
"dateTimeEnd": "2026-01-15T10:30:00+00:00",
"isAnnualReport": true,
"product": "/api/v1/products/1",
"meet": "https://meet.google.com/abc-defg-hij",
"settings": [
"string"
],
"hasVoting": true,
"sdg": [
"string"
],
"isPublic": true,
"hasEventTicketing": true,
"isUnlisted": true,
"hasPublicAttendeeList": true,
"hasNetworking": true,
"isNetworkingDisabled": true,
"timezone": "America/New_York",
"newsletterEnabled": true,
"placesApiId": "ChIJOwg_06VPwokRYv534QaPC8g",
"subEventPlaceName": "Boston Common",
"placeLatitude": 42.3601,
"placeLongitude": -71.0589,
"gamificationPoints": 42,
"badge": {
"name": "Boston Chapter",
"logo": "https://cdn.orgo.space/tenants/acme/logo.png"
},
"customStatus": "/api/v1/event_statuses/1",
"sendAttendanceReminder": true,
"sendOneHourReminder": true,
"requiresRegistrationForm": true,
"maxCapacity": 42,
"registrationManuallyClosed": true,
"registrationFormText": "string",
"allowedUserType": "/api/v1/roles/1"
}
'import requests
url = "https://app.orgo.space/api/v1/events/{uuid}/preview-token"
payload = {
"name": "Boston Chapter",
"location": "Boston Common, Boston, MA",
"description": "Quarterly chapter meeting open to all members.",
"logo": "https://cdn.orgo.space/tenants/acme/logo.png",
"type": {
"name": "Boston Chapter",
"color": "#16A34A",
"icon": "calendar"
},
"unit": "/api/v1/units/1",
"tags": "string",
"goal": "Increase active volunteer participation by 20% this quarter.",
"target": "All active members in the Boston local center.",
"activities": "Welcome remarks, working-group breakouts, and a social hour to close.",
"advertising": "Promoted via newsletter, on the homepage, and through partner channels.",
"budget": "Estimated $1,200 for venue and refreshments.",
"partners": "Boston Public Library, City of Boston Civic Engagement Office.",
"numberOfParticipants": 42,
"isGeneralMeeting": True,
"isGeneralMeetingEx": True,
"isGeneralMeetingElection": True,
"isTraining": True,
"parentEvent": {
"name": "Boston Chapter",
"location": "Boston Common, Boston, MA",
"description": "Quarterly chapter meeting open to all members.",
"logo": "https://cdn.orgo.space/tenants/acme/logo.png",
"type": {
"name": "Boston Chapter",
"color": "#16A34A",
"icon": "calendar"
},
"unit": "/api/v1/units/1",
"tags": "string",
"goal": "Increase active volunteer participation by 20% this quarter.",
"target": "All active members in the Boston local center.",
"activities": "Welcome remarks, working-group breakouts, and a social hour to close.",
"advertising": "Promoted via newsletter, on the homepage, and through partner channels.",
"budget": "Estimated $1,200 for venue and refreshments.",
"partners": "Boston Public Library, City of Boston Civic Engagement Office.",
"numberOfParticipants": 42,
"isGeneralMeeting": True,
"isGeneralMeetingEx": True,
"isGeneralMeetingElection": True,
"isTraining": True,
"parentEvent": "/api/v1/events/1",
"position": 42,
"dateTimeBegin": "2026-01-15T10:30:00+00:00",
"dateTimeEnd": "2026-01-15T10:30:00+00:00",
"isAnnualReport": True,
"product": "/api/v1/products/1",
"meet": "https://meet.google.com/abc-defg-hij",
"settings": ["string"],
"hasVoting": True,
"sdg": ["string"],
"isPublic": True,
"hasEventTicketing": True,
"isUnlisted": True,
"hasPublicAttendeeList": True,
"hasNetworking": True,
"isNetworkingDisabled": True,
"timezone": "America/New_York",
"newsletterEnabled": True,
"placesApiId": "ChIJOwg_06VPwokRYv534QaPC8g",
"subEventPlaceName": "Boston Common",
"placeLatitude": 42.3601,
"placeLongitude": -71.0589,
"gamificationPoints": 42,
"badge": {
"name": "Boston Chapter",
"logo": "https://cdn.orgo.space/tenants/acme/logo.png"
},
"customStatus": "/api/v1/event_statuses/1",
"sendAttendanceReminder": True,
"sendOneHourReminder": True,
"requiresRegistrationForm": True,
"maxCapacity": 42,
"registrationManuallyClosed": True,
"registrationFormText": "string",
"allowedUserType": "/api/v1/roles/1"
},
"position": 42,
"dateTimeBegin": "2026-01-15T10:30:00+00:00",
"dateTimeEnd": "2026-01-15T10:30:00+00:00",
"isAnnualReport": True,
"product": "/api/v1/products/1",
"meet": "https://meet.google.com/abc-defg-hij",
"settings": ["string"],
"hasVoting": True,
"sdg": ["string"],
"isPublic": True,
"hasEventTicketing": True,
"isUnlisted": True,
"hasPublicAttendeeList": True,
"hasNetworking": True,
"isNetworkingDisabled": True,
"timezone": "America/New_York",
"newsletterEnabled": True,
"placesApiId": "ChIJOwg_06VPwokRYv534QaPC8g",
"subEventPlaceName": "Boston Common",
"placeLatitude": 42.3601,
"placeLongitude": -71.0589,
"gamificationPoints": 42,
"badge": {
"name": "Boston Chapter",
"logo": "https://cdn.orgo.space/tenants/acme/logo.png"
},
"customStatus": "/api/v1/event_statuses/1",
"sendAttendanceReminder": True,
"sendOneHourReminder": True,
"requiresRegistrationForm": True,
"maxCapacity": 42,
"registrationManuallyClosed": True,
"registrationFormText": "string",
"allowedUserType": "/api/v1/roles/1"
}
headers = {
"Api-Token": "<api-key>",
"Content-Type": "application/merge-patch+json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'Api-Token': '<api-key>', 'Content-Type': 'application/merge-patch+json'},
body: JSON.stringify({
name: 'Boston Chapter',
location: 'Boston Common, Boston, MA',
description: 'Quarterly chapter meeting open to all members.',
logo: 'https://cdn.orgo.space/tenants/acme/logo.png',
type: {name: 'Boston Chapter', color: '#16A34A', icon: 'calendar'},
unit: '/api/v1/units/1',
tags: 'string',
goal: 'Increase active volunteer participation by 20% this quarter.',
target: 'All active members in the Boston local center.',
activities: 'Welcome remarks, working-group breakouts, and a social hour to close.',
advertising: 'Promoted via newsletter, on the homepage, and through partner channels.',
budget: 'Estimated $1,200 for venue and refreshments.',
partners: 'Boston Public Library, City of Boston Civic Engagement Office.',
numberOfParticipants: 42,
isGeneralMeeting: true,
isGeneralMeetingEx: true,
isGeneralMeetingElection: true,
isTraining: true,
parentEvent: {
name: 'Boston Chapter',
location: 'Boston Common, Boston, MA',
description: 'Quarterly chapter meeting open to all members.',
logo: 'https://cdn.orgo.space/tenants/acme/logo.png',
type: {name: 'Boston Chapter', color: '#16A34A', icon: 'calendar'},
unit: '/api/v1/units/1',
tags: 'string',
goal: 'Increase active volunteer participation by 20% this quarter.',
target: 'All active members in the Boston local center.',
activities: 'Welcome remarks, working-group breakouts, and a social hour to close.',
advertising: 'Promoted via newsletter, on the homepage, and through partner channels.',
budget: 'Estimated $1,200 for venue and refreshments.',
partners: 'Boston Public Library, City of Boston Civic Engagement Office.',
numberOfParticipants: 42,
isGeneralMeeting: true,
isGeneralMeetingEx: true,
isGeneralMeetingElection: true,
isTraining: true,
parentEvent: '/api/v1/events/1',
position: 42,
dateTimeBegin: '2026-01-15T10:30:00+00:00',
dateTimeEnd: '2026-01-15T10:30:00+00:00',
isAnnualReport: true,
product: '/api/v1/products/1',
meet: 'https://meet.google.com/abc-defg-hij',
settings: ['string'],
hasVoting: true,
sdg: ['string'],
isPublic: true,
hasEventTicketing: true,
isUnlisted: true,
hasPublicAttendeeList: true,
hasNetworking: true,
isNetworkingDisabled: true,
timezone: 'America/New_York',
newsletterEnabled: true,
placesApiId: 'ChIJOwg_06VPwokRYv534QaPC8g',
subEventPlaceName: 'Boston Common',
placeLatitude: 42.3601,
placeLongitude: -71.0589,
gamificationPoints: 42,
badge: {name: 'Boston Chapter', logo: 'https://cdn.orgo.space/tenants/acme/logo.png'},
customStatus: '/api/v1/event_statuses/1',
sendAttendanceReminder: true,
sendOneHourReminder: true,
requiresRegistrationForm: true,
maxCapacity: 42,
registrationManuallyClosed: true,
registrationFormText: 'string',
allowedUserType: '/api/v1/roles/1'
},
position: 42,
dateTimeBegin: '2026-01-15T10:30:00+00:00',
dateTimeEnd: '2026-01-15T10:30:00+00:00',
isAnnualReport: true,
product: '/api/v1/products/1',
meet: 'https://meet.google.com/abc-defg-hij',
settings: ['string'],
hasVoting: true,
sdg: ['string'],
isPublic: true,
hasEventTicketing: true,
isUnlisted: true,
hasPublicAttendeeList: true,
hasNetworking: true,
isNetworkingDisabled: true,
timezone: 'America/New_York',
newsletterEnabled: true,
placesApiId: 'ChIJOwg_06VPwokRYv534QaPC8g',
subEventPlaceName: 'Boston Common',
placeLatitude: 42.3601,
placeLongitude: -71.0589,
gamificationPoints: 42,
badge: {name: 'Boston Chapter', logo: 'https://cdn.orgo.space/tenants/acme/logo.png'},
customStatus: '/api/v1/event_statuses/1',
sendAttendanceReminder: true,
sendOneHourReminder: true,
requiresRegistrationForm: true,
maxCapacity: 42,
registrationManuallyClosed: true,
registrationFormText: 'string',
allowedUserType: '/api/v1/roles/1'
})
};
fetch('https://app.orgo.space/api/v1/events/{uuid}/preview-token', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.orgo.space/api/v1/events/{uuid}/preview-token",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'name' => 'Boston Chapter',
'location' => 'Boston Common, Boston, MA',
'description' => 'Quarterly chapter meeting open to all members.',
'logo' => 'https://cdn.orgo.space/tenants/acme/logo.png',
'type' => [
'name' => 'Boston Chapter',
'color' => '#16A34A',
'icon' => 'calendar'
],
'unit' => '/api/v1/units/1',
'tags' => 'string',
'goal' => 'Increase active volunteer participation by 20% this quarter.',
'target' => 'All active members in the Boston local center.',
'activities' => 'Welcome remarks, working-group breakouts, and a social hour to close.',
'advertising' => 'Promoted via newsletter, on the homepage, and through partner channels.',
'budget' => 'Estimated $1,200 for venue and refreshments.',
'partners' => 'Boston Public Library, City of Boston Civic Engagement Office.',
'numberOfParticipants' => 42,
'isGeneralMeeting' => true,
'isGeneralMeetingEx' => true,
'isGeneralMeetingElection' => true,
'isTraining' => true,
'parentEvent' => [
'name' => 'Boston Chapter',
'location' => 'Boston Common, Boston, MA',
'description' => 'Quarterly chapter meeting open to all members.',
'logo' => 'https://cdn.orgo.space/tenants/acme/logo.png',
'type' => [
'name' => 'Boston Chapter',
'color' => '#16A34A',
'icon' => 'calendar'
],
'unit' => '/api/v1/units/1',
'tags' => 'string',
'goal' => 'Increase active volunteer participation by 20% this quarter.',
'target' => 'All active members in the Boston local center.',
'activities' => 'Welcome remarks, working-group breakouts, and a social hour to close.',
'advertising' => 'Promoted via newsletter, on the homepage, and through partner channels.',
'budget' => 'Estimated $1,200 for venue and refreshments.',
'partners' => 'Boston Public Library, City of Boston Civic Engagement Office.',
'numberOfParticipants' => 42,
'isGeneralMeeting' => true,
'isGeneralMeetingEx' => true,
'isGeneralMeetingElection' => true,
'isTraining' => true,
'parentEvent' => '/api/v1/events/1',
'position' => 42,
'dateTimeBegin' => '2026-01-15T10:30:00+00:00',
'dateTimeEnd' => '2026-01-15T10:30:00+00:00',
'isAnnualReport' => true,
'product' => '/api/v1/products/1',
'meet' => 'https://meet.google.com/abc-defg-hij',
'settings' => [
'string'
],
'hasVoting' => true,
'sdg' => [
'string'
],
'isPublic' => true,
'hasEventTicketing' => true,
'isUnlisted' => true,
'hasPublicAttendeeList' => true,
'hasNetworking' => true,
'isNetworkingDisabled' => true,
'timezone' => 'America/New_York',
'newsletterEnabled' => true,
'placesApiId' => 'ChIJOwg_06VPwokRYv534QaPC8g',
'subEventPlaceName' => 'Boston Common',
'placeLatitude' => 42.3601,
'placeLongitude' => -71.0589,
'gamificationPoints' => 42,
'badge' => [
'name' => 'Boston Chapter',
'logo' => 'https://cdn.orgo.space/tenants/acme/logo.png'
],
'customStatus' => '/api/v1/event_statuses/1',
'sendAttendanceReminder' => true,
'sendOneHourReminder' => true,
'requiresRegistrationForm' => true,
'maxCapacity' => 42,
'registrationManuallyClosed' => true,
'registrationFormText' => 'string',
'allowedUserType' => '/api/v1/roles/1'
],
'position' => 42,
'dateTimeBegin' => '2026-01-15T10:30:00+00:00',
'dateTimeEnd' => '2026-01-15T10:30:00+00:00',
'isAnnualReport' => true,
'product' => '/api/v1/products/1',
'meet' => 'https://meet.google.com/abc-defg-hij',
'settings' => [
'string'
],
'hasVoting' => true,
'sdg' => [
'string'
],
'isPublic' => true,
'hasEventTicketing' => true,
'isUnlisted' => true,
'hasPublicAttendeeList' => true,
'hasNetworking' => true,
'isNetworkingDisabled' => true,
'timezone' => 'America/New_York',
'newsletterEnabled' => true,
'placesApiId' => 'ChIJOwg_06VPwokRYv534QaPC8g',
'subEventPlaceName' => 'Boston Common',
'placeLatitude' => 42.3601,
'placeLongitude' => -71.0589,
'gamificationPoints' => 42,
'badge' => [
'name' => 'Boston Chapter',
'logo' => 'https://cdn.orgo.space/tenants/acme/logo.png'
],
'customStatus' => '/api/v1/event_statuses/1',
'sendAttendanceReminder' => true,
'sendOneHourReminder' => true,
'requiresRegistrationForm' => true,
'maxCapacity' => 42,
'registrationManuallyClosed' => true,
'registrationFormText' => 'string',
'allowedUserType' => '/api/v1/roles/1'
]),
CURLOPT_HTTPHEADER => [
"Api-Token: <api-key>",
"Content-Type: application/merge-patch+json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.orgo.space/api/v1/events/{uuid}/preview-token"
payload := strings.NewReader("{\n \"name\": \"Boston Chapter\",\n \"location\": \"Boston Common, Boston, MA\",\n \"description\": \"Quarterly chapter meeting open to all members.\",\n \"logo\": \"https://cdn.orgo.space/tenants/acme/logo.png\",\n \"type\": {\n \"name\": \"Boston Chapter\",\n \"color\": \"#16A34A\",\n \"icon\": \"calendar\"\n },\n \"unit\": \"/api/v1/units/1\",\n \"tags\": \"string\",\n \"goal\": \"Increase active volunteer participation by 20% this quarter.\",\n \"target\": \"All active members in the Boston local center.\",\n \"activities\": \"Welcome remarks, working-group breakouts, and a social hour to close.\",\n \"advertising\": \"Promoted via newsletter, on the homepage, and through partner channels.\",\n \"budget\": \"Estimated $1,200 for venue and refreshments.\",\n \"partners\": \"Boston Public Library, City of Boston Civic Engagement Office.\",\n \"numberOfParticipants\": 42,\n \"isGeneralMeeting\": true,\n \"isGeneralMeetingEx\": true,\n \"isGeneralMeetingElection\": true,\n \"isTraining\": true,\n \"parentEvent\": {\n \"name\": \"Boston Chapter\",\n \"location\": \"Boston Common, Boston, MA\",\n \"description\": \"Quarterly chapter meeting open to all members.\",\n \"logo\": \"https://cdn.orgo.space/tenants/acme/logo.png\",\n \"type\": {\n \"name\": \"Boston Chapter\",\n \"color\": \"#16A34A\",\n \"icon\": \"calendar\"\n },\n \"unit\": \"/api/v1/units/1\",\n \"tags\": \"string\",\n \"goal\": \"Increase active volunteer participation by 20% this quarter.\",\n \"target\": \"All active members in the Boston local center.\",\n \"activities\": \"Welcome remarks, working-group breakouts, and a social hour to close.\",\n \"advertising\": \"Promoted via newsletter, on the homepage, and through partner channels.\",\n \"budget\": \"Estimated $1,200 for venue and refreshments.\",\n \"partners\": \"Boston Public Library, City of Boston Civic Engagement Office.\",\n \"numberOfParticipants\": 42,\n \"isGeneralMeeting\": true,\n \"isGeneralMeetingEx\": true,\n \"isGeneralMeetingElection\": true,\n \"isTraining\": true,\n \"parentEvent\": \"/api/v1/events/1\",\n \"position\": 42,\n \"dateTimeBegin\": \"2026-01-15T10:30:00+00:00\",\n \"dateTimeEnd\": \"2026-01-15T10:30:00+00:00\",\n \"isAnnualReport\": true,\n \"product\": \"/api/v1/products/1\",\n \"meet\": \"https://meet.google.com/abc-defg-hij\",\n \"settings\": [\n \"string\"\n ],\n \"hasVoting\": true,\n \"sdg\": [\n \"string\"\n ],\n \"isPublic\": true,\n \"hasEventTicketing\": true,\n \"isUnlisted\": true,\n \"hasPublicAttendeeList\": true,\n \"hasNetworking\": true,\n \"isNetworkingDisabled\": true,\n \"timezone\": \"America/New_York\",\n \"newsletterEnabled\": true,\n \"placesApiId\": \"ChIJOwg_06VPwokRYv534QaPC8g\",\n \"subEventPlaceName\": \"Boston Common\",\n \"placeLatitude\": 42.3601,\n \"placeLongitude\": -71.0589,\n \"gamificationPoints\": 42,\n \"badge\": {\n \"name\": \"Boston Chapter\",\n \"logo\": \"https://cdn.orgo.space/tenants/acme/logo.png\"\n },\n \"customStatus\": \"/api/v1/event_statuses/1\",\n \"sendAttendanceReminder\": true,\n \"sendOneHourReminder\": true,\n \"requiresRegistrationForm\": true,\n \"maxCapacity\": 42,\n \"registrationManuallyClosed\": true,\n \"registrationFormText\": \"string\",\n \"allowedUserType\": \"/api/v1/roles/1\"\n },\n \"position\": 42,\n \"dateTimeBegin\": \"2026-01-15T10:30:00+00:00\",\n \"dateTimeEnd\": \"2026-01-15T10:30:00+00:00\",\n \"isAnnualReport\": true,\n \"product\": \"/api/v1/products/1\",\n \"meet\": \"https://meet.google.com/abc-defg-hij\",\n \"settings\": [\n \"string\"\n ],\n \"hasVoting\": true,\n \"sdg\": [\n \"string\"\n ],\n \"isPublic\": true,\n \"hasEventTicketing\": true,\n \"isUnlisted\": true,\n \"hasPublicAttendeeList\": true,\n \"hasNetworking\": true,\n \"isNetworkingDisabled\": true,\n \"timezone\": \"America/New_York\",\n \"newsletterEnabled\": true,\n \"placesApiId\": \"ChIJOwg_06VPwokRYv534QaPC8g\",\n \"subEventPlaceName\": \"Boston Common\",\n \"placeLatitude\": 42.3601,\n \"placeLongitude\": -71.0589,\n \"gamificationPoints\": 42,\n \"badge\": {\n \"name\": \"Boston Chapter\",\n \"logo\": \"https://cdn.orgo.space/tenants/acme/logo.png\"\n },\n \"customStatus\": \"/api/v1/event_statuses/1\",\n \"sendAttendanceReminder\": true,\n \"sendOneHourReminder\": true,\n \"requiresRegistrationForm\": true,\n \"maxCapacity\": 42,\n \"registrationManuallyClosed\": true,\n \"registrationFormText\": \"string\",\n \"allowedUserType\": \"/api/v1/roles/1\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Api-Token", "<api-key>")
req.Header.Add("Content-Type", "application/merge-patch+json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://app.orgo.space/api/v1/events/{uuid}/preview-token")
.header("Api-Token", "<api-key>")
.header("Content-Type", "application/merge-patch+json")
.body("{\n \"name\": \"Boston Chapter\",\n \"location\": \"Boston Common, Boston, MA\",\n \"description\": \"Quarterly chapter meeting open to all members.\",\n \"logo\": \"https://cdn.orgo.space/tenants/acme/logo.png\",\n \"type\": {\n \"name\": \"Boston Chapter\",\n \"color\": \"#16A34A\",\n \"icon\": \"calendar\"\n },\n \"unit\": \"/api/v1/units/1\",\n \"tags\": \"string\",\n \"goal\": \"Increase active volunteer participation by 20% this quarter.\",\n \"target\": \"All active members in the Boston local center.\",\n \"activities\": \"Welcome remarks, working-group breakouts, and a social hour to close.\",\n \"advertising\": \"Promoted via newsletter, on the homepage, and through partner channels.\",\n \"budget\": \"Estimated $1,200 for venue and refreshments.\",\n \"partners\": \"Boston Public Library, City of Boston Civic Engagement Office.\",\n \"numberOfParticipants\": 42,\n \"isGeneralMeeting\": true,\n \"isGeneralMeetingEx\": true,\n \"isGeneralMeetingElection\": true,\n \"isTraining\": true,\n \"parentEvent\": {\n \"name\": \"Boston Chapter\",\n \"location\": \"Boston Common, Boston, MA\",\n \"description\": \"Quarterly chapter meeting open to all members.\",\n \"logo\": \"https://cdn.orgo.space/tenants/acme/logo.png\",\n \"type\": {\n \"name\": \"Boston Chapter\",\n \"color\": \"#16A34A\",\n \"icon\": \"calendar\"\n },\n \"unit\": \"/api/v1/units/1\",\n \"tags\": \"string\",\n \"goal\": \"Increase active volunteer participation by 20% this quarter.\",\n \"target\": \"All active members in the Boston local center.\",\n \"activities\": \"Welcome remarks, working-group breakouts, and a social hour to close.\",\n \"advertising\": \"Promoted via newsletter, on the homepage, and through partner channels.\",\n \"budget\": \"Estimated $1,200 for venue and refreshments.\",\n \"partners\": \"Boston Public Library, City of Boston Civic Engagement Office.\",\n \"numberOfParticipants\": 42,\n \"isGeneralMeeting\": true,\n \"isGeneralMeetingEx\": true,\n \"isGeneralMeetingElection\": true,\n \"isTraining\": true,\n \"parentEvent\": \"/api/v1/events/1\",\n \"position\": 42,\n \"dateTimeBegin\": \"2026-01-15T10:30:00+00:00\",\n \"dateTimeEnd\": \"2026-01-15T10:30:00+00:00\",\n \"isAnnualReport\": true,\n \"product\": \"/api/v1/products/1\",\n \"meet\": \"https://meet.google.com/abc-defg-hij\",\n \"settings\": [\n \"string\"\n ],\n \"hasVoting\": true,\n \"sdg\": [\n \"string\"\n ],\n \"isPublic\": true,\n \"hasEventTicketing\": true,\n \"isUnlisted\": true,\n \"hasPublicAttendeeList\": true,\n \"hasNetworking\": true,\n \"isNetworkingDisabled\": true,\n \"timezone\": \"America/New_York\",\n \"newsletterEnabled\": true,\n \"placesApiId\": \"ChIJOwg_06VPwokRYv534QaPC8g\",\n \"subEventPlaceName\": \"Boston Common\",\n \"placeLatitude\": 42.3601,\n \"placeLongitude\": -71.0589,\n \"gamificationPoints\": 42,\n \"badge\": {\n \"name\": \"Boston Chapter\",\n \"logo\": \"https://cdn.orgo.space/tenants/acme/logo.png\"\n },\n \"customStatus\": \"/api/v1/event_statuses/1\",\n \"sendAttendanceReminder\": true,\n \"sendOneHourReminder\": true,\n \"requiresRegistrationForm\": true,\n \"maxCapacity\": 42,\n \"registrationManuallyClosed\": true,\n \"registrationFormText\": \"string\",\n \"allowedUserType\": \"/api/v1/roles/1\"\n },\n \"position\": 42,\n \"dateTimeBegin\": \"2026-01-15T10:30:00+00:00\",\n \"dateTimeEnd\": \"2026-01-15T10:30:00+00:00\",\n \"isAnnualReport\": true,\n \"product\": \"/api/v1/products/1\",\n \"meet\": \"https://meet.google.com/abc-defg-hij\",\n \"settings\": [\n \"string\"\n ],\n \"hasVoting\": true,\n \"sdg\": [\n \"string\"\n ],\n \"isPublic\": true,\n \"hasEventTicketing\": true,\n \"isUnlisted\": true,\n \"hasPublicAttendeeList\": true,\n \"hasNetworking\": true,\n \"isNetworkingDisabled\": true,\n \"timezone\": \"America/New_York\",\n \"newsletterEnabled\": true,\n \"placesApiId\": \"ChIJOwg_06VPwokRYv534QaPC8g\",\n \"subEventPlaceName\": \"Boston Common\",\n \"placeLatitude\": 42.3601,\n \"placeLongitude\": -71.0589,\n \"gamificationPoints\": 42,\n \"badge\": {\n \"name\": \"Boston Chapter\",\n \"logo\": \"https://cdn.orgo.space/tenants/acme/logo.png\"\n },\n \"customStatus\": \"/api/v1/event_statuses/1\",\n \"sendAttendanceReminder\": true,\n \"sendOneHourReminder\": true,\n \"requiresRegistrationForm\": true,\n \"maxCapacity\": 42,\n \"registrationManuallyClosed\": true,\n \"registrationFormText\": \"string\",\n \"allowedUserType\": \"/api/v1/roles/1\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.orgo.space/api/v1/events/{uuid}/preview-token")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Api-Token"] = '<api-key>'
request["Content-Type"] = 'application/merge-patch+json'
request.body = "{\n \"name\": \"Boston Chapter\",\n \"location\": \"Boston Common, Boston, MA\",\n \"description\": \"Quarterly chapter meeting open to all members.\",\n \"logo\": \"https://cdn.orgo.space/tenants/acme/logo.png\",\n \"type\": {\n \"name\": \"Boston Chapter\",\n \"color\": \"#16A34A\",\n \"icon\": \"calendar\"\n },\n \"unit\": \"/api/v1/units/1\",\n \"tags\": \"string\",\n \"goal\": \"Increase active volunteer participation by 20% this quarter.\",\n \"target\": \"All active members in the Boston local center.\",\n \"activities\": \"Welcome remarks, working-group breakouts, and a social hour to close.\",\n \"advertising\": \"Promoted via newsletter, on the homepage, and through partner channels.\",\n \"budget\": \"Estimated $1,200 for venue and refreshments.\",\n \"partners\": \"Boston Public Library, City of Boston Civic Engagement Office.\",\n \"numberOfParticipants\": 42,\n \"isGeneralMeeting\": true,\n \"isGeneralMeetingEx\": true,\n \"isGeneralMeetingElection\": true,\n \"isTraining\": true,\n \"parentEvent\": {\n \"name\": \"Boston Chapter\",\n \"location\": \"Boston Common, Boston, MA\",\n \"description\": \"Quarterly chapter meeting open to all members.\",\n \"logo\": \"https://cdn.orgo.space/tenants/acme/logo.png\",\n \"type\": {\n \"name\": \"Boston Chapter\",\n \"color\": \"#16A34A\",\n \"icon\": \"calendar\"\n },\n \"unit\": \"/api/v1/units/1\",\n \"tags\": \"string\",\n \"goal\": \"Increase active volunteer participation by 20% this quarter.\",\n \"target\": \"All active members in the Boston local center.\",\n \"activities\": \"Welcome remarks, working-group breakouts, and a social hour to close.\",\n \"advertising\": \"Promoted via newsletter, on the homepage, and through partner channels.\",\n \"budget\": \"Estimated $1,200 for venue and refreshments.\",\n \"partners\": \"Boston Public Library, City of Boston Civic Engagement Office.\",\n \"numberOfParticipants\": 42,\n \"isGeneralMeeting\": true,\n \"isGeneralMeetingEx\": true,\n \"isGeneralMeetingElection\": true,\n \"isTraining\": true,\n \"parentEvent\": \"/api/v1/events/1\",\n \"position\": 42,\n \"dateTimeBegin\": \"2026-01-15T10:30:00+00:00\",\n \"dateTimeEnd\": \"2026-01-15T10:30:00+00:00\",\n \"isAnnualReport\": true,\n \"product\": \"/api/v1/products/1\",\n \"meet\": \"https://meet.google.com/abc-defg-hij\",\n \"settings\": [\n \"string\"\n ],\n \"hasVoting\": true,\n \"sdg\": [\n \"string\"\n ],\n \"isPublic\": true,\n \"hasEventTicketing\": true,\n \"isUnlisted\": true,\n \"hasPublicAttendeeList\": true,\n \"hasNetworking\": true,\n \"isNetworkingDisabled\": true,\n \"timezone\": \"America/New_York\",\n \"newsletterEnabled\": true,\n \"placesApiId\": \"ChIJOwg_06VPwokRYv534QaPC8g\",\n \"subEventPlaceName\": \"Boston Common\",\n \"placeLatitude\": 42.3601,\n \"placeLongitude\": -71.0589,\n \"gamificationPoints\": 42,\n \"badge\": {\n \"name\": \"Boston Chapter\",\n \"logo\": \"https://cdn.orgo.space/tenants/acme/logo.png\"\n },\n \"customStatus\": \"/api/v1/event_statuses/1\",\n \"sendAttendanceReminder\": true,\n \"sendOneHourReminder\": true,\n \"requiresRegistrationForm\": true,\n \"maxCapacity\": 42,\n \"registrationManuallyClosed\": true,\n \"registrationFormText\": \"string\",\n \"allowedUserType\": \"/api/v1/roles/1\"\n },\n \"position\": 42,\n \"dateTimeBegin\": \"2026-01-15T10:30:00+00:00\",\n \"dateTimeEnd\": \"2026-01-15T10:30:00+00:00\",\n \"isAnnualReport\": true,\n \"product\": \"/api/v1/products/1\",\n \"meet\": \"https://meet.google.com/abc-defg-hij\",\n \"settings\": [\n \"string\"\n ],\n \"hasVoting\": true,\n \"sdg\": [\n \"string\"\n ],\n \"isPublic\": true,\n \"hasEventTicketing\": true,\n \"isUnlisted\": true,\n \"hasPublicAttendeeList\": true,\n \"hasNetworking\": true,\n \"isNetworkingDisabled\": true,\n \"timezone\": \"America/New_York\",\n \"newsletterEnabled\": true,\n \"placesApiId\": \"ChIJOwg_06VPwokRYv534QaPC8g\",\n \"subEventPlaceName\": \"Boston Common\",\n \"placeLatitude\": 42.3601,\n \"placeLongitude\": -71.0589,\n \"gamificationPoints\": 42,\n \"badge\": {\n \"name\": \"Boston Chapter\",\n \"logo\": \"https://cdn.orgo.space/tenants/acme/logo.png\"\n },\n \"customStatus\": \"/api/v1/event_statuses/1\",\n \"sendAttendanceReminder\": true,\n \"sendOneHourReminder\": true,\n \"requiresRegistrationForm\": true,\n \"maxCapacity\": 42,\n \"registrationManuallyClosed\": true,\n \"registrationFormText\": \"string\",\n \"allowedUserType\": \"/api/v1/roles/1\"\n}"
response = http.request(request)
puts response.read_bodyGet or create a draft preview link
Returns previewToken and previewUrl for sharing the public page of a draft with people who have no account. Idempotent: the token is created once and reused until reset or publish. Only public, top-level drafts have one (400 otherwise). Requires event ownership, EVENT_TENANT, or EVENT_LOCAL permission.
curl --request PATCH \
--url https://app.orgo.space/api/v1/events/{uuid}/preview-token \
--header 'Api-Token: <api-key>' \
--header 'Content-Type: application/merge-patch+json' \
--data '
{
"name": "Boston Chapter",
"location": "Boston Common, Boston, MA",
"description": "Quarterly chapter meeting open to all members.",
"logo": "https://cdn.orgo.space/tenants/acme/logo.png",
"type": {
"name": "Boston Chapter",
"color": "#16A34A",
"icon": "calendar"
},
"unit": "/api/v1/units/1",
"tags": "string",
"goal": "Increase active volunteer participation by 20% this quarter.",
"target": "All active members in the Boston local center.",
"activities": "Welcome remarks, working-group breakouts, and a social hour to close.",
"advertising": "Promoted via newsletter, on the homepage, and through partner channels.",
"budget": "Estimated $1,200 for venue and refreshments.",
"partners": "Boston Public Library, City of Boston Civic Engagement Office.",
"numberOfParticipants": 42,
"isGeneralMeeting": true,
"isGeneralMeetingEx": true,
"isGeneralMeetingElection": true,
"isTraining": true,
"parentEvent": {
"name": "Boston Chapter",
"location": "Boston Common, Boston, MA",
"description": "Quarterly chapter meeting open to all members.",
"logo": "https://cdn.orgo.space/tenants/acme/logo.png",
"type": {
"name": "Boston Chapter",
"color": "#16A34A",
"icon": "calendar"
},
"unit": "/api/v1/units/1",
"tags": "string",
"goal": "Increase active volunteer participation by 20% this quarter.",
"target": "All active members in the Boston local center.",
"activities": "Welcome remarks, working-group breakouts, and a social hour to close.",
"advertising": "Promoted via newsletter, on the homepage, and through partner channels.",
"budget": "Estimated $1,200 for venue and refreshments.",
"partners": "Boston Public Library, City of Boston Civic Engagement Office.",
"numberOfParticipants": 42,
"isGeneralMeeting": true,
"isGeneralMeetingEx": true,
"isGeneralMeetingElection": true,
"isTraining": true,
"parentEvent": "/api/v1/events/1",
"position": 42,
"dateTimeBegin": "2026-01-15T10:30:00+00:00",
"dateTimeEnd": "2026-01-15T10:30:00+00:00",
"isAnnualReport": true,
"product": "/api/v1/products/1",
"meet": "https://meet.google.com/abc-defg-hij",
"settings": [
"string"
],
"hasVoting": true,
"sdg": [
"string"
],
"isPublic": true,
"hasEventTicketing": true,
"isUnlisted": true,
"hasPublicAttendeeList": true,
"hasNetworking": true,
"isNetworkingDisabled": true,
"timezone": "America/New_York",
"newsletterEnabled": true,
"placesApiId": "ChIJOwg_06VPwokRYv534QaPC8g",
"subEventPlaceName": "Boston Common",
"placeLatitude": 42.3601,
"placeLongitude": -71.0589,
"gamificationPoints": 42,
"badge": {
"name": "Boston Chapter",
"logo": "https://cdn.orgo.space/tenants/acme/logo.png"
},
"customStatus": "/api/v1/event_statuses/1",
"sendAttendanceReminder": true,
"sendOneHourReminder": true,
"requiresRegistrationForm": true,
"maxCapacity": 42,
"registrationManuallyClosed": true,
"registrationFormText": "string",
"allowedUserType": "/api/v1/roles/1"
},
"position": 42,
"dateTimeBegin": "2026-01-15T10:30:00+00:00",
"dateTimeEnd": "2026-01-15T10:30:00+00:00",
"isAnnualReport": true,
"product": "/api/v1/products/1",
"meet": "https://meet.google.com/abc-defg-hij",
"settings": [
"string"
],
"hasVoting": true,
"sdg": [
"string"
],
"isPublic": true,
"hasEventTicketing": true,
"isUnlisted": true,
"hasPublicAttendeeList": true,
"hasNetworking": true,
"isNetworkingDisabled": true,
"timezone": "America/New_York",
"newsletterEnabled": true,
"placesApiId": "ChIJOwg_06VPwokRYv534QaPC8g",
"subEventPlaceName": "Boston Common",
"placeLatitude": 42.3601,
"placeLongitude": -71.0589,
"gamificationPoints": 42,
"badge": {
"name": "Boston Chapter",
"logo": "https://cdn.orgo.space/tenants/acme/logo.png"
},
"customStatus": "/api/v1/event_statuses/1",
"sendAttendanceReminder": true,
"sendOneHourReminder": true,
"requiresRegistrationForm": true,
"maxCapacity": 42,
"registrationManuallyClosed": true,
"registrationFormText": "string",
"allowedUserType": "/api/v1/roles/1"
}
'import requests
url = "https://app.orgo.space/api/v1/events/{uuid}/preview-token"
payload = {
"name": "Boston Chapter",
"location": "Boston Common, Boston, MA",
"description": "Quarterly chapter meeting open to all members.",
"logo": "https://cdn.orgo.space/tenants/acme/logo.png",
"type": {
"name": "Boston Chapter",
"color": "#16A34A",
"icon": "calendar"
},
"unit": "/api/v1/units/1",
"tags": "string",
"goal": "Increase active volunteer participation by 20% this quarter.",
"target": "All active members in the Boston local center.",
"activities": "Welcome remarks, working-group breakouts, and a social hour to close.",
"advertising": "Promoted via newsletter, on the homepage, and through partner channels.",
"budget": "Estimated $1,200 for venue and refreshments.",
"partners": "Boston Public Library, City of Boston Civic Engagement Office.",
"numberOfParticipants": 42,
"isGeneralMeeting": True,
"isGeneralMeetingEx": True,
"isGeneralMeetingElection": True,
"isTraining": True,
"parentEvent": {
"name": "Boston Chapter",
"location": "Boston Common, Boston, MA",
"description": "Quarterly chapter meeting open to all members.",
"logo": "https://cdn.orgo.space/tenants/acme/logo.png",
"type": {
"name": "Boston Chapter",
"color": "#16A34A",
"icon": "calendar"
},
"unit": "/api/v1/units/1",
"tags": "string",
"goal": "Increase active volunteer participation by 20% this quarter.",
"target": "All active members in the Boston local center.",
"activities": "Welcome remarks, working-group breakouts, and a social hour to close.",
"advertising": "Promoted via newsletter, on the homepage, and through partner channels.",
"budget": "Estimated $1,200 for venue and refreshments.",
"partners": "Boston Public Library, City of Boston Civic Engagement Office.",
"numberOfParticipants": 42,
"isGeneralMeeting": True,
"isGeneralMeetingEx": True,
"isGeneralMeetingElection": True,
"isTraining": True,
"parentEvent": "/api/v1/events/1",
"position": 42,
"dateTimeBegin": "2026-01-15T10:30:00+00:00",
"dateTimeEnd": "2026-01-15T10:30:00+00:00",
"isAnnualReport": True,
"product": "/api/v1/products/1",
"meet": "https://meet.google.com/abc-defg-hij",
"settings": ["string"],
"hasVoting": True,
"sdg": ["string"],
"isPublic": True,
"hasEventTicketing": True,
"isUnlisted": True,
"hasPublicAttendeeList": True,
"hasNetworking": True,
"isNetworkingDisabled": True,
"timezone": "America/New_York",
"newsletterEnabled": True,
"placesApiId": "ChIJOwg_06VPwokRYv534QaPC8g",
"subEventPlaceName": "Boston Common",
"placeLatitude": 42.3601,
"placeLongitude": -71.0589,
"gamificationPoints": 42,
"badge": {
"name": "Boston Chapter",
"logo": "https://cdn.orgo.space/tenants/acme/logo.png"
},
"customStatus": "/api/v1/event_statuses/1",
"sendAttendanceReminder": True,
"sendOneHourReminder": True,
"requiresRegistrationForm": True,
"maxCapacity": 42,
"registrationManuallyClosed": True,
"registrationFormText": "string",
"allowedUserType": "/api/v1/roles/1"
},
"position": 42,
"dateTimeBegin": "2026-01-15T10:30:00+00:00",
"dateTimeEnd": "2026-01-15T10:30:00+00:00",
"isAnnualReport": True,
"product": "/api/v1/products/1",
"meet": "https://meet.google.com/abc-defg-hij",
"settings": ["string"],
"hasVoting": True,
"sdg": ["string"],
"isPublic": True,
"hasEventTicketing": True,
"isUnlisted": True,
"hasPublicAttendeeList": True,
"hasNetworking": True,
"isNetworkingDisabled": True,
"timezone": "America/New_York",
"newsletterEnabled": True,
"placesApiId": "ChIJOwg_06VPwokRYv534QaPC8g",
"subEventPlaceName": "Boston Common",
"placeLatitude": 42.3601,
"placeLongitude": -71.0589,
"gamificationPoints": 42,
"badge": {
"name": "Boston Chapter",
"logo": "https://cdn.orgo.space/tenants/acme/logo.png"
},
"customStatus": "/api/v1/event_statuses/1",
"sendAttendanceReminder": True,
"sendOneHourReminder": True,
"requiresRegistrationForm": True,
"maxCapacity": 42,
"registrationManuallyClosed": True,
"registrationFormText": "string",
"allowedUserType": "/api/v1/roles/1"
}
headers = {
"Api-Token": "<api-key>",
"Content-Type": "application/merge-patch+json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'Api-Token': '<api-key>', 'Content-Type': 'application/merge-patch+json'},
body: JSON.stringify({
name: 'Boston Chapter',
location: 'Boston Common, Boston, MA',
description: 'Quarterly chapter meeting open to all members.',
logo: 'https://cdn.orgo.space/tenants/acme/logo.png',
type: {name: 'Boston Chapter', color: '#16A34A', icon: 'calendar'},
unit: '/api/v1/units/1',
tags: 'string',
goal: 'Increase active volunteer participation by 20% this quarter.',
target: 'All active members in the Boston local center.',
activities: 'Welcome remarks, working-group breakouts, and a social hour to close.',
advertising: 'Promoted via newsletter, on the homepage, and through partner channels.',
budget: 'Estimated $1,200 for venue and refreshments.',
partners: 'Boston Public Library, City of Boston Civic Engagement Office.',
numberOfParticipants: 42,
isGeneralMeeting: true,
isGeneralMeetingEx: true,
isGeneralMeetingElection: true,
isTraining: true,
parentEvent: {
name: 'Boston Chapter',
location: 'Boston Common, Boston, MA',
description: 'Quarterly chapter meeting open to all members.',
logo: 'https://cdn.orgo.space/tenants/acme/logo.png',
type: {name: 'Boston Chapter', color: '#16A34A', icon: 'calendar'},
unit: '/api/v1/units/1',
tags: 'string',
goal: 'Increase active volunteer participation by 20% this quarter.',
target: 'All active members in the Boston local center.',
activities: 'Welcome remarks, working-group breakouts, and a social hour to close.',
advertising: 'Promoted via newsletter, on the homepage, and through partner channels.',
budget: 'Estimated $1,200 for venue and refreshments.',
partners: 'Boston Public Library, City of Boston Civic Engagement Office.',
numberOfParticipants: 42,
isGeneralMeeting: true,
isGeneralMeetingEx: true,
isGeneralMeetingElection: true,
isTraining: true,
parentEvent: '/api/v1/events/1',
position: 42,
dateTimeBegin: '2026-01-15T10:30:00+00:00',
dateTimeEnd: '2026-01-15T10:30:00+00:00',
isAnnualReport: true,
product: '/api/v1/products/1',
meet: 'https://meet.google.com/abc-defg-hij',
settings: ['string'],
hasVoting: true,
sdg: ['string'],
isPublic: true,
hasEventTicketing: true,
isUnlisted: true,
hasPublicAttendeeList: true,
hasNetworking: true,
isNetworkingDisabled: true,
timezone: 'America/New_York',
newsletterEnabled: true,
placesApiId: 'ChIJOwg_06VPwokRYv534QaPC8g',
subEventPlaceName: 'Boston Common',
placeLatitude: 42.3601,
placeLongitude: -71.0589,
gamificationPoints: 42,
badge: {name: 'Boston Chapter', logo: 'https://cdn.orgo.space/tenants/acme/logo.png'},
customStatus: '/api/v1/event_statuses/1',
sendAttendanceReminder: true,
sendOneHourReminder: true,
requiresRegistrationForm: true,
maxCapacity: 42,
registrationManuallyClosed: true,
registrationFormText: 'string',
allowedUserType: '/api/v1/roles/1'
},
position: 42,
dateTimeBegin: '2026-01-15T10:30:00+00:00',
dateTimeEnd: '2026-01-15T10:30:00+00:00',
isAnnualReport: true,
product: '/api/v1/products/1',
meet: 'https://meet.google.com/abc-defg-hij',
settings: ['string'],
hasVoting: true,
sdg: ['string'],
isPublic: true,
hasEventTicketing: true,
isUnlisted: true,
hasPublicAttendeeList: true,
hasNetworking: true,
isNetworkingDisabled: true,
timezone: 'America/New_York',
newsletterEnabled: true,
placesApiId: 'ChIJOwg_06VPwokRYv534QaPC8g',
subEventPlaceName: 'Boston Common',
placeLatitude: 42.3601,
placeLongitude: -71.0589,
gamificationPoints: 42,
badge: {name: 'Boston Chapter', logo: 'https://cdn.orgo.space/tenants/acme/logo.png'},
customStatus: '/api/v1/event_statuses/1',
sendAttendanceReminder: true,
sendOneHourReminder: true,
requiresRegistrationForm: true,
maxCapacity: 42,
registrationManuallyClosed: true,
registrationFormText: 'string',
allowedUserType: '/api/v1/roles/1'
})
};
fetch('https://app.orgo.space/api/v1/events/{uuid}/preview-token', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.orgo.space/api/v1/events/{uuid}/preview-token",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'name' => 'Boston Chapter',
'location' => 'Boston Common, Boston, MA',
'description' => 'Quarterly chapter meeting open to all members.',
'logo' => 'https://cdn.orgo.space/tenants/acme/logo.png',
'type' => [
'name' => 'Boston Chapter',
'color' => '#16A34A',
'icon' => 'calendar'
],
'unit' => '/api/v1/units/1',
'tags' => 'string',
'goal' => 'Increase active volunteer participation by 20% this quarter.',
'target' => 'All active members in the Boston local center.',
'activities' => 'Welcome remarks, working-group breakouts, and a social hour to close.',
'advertising' => 'Promoted via newsletter, on the homepage, and through partner channels.',
'budget' => 'Estimated $1,200 for venue and refreshments.',
'partners' => 'Boston Public Library, City of Boston Civic Engagement Office.',
'numberOfParticipants' => 42,
'isGeneralMeeting' => true,
'isGeneralMeetingEx' => true,
'isGeneralMeetingElection' => true,
'isTraining' => true,
'parentEvent' => [
'name' => 'Boston Chapter',
'location' => 'Boston Common, Boston, MA',
'description' => 'Quarterly chapter meeting open to all members.',
'logo' => 'https://cdn.orgo.space/tenants/acme/logo.png',
'type' => [
'name' => 'Boston Chapter',
'color' => '#16A34A',
'icon' => 'calendar'
],
'unit' => '/api/v1/units/1',
'tags' => 'string',
'goal' => 'Increase active volunteer participation by 20% this quarter.',
'target' => 'All active members in the Boston local center.',
'activities' => 'Welcome remarks, working-group breakouts, and a social hour to close.',
'advertising' => 'Promoted via newsletter, on the homepage, and through partner channels.',
'budget' => 'Estimated $1,200 for venue and refreshments.',
'partners' => 'Boston Public Library, City of Boston Civic Engagement Office.',
'numberOfParticipants' => 42,
'isGeneralMeeting' => true,
'isGeneralMeetingEx' => true,
'isGeneralMeetingElection' => true,
'isTraining' => true,
'parentEvent' => '/api/v1/events/1',
'position' => 42,
'dateTimeBegin' => '2026-01-15T10:30:00+00:00',
'dateTimeEnd' => '2026-01-15T10:30:00+00:00',
'isAnnualReport' => true,
'product' => '/api/v1/products/1',
'meet' => 'https://meet.google.com/abc-defg-hij',
'settings' => [
'string'
],
'hasVoting' => true,
'sdg' => [
'string'
],
'isPublic' => true,
'hasEventTicketing' => true,
'isUnlisted' => true,
'hasPublicAttendeeList' => true,
'hasNetworking' => true,
'isNetworkingDisabled' => true,
'timezone' => 'America/New_York',
'newsletterEnabled' => true,
'placesApiId' => 'ChIJOwg_06VPwokRYv534QaPC8g',
'subEventPlaceName' => 'Boston Common',
'placeLatitude' => 42.3601,
'placeLongitude' => -71.0589,
'gamificationPoints' => 42,
'badge' => [
'name' => 'Boston Chapter',
'logo' => 'https://cdn.orgo.space/tenants/acme/logo.png'
],
'customStatus' => '/api/v1/event_statuses/1',
'sendAttendanceReminder' => true,
'sendOneHourReminder' => true,
'requiresRegistrationForm' => true,
'maxCapacity' => 42,
'registrationManuallyClosed' => true,
'registrationFormText' => 'string',
'allowedUserType' => '/api/v1/roles/1'
],
'position' => 42,
'dateTimeBegin' => '2026-01-15T10:30:00+00:00',
'dateTimeEnd' => '2026-01-15T10:30:00+00:00',
'isAnnualReport' => true,
'product' => '/api/v1/products/1',
'meet' => 'https://meet.google.com/abc-defg-hij',
'settings' => [
'string'
],
'hasVoting' => true,
'sdg' => [
'string'
],
'isPublic' => true,
'hasEventTicketing' => true,
'isUnlisted' => true,
'hasPublicAttendeeList' => true,
'hasNetworking' => true,
'isNetworkingDisabled' => true,
'timezone' => 'America/New_York',
'newsletterEnabled' => true,
'placesApiId' => 'ChIJOwg_06VPwokRYv534QaPC8g',
'subEventPlaceName' => 'Boston Common',
'placeLatitude' => 42.3601,
'placeLongitude' => -71.0589,
'gamificationPoints' => 42,
'badge' => [
'name' => 'Boston Chapter',
'logo' => 'https://cdn.orgo.space/tenants/acme/logo.png'
],
'customStatus' => '/api/v1/event_statuses/1',
'sendAttendanceReminder' => true,
'sendOneHourReminder' => true,
'requiresRegistrationForm' => true,
'maxCapacity' => 42,
'registrationManuallyClosed' => true,
'registrationFormText' => 'string',
'allowedUserType' => '/api/v1/roles/1'
]),
CURLOPT_HTTPHEADER => [
"Api-Token: <api-key>",
"Content-Type: application/merge-patch+json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.orgo.space/api/v1/events/{uuid}/preview-token"
payload := strings.NewReader("{\n \"name\": \"Boston Chapter\",\n \"location\": \"Boston Common, Boston, MA\",\n \"description\": \"Quarterly chapter meeting open to all members.\",\n \"logo\": \"https://cdn.orgo.space/tenants/acme/logo.png\",\n \"type\": {\n \"name\": \"Boston Chapter\",\n \"color\": \"#16A34A\",\n \"icon\": \"calendar\"\n },\n \"unit\": \"/api/v1/units/1\",\n \"tags\": \"string\",\n \"goal\": \"Increase active volunteer participation by 20% this quarter.\",\n \"target\": \"All active members in the Boston local center.\",\n \"activities\": \"Welcome remarks, working-group breakouts, and a social hour to close.\",\n \"advertising\": \"Promoted via newsletter, on the homepage, and through partner channels.\",\n \"budget\": \"Estimated $1,200 for venue and refreshments.\",\n \"partners\": \"Boston Public Library, City of Boston Civic Engagement Office.\",\n \"numberOfParticipants\": 42,\n \"isGeneralMeeting\": true,\n \"isGeneralMeetingEx\": true,\n \"isGeneralMeetingElection\": true,\n \"isTraining\": true,\n \"parentEvent\": {\n \"name\": \"Boston Chapter\",\n \"location\": \"Boston Common, Boston, MA\",\n \"description\": \"Quarterly chapter meeting open to all members.\",\n \"logo\": \"https://cdn.orgo.space/tenants/acme/logo.png\",\n \"type\": {\n \"name\": \"Boston Chapter\",\n \"color\": \"#16A34A\",\n \"icon\": \"calendar\"\n },\n \"unit\": \"/api/v1/units/1\",\n \"tags\": \"string\",\n \"goal\": \"Increase active volunteer participation by 20% this quarter.\",\n \"target\": \"All active members in the Boston local center.\",\n \"activities\": \"Welcome remarks, working-group breakouts, and a social hour to close.\",\n \"advertising\": \"Promoted via newsletter, on the homepage, and through partner channels.\",\n \"budget\": \"Estimated $1,200 for venue and refreshments.\",\n \"partners\": \"Boston Public Library, City of Boston Civic Engagement Office.\",\n \"numberOfParticipants\": 42,\n \"isGeneralMeeting\": true,\n \"isGeneralMeetingEx\": true,\n \"isGeneralMeetingElection\": true,\n \"isTraining\": true,\n \"parentEvent\": \"/api/v1/events/1\",\n \"position\": 42,\n \"dateTimeBegin\": \"2026-01-15T10:30:00+00:00\",\n \"dateTimeEnd\": \"2026-01-15T10:30:00+00:00\",\n \"isAnnualReport\": true,\n \"product\": \"/api/v1/products/1\",\n \"meet\": \"https://meet.google.com/abc-defg-hij\",\n \"settings\": [\n \"string\"\n ],\n \"hasVoting\": true,\n \"sdg\": [\n \"string\"\n ],\n \"isPublic\": true,\n \"hasEventTicketing\": true,\n \"isUnlisted\": true,\n \"hasPublicAttendeeList\": true,\n \"hasNetworking\": true,\n \"isNetworkingDisabled\": true,\n \"timezone\": \"America/New_York\",\n \"newsletterEnabled\": true,\n \"placesApiId\": \"ChIJOwg_06VPwokRYv534QaPC8g\",\n \"subEventPlaceName\": \"Boston Common\",\n \"placeLatitude\": 42.3601,\n \"placeLongitude\": -71.0589,\n \"gamificationPoints\": 42,\n \"badge\": {\n \"name\": \"Boston Chapter\",\n \"logo\": \"https://cdn.orgo.space/tenants/acme/logo.png\"\n },\n \"customStatus\": \"/api/v1/event_statuses/1\",\n \"sendAttendanceReminder\": true,\n \"sendOneHourReminder\": true,\n \"requiresRegistrationForm\": true,\n \"maxCapacity\": 42,\n \"registrationManuallyClosed\": true,\n \"registrationFormText\": \"string\",\n \"allowedUserType\": \"/api/v1/roles/1\"\n },\n \"position\": 42,\n \"dateTimeBegin\": \"2026-01-15T10:30:00+00:00\",\n \"dateTimeEnd\": \"2026-01-15T10:30:00+00:00\",\n \"isAnnualReport\": true,\n \"product\": \"/api/v1/products/1\",\n \"meet\": \"https://meet.google.com/abc-defg-hij\",\n \"settings\": [\n \"string\"\n ],\n \"hasVoting\": true,\n \"sdg\": [\n \"string\"\n ],\n \"isPublic\": true,\n \"hasEventTicketing\": true,\n \"isUnlisted\": true,\n \"hasPublicAttendeeList\": true,\n \"hasNetworking\": true,\n \"isNetworkingDisabled\": true,\n \"timezone\": \"America/New_York\",\n \"newsletterEnabled\": true,\n \"placesApiId\": \"ChIJOwg_06VPwokRYv534QaPC8g\",\n \"subEventPlaceName\": \"Boston Common\",\n \"placeLatitude\": 42.3601,\n \"placeLongitude\": -71.0589,\n \"gamificationPoints\": 42,\n \"badge\": {\n \"name\": \"Boston Chapter\",\n \"logo\": \"https://cdn.orgo.space/tenants/acme/logo.png\"\n },\n \"customStatus\": \"/api/v1/event_statuses/1\",\n \"sendAttendanceReminder\": true,\n \"sendOneHourReminder\": true,\n \"requiresRegistrationForm\": true,\n \"maxCapacity\": 42,\n \"registrationManuallyClosed\": true,\n \"registrationFormText\": \"string\",\n \"allowedUserType\": \"/api/v1/roles/1\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Api-Token", "<api-key>")
req.Header.Add("Content-Type", "application/merge-patch+json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://app.orgo.space/api/v1/events/{uuid}/preview-token")
.header("Api-Token", "<api-key>")
.header("Content-Type", "application/merge-patch+json")
.body("{\n \"name\": \"Boston Chapter\",\n \"location\": \"Boston Common, Boston, MA\",\n \"description\": \"Quarterly chapter meeting open to all members.\",\n \"logo\": \"https://cdn.orgo.space/tenants/acme/logo.png\",\n \"type\": {\n \"name\": \"Boston Chapter\",\n \"color\": \"#16A34A\",\n \"icon\": \"calendar\"\n },\n \"unit\": \"/api/v1/units/1\",\n \"tags\": \"string\",\n \"goal\": \"Increase active volunteer participation by 20% this quarter.\",\n \"target\": \"All active members in the Boston local center.\",\n \"activities\": \"Welcome remarks, working-group breakouts, and a social hour to close.\",\n \"advertising\": \"Promoted via newsletter, on the homepage, and through partner channels.\",\n \"budget\": \"Estimated $1,200 for venue and refreshments.\",\n \"partners\": \"Boston Public Library, City of Boston Civic Engagement Office.\",\n \"numberOfParticipants\": 42,\n \"isGeneralMeeting\": true,\n \"isGeneralMeetingEx\": true,\n \"isGeneralMeetingElection\": true,\n \"isTraining\": true,\n \"parentEvent\": {\n \"name\": \"Boston Chapter\",\n \"location\": \"Boston Common, Boston, MA\",\n \"description\": \"Quarterly chapter meeting open to all members.\",\n \"logo\": \"https://cdn.orgo.space/tenants/acme/logo.png\",\n \"type\": {\n \"name\": \"Boston Chapter\",\n \"color\": \"#16A34A\",\n \"icon\": \"calendar\"\n },\n \"unit\": \"/api/v1/units/1\",\n \"tags\": \"string\",\n \"goal\": \"Increase active volunteer participation by 20% this quarter.\",\n \"target\": \"All active members in the Boston local center.\",\n \"activities\": \"Welcome remarks, working-group breakouts, and a social hour to close.\",\n \"advertising\": \"Promoted via newsletter, on the homepage, and through partner channels.\",\n \"budget\": \"Estimated $1,200 for venue and refreshments.\",\n \"partners\": \"Boston Public Library, City of Boston Civic Engagement Office.\",\n \"numberOfParticipants\": 42,\n \"isGeneralMeeting\": true,\n \"isGeneralMeetingEx\": true,\n \"isGeneralMeetingElection\": true,\n \"isTraining\": true,\n \"parentEvent\": \"/api/v1/events/1\",\n \"position\": 42,\n \"dateTimeBegin\": \"2026-01-15T10:30:00+00:00\",\n \"dateTimeEnd\": \"2026-01-15T10:30:00+00:00\",\n \"isAnnualReport\": true,\n \"product\": \"/api/v1/products/1\",\n \"meet\": \"https://meet.google.com/abc-defg-hij\",\n \"settings\": [\n \"string\"\n ],\n \"hasVoting\": true,\n \"sdg\": [\n \"string\"\n ],\n \"isPublic\": true,\n \"hasEventTicketing\": true,\n \"isUnlisted\": true,\n \"hasPublicAttendeeList\": true,\n \"hasNetworking\": true,\n \"isNetworkingDisabled\": true,\n \"timezone\": \"America/New_York\",\n \"newsletterEnabled\": true,\n \"placesApiId\": \"ChIJOwg_06VPwokRYv534QaPC8g\",\n \"subEventPlaceName\": \"Boston Common\",\n \"placeLatitude\": 42.3601,\n \"placeLongitude\": -71.0589,\n \"gamificationPoints\": 42,\n \"badge\": {\n \"name\": \"Boston Chapter\",\n \"logo\": \"https://cdn.orgo.space/tenants/acme/logo.png\"\n },\n \"customStatus\": \"/api/v1/event_statuses/1\",\n \"sendAttendanceReminder\": true,\n \"sendOneHourReminder\": true,\n \"requiresRegistrationForm\": true,\n \"maxCapacity\": 42,\n \"registrationManuallyClosed\": true,\n \"registrationFormText\": \"string\",\n \"allowedUserType\": \"/api/v1/roles/1\"\n },\n \"position\": 42,\n \"dateTimeBegin\": \"2026-01-15T10:30:00+00:00\",\n \"dateTimeEnd\": \"2026-01-15T10:30:00+00:00\",\n \"isAnnualReport\": true,\n \"product\": \"/api/v1/products/1\",\n \"meet\": \"https://meet.google.com/abc-defg-hij\",\n \"settings\": [\n \"string\"\n ],\n \"hasVoting\": true,\n \"sdg\": [\n \"string\"\n ],\n \"isPublic\": true,\n \"hasEventTicketing\": true,\n \"isUnlisted\": true,\n \"hasPublicAttendeeList\": true,\n \"hasNetworking\": true,\n \"isNetworkingDisabled\": true,\n \"timezone\": \"America/New_York\",\n \"newsletterEnabled\": true,\n \"placesApiId\": \"ChIJOwg_06VPwokRYv534QaPC8g\",\n \"subEventPlaceName\": \"Boston Common\",\n \"placeLatitude\": 42.3601,\n \"placeLongitude\": -71.0589,\n \"gamificationPoints\": 42,\n \"badge\": {\n \"name\": \"Boston Chapter\",\n \"logo\": \"https://cdn.orgo.space/tenants/acme/logo.png\"\n },\n \"customStatus\": \"/api/v1/event_statuses/1\",\n \"sendAttendanceReminder\": true,\n \"sendOneHourReminder\": true,\n \"requiresRegistrationForm\": true,\n \"maxCapacity\": 42,\n \"registrationManuallyClosed\": true,\n \"registrationFormText\": \"string\",\n \"allowedUserType\": \"/api/v1/roles/1\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.orgo.space/api/v1/events/{uuid}/preview-token")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Api-Token"] = '<api-key>'
request["Content-Type"] = 'application/merge-patch+json'
request.body = "{\n \"name\": \"Boston Chapter\",\n \"location\": \"Boston Common, Boston, MA\",\n \"description\": \"Quarterly chapter meeting open to all members.\",\n \"logo\": \"https://cdn.orgo.space/tenants/acme/logo.png\",\n \"type\": {\n \"name\": \"Boston Chapter\",\n \"color\": \"#16A34A\",\n \"icon\": \"calendar\"\n },\n \"unit\": \"/api/v1/units/1\",\n \"tags\": \"string\",\n \"goal\": \"Increase active volunteer participation by 20% this quarter.\",\n \"target\": \"All active members in the Boston local center.\",\n \"activities\": \"Welcome remarks, working-group breakouts, and a social hour to close.\",\n \"advertising\": \"Promoted via newsletter, on the homepage, and through partner channels.\",\n \"budget\": \"Estimated $1,200 for venue and refreshments.\",\n \"partners\": \"Boston Public Library, City of Boston Civic Engagement Office.\",\n \"numberOfParticipants\": 42,\n \"isGeneralMeeting\": true,\n \"isGeneralMeetingEx\": true,\n \"isGeneralMeetingElection\": true,\n \"isTraining\": true,\n \"parentEvent\": {\n \"name\": \"Boston Chapter\",\n \"location\": \"Boston Common, Boston, MA\",\n \"description\": \"Quarterly chapter meeting open to all members.\",\n \"logo\": \"https://cdn.orgo.space/tenants/acme/logo.png\",\n \"type\": {\n \"name\": \"Boston Chapter\",\n \"color\": \"#16A34A\",\n \"icon\": \"calendar\"\n },\n \"unit\": \"/api/v1/units/1\",\n \"tags\": \"string\",\n \"goal\": \"Increase active volunteer participation by 20% this quarter.\",\n \"target\": \"All active members in the Boston local center.\",\n \"activities\": \"Welcome remarks, working-group breakouts, and a social hour to close.\",\n \"advertising\": \"Promoted via newsletter, on the homepage, and through partner channels.\",\n \"budget\": \"Estimated $1,200 for venue and refreshments.\",\n \"partners\": \"Boston Public Library, City of Boston Civic Engagement Office.\",\n \"numberOfParticipants\": 42,\n \"isGeneralMeeting\": true,\n \"isGeneralMeetingEx\": true,\n \"isGeneralMeetingElection\": true,\n \"isTraining\": true,\n \"parentEvent\": \"/api/v1/events/1\",\n \"position\": 42,\n \"dateTimeBegin\": \"2026-01-15T10:30:00+00:00\",\n \"dateTimeEnd\": \"2026-01-15T10:30:00+00:00\",\n \"isAnnualReport\": true,\n \"product\": \"/api/v1/products/1\",\n \"meet\": \"https://meet.google.com/abc-defg-hij\",\n \"settings\": [\n \"string\"\n ],\n \"hasVoting\": true,\n \"sdg\": [\n \"string\"\n ],\n \"isPublic\": true,\n \"hasEventTicketing\": true,\n \"isUnlisted\": true,\n \"hasPublicAttendeeList\": true,\n \"hasNetworking\": true,\n \"isNetworkingDisabled\": true,\n \"timezone\": \"America/New_York\",\n \"newsletterEnabled\": true,\n \"placesApiId\": \"ChIJOwg_06VPwokRYv534QaPC8g\",\n \"subEventPlaceName\": \"Boston Common\",\n \"placeLatitude\": 42.3601,\n \"placeLongitude\": -71.0589,\n \"gamificationPoints\": 42,\n \"badge\": {\n \"name\": \"Boston Chapter\",\n \"logo\": \"https://cdn.orgo.space/tenants/acme/logo.png\"\n },\n \"customStatus\": \"/api/v1/event_statuses/1\",\n \"sendAttendanceReminder\": true,\n \"sendOneHourReminder\": true,\n \"requiresRegistrationForm\": true,\n \"maxCapacity\": 42,\n \"registrationManuallyClosed\": true,\n \"registrationFormText\": \"string\",\n \"allowedUserType\": \"/api/v1/roles/1\"\n },\n \"position\": 42,\n \"dateTimeBegin\": \"2026-01-15T10:30:00+00:00\",\n \"dateTimeEnd\": \"2026-01-15T10:30:00+00:00\",\n \"isAnnualReport\": true,\n \"product\": \"/api/v1/products/1\",\n \"meet\": \"https://meet.google.com/abc-defg-hij\",\n \"settings\": [\n \"string\"\n ],\n \"hasVoting\": true,\n \"sdg\": [\n \"string\"\n ],\n \"isPublic\": true,\n \"hasEventTicketing\": true,\n \"isUnlisted\": true,\n \"hasPublicAttendeeList\": true,\n \"hasNetworking\": true,\n \"isNetworkingDisabled\": true,\n \"timezone\": \"America/New_York\",\n \"newsletterEnabled\": true,\n \"placesApiId\": \"ChIJOwg_06VPwokRYv534QaPC8g\",\n \"subEventPlaceName\": \"Boston Common\",\n \"placeLatitude\": 42.3601,\n \"placeLongitude\": -71.0589,\n \"gamificationPoints\": 42,\n \"badge\": {\n \"name\": \"Boston Chapter\",\n \"logo\": \"https://cdn.orgo.space/tenants/acme/logo.png\"\n },\n \"customStatus\": \"/api/v1/event_statuses/1\",\n \"sendAttendanceReminder\": true,\n \"sendOneHourReminder\": true,\n \"requiresRegistrationForm\": true,\n \"maxCapacity\": 42,\n \"registrationManuallyClosed\": true,\n \"registrationFormText\": \"string\",\n \"allowedUserType\": \"/api/v1/roles/1\"\n}"
response = http.request(request)
puts response.read_bodyAuthorizations
Server-to-server authentication. Generate a token in the admin UI at
Settings → Developers → API Access. Send the raw token in the
Api-Token header — there is no Bearer prefix.
Tokens can be marked read-only at creation time, in which case the API
rejects any non-GET request with 403 Forbidden.
Path Parameters
Event identifier
Body
The updated Event resource
Show child attributes
Show child attributes
"/api/v1/units/1"
Show child attributes
Show child attributes
"/api/v1/products/1"
Show child attributes
Show child attributes
"/api/v1/event_statuses/1"
2000"/api/v1/roles/1"
Response
Event resource updated

