Update an existing group
curl --request PATCH \
--url https://app.planpoint.io/api/groups/{id} \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"_id": "objectId",
"user": "objectId",
"name": "<string>",
"websiteURL": "<string>",
"showAvailableFirst": false,
"projects": [
"objectId"
],
"namespace": "<string>",
"hostName": "<string>",
"groupLang": "en",
"linkBehavior": "Planpoint",
"accentColor": "<string>",
"groupImageUrl": "<string>",
"groupSVGUrl": "<string>",
"svgGroupId": "<string>",
"address": "<string>",
"lon": -93.75940812944687,
"lat": 43.75940812944687,
"zoomLevel": 0,
"administrators": [
"objectId"
],
"editors": [
"objectId"
],
"invites": [
{
"firstName": "<string>",
"lastName": "<string>",
"email": "jsmith@example.com",
"level": "<string>"
}
],
"perimeter": "<string>",
"markerImageUrl": "<string>",
"targetMarker": "<string>",
"mapStyle": "Light",
"mapPointColor": "<string>",
"showAllUnits": true,
"showPrices": true,
"initialView": "List",
"unitImageOnGrid": "Unit Plan",
"pricesStartingAt": false,
"showTaxes": true,
"priceBeforeTax": true,
"showAvailability": true,
"hideSold": true,
"deliveryDates": true,
"internalURL": "<string>",
"alternativeCovers": [
"<string>"
],
"hideArea": false,
"theme": "<string>",
"showBranding": true,
"showPriceFilter": true,
"showAreaFilter": true,
"showFloorOverview": false,
"colorBase": "<string>",
"colorAccent": "<string>",
"colorHover": "<string>",
"colorButton": "<string>",
"colorButtonText": "<string>",
"colorText": "<string>"
}
'import requests
url = "https://app.planpoint.io/api/groups/{id}"
payload = {
"_id": "objectId",
"user": "objectId",
"name": "<string>",
"websiteURL": "<string>",
"showAvailableFirst": False,
"projects": ["objectId"],
"namespace": "<string>",
"hostName": "<string>",
"groupLang": "en",
"linkBehavior": "Planpoint",
"accentColor": "<string>",
"groupImageUrl": "<string>",
"groupSVGUrl": "<string>",
"svgGroupId": "<string>",
"address": "<string>",
"lon": -93.75940812944687,
"lat": 43.75940812944687,
"zoomLevel": 0,
"administrators": ["objectId"],
"editors": ["objectId"],
"invites": [
{
"firstName": "<string>",
"lastName": "<string>",
"email": "jsmith@example.com",
"level": "<string>"
}
],
"perimeter": "<string>",
"markerImageUrl": "<string>",
"targetMarker": "<string>",
"mapStyle": "Light",
"mapPointColor": "<string>",
"showAllUnits": True,
"showPrices": True,
"initialView": "List",
"unitImageOnGrid": "Unit Plan",
"pricesStartingAt": False,
"showTaxes": True,
"priceBeforeTax": True,
"showAvailability": True,
"hideSold": True,
"deliveryDates": True,
"internalURL": "<string>",
"alternativeCovers": ["<string>"],
"hideArea": False,
"theme": "<string>",
"showBranding": True,
"showPriceFilter": True,
"showAreaFilter": True,
"showFloorOverview": False,
"colorBase": "<string>",
"colorAccent": "<string>",
"colorHover": "<string>",
"colorButton": "<string>",
"colorButtonText": "<string>",
"colorText": "<string>"
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
_id: 'objectId',
user: 'objectId',
name: '<string>',
websiteURL: '<string>',
showAvailableFirst: false,
projects: ['objectId'],
namespace: '<string>',
hostName: '<string>',
groupLang: 'en',
linkBehavior: 'Planpoint',
accentColor: '<string>',
groupImageUrl: '<string>',
groupSVGUrl: '<string>',
svgGroupId: '<string>',
address: '<string>',
lon: -93.75940812944687,
lat: 43.75940812944687,
zoomLevel: 0,
administrators: ['objectId'],
editors: ['objectId'],
invites: [
{
firstName: '<string>',
lastName: '<string>',
email: 'jsmith@example.com',
level: '<string>'
}
],
perimeter: '<string>',
markerImageUrl: '<string>',
targetMarker: '<string>',
mapStyle: 'Light',
mapPointColor: '<string>',
showAllUnits: true,
showPrices: true,
initialView: 'List',
unitImageOnGrid: 'Unit Plan',
pricesStartingAt: false,
showTaxes: true,
priceBeforeTax: true,
showAvailability: true,
hideSold: true,
deliveryDates: true,
internalURL: '<string>',
alternativeCovers: ['<string>'],
hideArea: false,
theme: '<string>',
showBranding: true,
showPriceFilter: true,
showAreaFilter: true,
showFloorOverview: false,
colorBase: '<string>',
colorAccent: '<string>',
colorHover: '<string>',
colorButton: '<string>',
colorButtonText: '<string>',
colorText: '<string>'
})
};
fetch('https://app.planpoint.io/api/groups/{id}', 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.planpoint.io/api/groups/{id}",
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([
'_id' => 'objectId',
'user' => 'objectId',
'name' => '<string>',
'websiteURL' => '<string>',
'showAvailableFirst' => false,
'projects' => [
'objectId'
],
'namespace' => '<string>',
'hostName' => '<string>',
'groupLang' => 'en',
'linkBehavior' => 'Planpoint',
'accentColor' => '<string>',
'groupImageUrl' => '<string>',
'groupSVGUrl' => '<string>',
'svgGroupId' => '<string>',
'address' => '<string>',
'lon' => -93.75940812944687,
'lat' => 43.75940812944687,
'zoomLevel' => 0,
'administrators' => [
'objectId'
],
'editors' => [
'objectId'
],
'invites' => [
[
'firstName' => '<string>',
'lastName' => '<string>',
'email' => 'jsmith@example.com',
'level' => '<string>'
]
],
'perimeter' => '<string>',
'markerImageUrl' => '<string>',
'targetMarker' => '<string>',
'mapStyle' => 'Light',
'mapPointColor' => '<string>',
'showAllUnits' => true,
'showPrices' => true,
'initialView' => 'List',
'unitImageOnGrid' => 'Unit Plan',
'pricesStartingAt' => false,
'showTaxes' => true,
'priceBeforeTax' => true,
'showAvailability' => true,
'hideSold' => true,
'deliveryDates' => true,
'internalURL' => '<string>',
'alternativeCovers' => [
'<string>'
],
'hideArea' => false,
'theme' => '<string>',
'showBranding' => true,
'showPriceFilter' => true,
'showAreaFilter' => true,
'showFloorOverview' => false,
'colorBase' => '<string>',
'colorAccent' => '<string>',
'colorHover' => '<string>',
'colorButton' => '<string>',
'colorButtonText' => '<string>',
'colorText' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/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.planpoint.io/api/groups/{id}"
payload := strings.NewReader("{\n \"_id\": \"objectId\",\n \"user\": \"objectId\",\n \"name\": \"<string>\",\n \"websiteURL\": \"<string>\",\n \"showAvailableFirst\": false,\n \"projects\": [\n \"objectId\"\n ],\n \"namespace\": \"<string>\",\n \"hostName\": \"<string>\",\n \"groupLang\": \"en\",\n \"linkBehavior\": \"Planpoint\",\n \"accentColor\": \"<string>\",\n \"groupImageUrl\": \"<string>\",\n \"groupSVGUrl\": \"<string>\",\n \"svgGroupId\": \"<string>\",\n \"address\": \"<string>\",\n \"lon\": -93.75940812944687,\n \"lat\": 43.75940812944687,\n \"zoomLevel\": 0,\n \"administrators\": [\n \"objectId\"\n ],\n \"editors\": [\n \"objectId\"\n ],\n \"invites\": [\n {\n \"firstName\": \"<string>\",\n \"lastName\": \"<string>\",\n \"email\": \"jsmith@example.com\",\n \"level\": \"<string>\"\n }\n ],\n \"perimeter\": \"<string>\",\n \"markerImageUrl\": \"<string>\",\n \"targetMarker\": \"<string>\",\n \"mapStyle\": \"Light\",\n \"mapPointColor\": \"<string>\",\n \"showAllUnits\": true,\n \"showPrices\": true,\n \"initialView\": \"List\",\n \"unitImageOnGrid\": \"Unit Plan\",\n \"pricesStartingAt\": false,\n \"showTaxes\": true,\n \"priceBeforeTax\": true,\n \"showAvailability\": true,\n \"hideSold\": true,\n \"deliveryDates\": true,\n \"internalURL\": \"<string>\",\n \"alternativeCovers\": [\n \"<string>\"\n ],\n \"hideArea\": false,\n \"theme\": \"<string>\",\n \"showBranding\": true,\n \"showPriceFilter\": true,\n \"showAreaFilter\": true,\n \"showFloorOverview\": false,\n \"colorBase\": \"<string>\",\n \"colorAccent\": \"<string>\",\n \"colorHover\": \"<string>\",\n \"colorButton\": \"<string>\",\n \"colorButtonText\": \"<string>\",\n \"colorText\": \"<string>\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "<api-key>")
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))
}HttpResponse<String> response = Unirest.patch("https://app.planpoint.io/api/groups/{id}")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"_id\": \"objectId\",\n \"user\": \"objectId\",\n \"name\": \"<string>\",\n \"websiteURL\": \"<string>\",\n \"showAvailableFirst\": false,\n \"projects\": [\n \"objectId\"\n ],\n \"namespace\": \"<string>\",\n \"hostName\": \"<string>\",\n \"groupLang\": \"en\",\n \"linkBehavior\": \"Planpoint\",\n \"accentColor\": \"<string>\",\n \"groupImageUrl\": \"<string>\",\n \"groupSVGUrl\": \"<string>\",\n \"svgGroupId\": \"<string>\",\n \"address\": \"<string>\",\n \"lon\": -93.75940812944687,\n \"lat\": 43.75940812944687,\n \"zoomLevel\": 0,\n \"administrators\": [\n \"objectId\"\n ],\n \"editors\": [\n \"objectId\"\n ],\n \"invites\": [\n {\n \"firstName\": \"<string>\",\n \"lastName\": \"<string>\",\n \"email\": \"jsmith@example.com\",\n \"level\": \"<string>\"\n }\n ],\n \"perimeter\": \"<string>\",\n \"markerImageUrl\": \"<string>\",\n \"targetMarker\": \"<string>\",\n \"mapStyle\": \"Light\",\n \"mapPointColor\": \"<string>\",\n \"showAllUnits\": true,\n \"showPrices\": true,\n \"initialView\": \"List\",\n \"unitImageOnGrid\": \"Unit Plan\",\n \"pricesStartingAt\": false,\n \"showTaxes\": true,\n \"priceBeforeTax\": true,\n \"showAvailability\": true,\n \"hideSold\": true,\n \"deliveryDates\": true,\n \"internalURL\": \"<string>\",\n \"alternativeCovers\": [\n \"<string>\"\n ],\n \"hideArea\": false,\n \"theme\": \"<string>\",\n \"showBranding\": true,\n \"showPriceFilter\": true,\n \"showAreaFilter\": true,\n \"showFloorOverview\": false,\n \"colorBase\": \"<string>\",\n \"colorAccent\": \"<string>\",\n \"colorHover\": \"<string>\",\n \"colorButton\": \"<string>\",\n \"colorButtonText\": \"<string>\",\n \"colorText\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.planpoint.io/api/groups/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"_id\": \"objectId\",\n \"user\": \"objectId\",\n \"name\": \"<string>\",\n \"websiteURL\": \"<string>\",\n \"showAvailableFirst\": false,\n \"projects\": [\n \"objectId\"\n ],\n \"namespace\": \"<string>\",\n \"hostName\": \"<string>\",\n \"groupLang\": \"en\",\n \"linkBehavior\": \"Planpoint\",\n \"accentColor\": \"<string>\",\n \"groupImageUrl\": \"<string>\",\n \"groupSVGUrl\": \"<string>\",\n \"svgGroupId\": \"<string>\",\n \"address\": \"<string>\",\n \"lon\": -93.75940812944687,\n \"lat\": 43.75940812944687,\n \"zoomLevel\": 0,\n \"administrators\": [\n \"objectId\"\n ],\n \"editors\": [\n \"objectId\"\n ],\n \"invites\": [\n {\n \"firstName\": \"<string>\",\n \"lastName\": \"<string>\",\n \"email\": \"jsmith@example.com\",\n \"level\": \"<string>\"\n }\n ],\n \"perimeter\": \"<string>\",\n \"markerImageUrl\": \"<string>\",\n \"targetMarker\": \"<string>\",\n \"mapStyle\": \"Light\",\n \"mapPointColor\": \"<string>\",\n \"showAllUnits\": true,\n \"showPrices\": true,\n \"initialView\": \"List\",\n \"unitImageOnGrid\": \"Unit Plan\",\n \"pricesStartingAt\": false,\n \"showTaxes\": true,\n \"priceBeforeTax\": true,\n \"showAvailability\": true,\n \"hideSold\": true,\n \"deliveryDates\": true,\n \"internalURL\": \"<string>\",\n \"alternativeCovers\": [\n \"<string>\"\n ],\n \"hideArea\": false,\n \"theme\": \"<string>\",\n \"showBranding\": true,\n \"showPriceFilter\": true,\n \"showAreaFilter\": true,\n \"showFloorOverview\": false,\n \"colorBase\": \"<string>\",\n \"colorAccent\": \"<string>\",\n \"colorHover\": \"<string>\",\n \"colorButton\": \"<string>\",\n \"colorButtonText\": \"<string>\",\n \"colorText\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"_id": "objectId",
"user": "objectId",
"name": "<string>",
"websiteURL": "<string>",
"showAvailableFirst": false,
"projects": [
"objectId"
],
"namespace": "<string>",
"hostName": "<string>",
"groupLang": "en",
"linkBehavior": "Planpoint",
"accentColor": "<string>",
"groupImageUrl": "<string>",
"groupSVGUrl": "<string>",
"svgGroupId": "<string>",
"address": "<string>",
"lon": -93.75940812944687,
"lat": 43.75940812944687,
"zoomLevel": 0,
"administrators": [
"objectId"
],
"editors": [
"objectId"
],
"invites": [
{
"firstName": "<string>",
"lastName": "<string>",
"email": "jsmith@example.com",
"level": "<string>"
}
],
"perimeter": "<string>",
"markerImageUrl": "<string>",
"targetMarker": "<string>",
"mapStyle": "Light",
"mapPointColor": "<string>",
"showAllUnits": true,
"showPrices": true,
"initialView": "List",
"unitImageOnGrid": "Unit Plan",
"pricesStartingAt": false,
"showTaxes": true,
"priceBeforeTax": true,
"showAvailability": true,
"hideSold": true,
"deliveryDates": true,
"internalURL": "<string>",
"alternativeCovers": [
"<string>"
],
"hideArea": false,
"theme": "<string>",
"showBranding": true,
"showPriceFilter": true,
"showAreaFilter": true,
"showFloorOverview": false,
"colorBase": "<string>",
"colorAccent": "<string>",
"colorHover": "<string>",
"colorButton": "<string>",
"colorButtonText": "<string>",
"colorText": "<string>"
}Groups
Update Group
Update an existing group by Id
PATCH
/
groups
/
{id}
Update an existing group
curl --request PATCH \
--url https://app.planpoint.io/api/groups/{id} \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"_id": "objectId",
"user": "objectId",
"name": "<string>",
"websiteURL": "<string>",
"showAvailableFirst": false,
"projects": [
"objectId"
],
"namespace": "<string>",
"hostName": "<string>",
"groupLang": "en",
"linkBehavior": "Planpoint",
"accentColor": "<string>",
"groupImageUrl": "<string>",
"groupSVGUrl": "<string>",
"svgGroupId": "<string>",
"address": "<string>",
"lon": -93.75940812944687,
"lat": 43.75940812944687,
"zoomLevel": 0,
"administrators": [
"objectId"
],
"editors": [
"objectId"
],
"invites": [
{
"firstName": "<string>",
"lastName": "<string>",
"email": "jsmith@example.com",
"level": "<string>"
}
],
"perimeter": "<string>",
"markerImageUrl": "<string>",
"targetMarker": "<string>",
"mapStyle": "Light",
"mapPointColor": "<string>",
"showAllUnits": true,
"showPrices": true,
"initialView": "List",
"unitImageOnGrid": "Unit Plan",
"pricesStartingAt": false,
"showTaxes": true,
"priceBeforeTax": true,
"showAvailability": true,
"hideSold": true,
"deliveryDates": true,
"internalURL": "<string>",
"alternativeCovers": [
"<string>"
],
"hideArea": false,
"theme": "<string>",
"showBranding": true,
"showPriceFilter": true,
"showAreaFilter": true,
"showFloorOverview": false,
"colorBase": "<string>",
"colorAccent": "<string>",
"colorHover": "<string>",
"colorButton": "<string>",
"colorButtonText": "<string>",
"colorText": "<string>"
}
'import requests
url = "https://app.planpoint.io/api/groups/{id}"
payload = {
"_id": "objectId",
"user": "objectId",
"name": "<string>",
"websiteURL": "<string>",
"showAvailableFirst": False,
"projects": ["objectId"],
"namespace": "<string>",
"hostName": "<string>",
"groupLang": "en",
"linkBehavior": "Planpoint",
"accentColor": "<string>",
"groupImageUrl": "<string>",
"groupSVGUrl": "<string>",
"svgGroupId": "<string>",
"address": "<string>",
"lon": -93.75940812944687,
"lat": 43.75940812944687,
"zoomLevel": 0,
"administrators": ["objectId"],
"editors": ["objectId"],
"invites": [
{
"firstName": "<string>",
"lastName": "<string>",
"email": "jsmith@example.com",
"level": "<string>"
}
],
"perimeter": "<string>",
"markerImageUrl": "<string>",
"targetMarker": "<string>",
"mapStyle": "Light",
"mapPointColor": "<string>",
"showAllUnits": True,
"showPrices": True,
"initialView": "List",
"unitImageOnGrid": "Unit Plan",
"pricesStartingAt": False,
"showTaxes": True,
"priceBeforeTax": True,
"showAvailability": True,
"hideSold": True,
"deliveryDates": True,
"internalURL": "<string>",
"alternativeCovers": ["<string>"],
"hideArea": False,
"theme": "<string>",
"showBranding": True,
"showPriceFilter": True,
"showAreaFilter": True,
"showFloorOverview": False,
"colorBase": "<string>",
"colorAccent": "<string>",
"colorHover": "<string>",
"colorButton": "<string>",
"colorButtonText": "<string>",
"colorText": "<string>"
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
_id: 'objectId',
user: 'objectId',
name: '<string>',
websiteURL: '<string>',
showAvailableFirst: false,
projects: ['objectId'],
namespace: '<string>',
hostName: '<string>',
groupLang: 'en',
linkBehavior: 'Planpoint',
accentColor: '<string>',
groupImageUrl: '<string>',
groupSVGUrl: '<string>',
svgGroupId: '<string>',
address: '<string>',
lon: -93.75940812944687,
lat: 43.75940812944687,
zoomLevel: 0,
administrators: ['objectId'],
editors: ['objectId'],
invites: [
{
firstName: '<string>',
lastName: '<string>',
email: 'jsmith@example.com',
level: '<string>'
}
],
perimeter: '<string>',
markerImageUrl: '<string>',
targetMarker: '<string>',
mapStyle: 'Light',
mapPointColor: '<string>',
showAllUnits: true,
showPrices: true,
initialView: 'List',
unitImageOnGrid: 'Unit Plan',
pricesStartingAt: false,
showTaxes: true,
priceBeforeTax: true,
showAvailability: true,
hideSold: true,
deliveryDates: true,
internalURL: '<string>',
alternativeCovers: ['<string>'],
hideArea: false,
theme: '<string>',
showBranding: true,
showPriceFilter: true,
showAreaFilter: true,
showFloorOverview: false,
colorBase: '<string>',
colorAccent: '<string>',
colorHover: '<string>',
colorButton: '<string>',
colorButtonText: '<string>',
colorText: '<string>'
})
};
fetch('https://app.planpoint.io/api/groups/{id}', 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.planpoint.io/api/groups/{id}",
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([
'_id' => 'objectId',
'user' => 'objectId',
'name' => '<string>',
'websiteURL' => '<string>',
'showAvailableFirst' => false,
'projects' => [
'objectId'
],
'namespace' => '<string>',
'hostName' => '<string>',
'groupLang' => 'en',
'linkBehavior' => 'Planpoint',
'accentColor' => '<string>',
'groupImageUrl' => '<string>',
'groupSVGUrl' => '<string>',
'svgGroupId' => '<string>',
'address' => '<string>',
'lon' => -93.75940812944687,
'lat' => 43.75940812944687,
'zoomLevel' => 0,
'administrators' => [
'objectId'
],
'editors' => [
'objectId'
],
'invites' => [
[
'firstName' => '<string>',
'lastName' => '<string>',
'email' => 'jsmith@example.com',
'level' => '<string>'
]
],
'perimeter' => '<string>',
'markerImageUrl' => '<string>',
'targetMarker' => '<string>',
'mapStyle' => 'Light',
'mapPointColor' => '<string>',
'showAllUnits' => true,
'showPrices' => true,
'initialView' => 'List',
'unitImageOnGrid' => 'Unit Plan',
'pricesStartingAt' => false,
'showTaxes' => true,
'priceBeforeTax' => true,
'showAvailability' => true,
'hideSold' => true,
'deliveryDates' => true,
'internalURL' => '<string>',
'alternativeCovers' => [
'<string>'
],
'hideArea' => false,
'theme' => '<string>',
'showBranding' => true,
'showPriceFilter' => true,
'showAreaFilter' => true,
'showFloorOverview' => false,
'colorBase' => '<string>',
'colorAccent' => '<string>',
'colorHover' => '<string>',
'colorButton' => '<string>',
'colorButtonText' => '<string>',
'colorText' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/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.planpoint.io/api/groups/{id}"
payload := strings.NewReader("{\n \"_id\": \"objectId\",\n \"user\": \"objectId\",\n \"name\": \"<string>\",\n \"websiteURL\": \"<string>\",\n \"showAvailableFirst\": false,\n \"projects\": [\n \"objectId\"\n ],\n \"namespace\": \"<string>\",\n \"hostName\": \"<string>\",\n \"groupLang\": \"en\",\n \"linkBehavior\": \"Planpoint\",\n \"accentColor\": \"<string>\",\n \"groupImageUrl\": \"<string>\",\n \"groupSVGUrl\": \"<string>\",\n \"svgGroupId\": \"<string>\",\n \"address\": \"<string>\",\n \"lon\": -93.75940812944687,\n \"lat\": 43.75940812944687,\n \"zoomLevel\": 0,\n \"administrators\": [\n \"objectId\"\n ],\n \"editors\": [\n \"objectId\"\n ],\n \"invites\": [\n {\n \"firstName\": \"<string>\",\n \"lastName\": \"<string>\",\n \"email\": \"jsmith@example.com\",\n \"level\": \"<string>\"\n }\n ],\n \"perimeter\": \"<string>\",\n \"markerImageUrl\": \"<string>\",\n \"targetMarker\": \"<string>\",\n \"mapStyle\": \"Light\",\n \"mapPointColor\": \"<string>\",\n \"showAllUnits\": true,\n \"showPrices\": true,\n \"initialView\": \"List\",\n \"unitImageOnGrid\": \"Unit Plan\",\n \"pricesStartingAt\": false,\n \"showTaxes\": true,\n \"priceBeforeTax\": true,\n \"showAvailability\": true,\n \"hideSold\": true,\n \"deliveryDates\": true,\n \"internalURL\": \"<string>\",\n \"alternativeCovers\": [\n \"<string>\"\n ],\n \"hideArea\": false,\n \"theme\": \"<string>\",\n \"showBranding\": true,\n \"showPriceFilter\": true,\n \"showAreaFilter\": true,\n \"showFloorOverview\": false,\n \"colorBase\": \"<string>\",\n \"colorAccent\": \"<string>\",\n \"colorHover\": \"<string>\",\n \"colorButton\": \"<string>\",\n \"colorButtonText\": \"<string>\",\n \"colorText\": \"<string>\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "<api-key>")
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))
}HttpResponse<String> response = Unirest.patch("https://app.planpoint.io/api/groups/{id}")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"_id\": \"objectId\",\n \"user\": \"objectId\",\n \"name\": \"<string>\",\n \"websiteURL\": \"<string>\",\n \"showAvailableFirst\": false,\n \"projects\": [\n \"objectId\"\n ],\n \"namespace\": \"<string>\",\n \"hostName\": \"<string>\",\n \"groupLang\": \"en\",\n \"linkBehavior\": \"Planpoint\",\n \"accentColor\": \"<string>\",\n \"groupImageUrl\": \"<string>\",\n \"groupSVGUrl\": \"<string>\",\n \"svgGroupId\": \"<string>\",\n \"address\": \"<string>\",\n \"lon\": -93.75940812944687,\n \"lat\": 43.75940812944687,\n \"zoomLevel\": 0,\n \"administrators\": [\n \"objectId\"\n ],\n \"editors\": [\n \"objectId\"\n ],\n \"invites\": [\n {\n \"firstName\": \"<string>\",\n \"lastName\": \"<string>\",\n \"email\": \"jsmith@example.com\",\n \"level\": \"<string>\"\n }\n ],\n \"perimeter\": \"<string>\",\n \"markerImageUrl\": \"<string>\",\n \"targetMarker\": \"<string>\",\n \"mapStyle\": \"Light\",\n \"mapPointColor\": \"<string>\",\n \"showAllUnits\": true,\n \"showPrices\": true,\n \"initialView\": \"List\",\n \"unitImageOnGrid\": \"Unit Plan\",\n \"pricesStartingAt\": false,\n \"showTaxes\": true,\n \"priceBeforeTax\": true,\n \"showAvailability\": true,\n \"hideSold\": true,\n \"deliveryDates\": true,\n \"internalURL\": \"<string>\",\n \"alternativeCovers\": [\n \"<string>\"\n ],\n \"hideArea\": false,\n \"theme\": \"<string>\",\n \"showBranding\": true,\n \"showPriceFilter\": true,\n \"showAreaFilter\": true,\n \"showFloorOverview\": false,\n \"colorBase\": \"<string>\",\n \"colorAccent\": \"<string>\",\n \"colorHover\": \"<string>\",\n \"colorButton\": \"<string>\",\n \"colorButtonText\": \"<string>\",\n \"colorText\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.planpoint.io/api/groups/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"_id\": \"objectId\",\n \"user\": \"objectId\",\n \"name\": \"<string>\",\n \"websiteURL\": \"<string>\",\n \"showAvailableFirst\": false,\n \"projects\": [\n \"objectId\"\n ],\n \"namespace\": \"<string>\",\n \"hostName\": \"<string>\",\n \"groupLang\": \"en\",\n \"linkBehavior\": \"Planpoint\",\n \"accentColor\": \"<string>\",\n \"groupImageUrl\": \"<string>\",\n \"groupSVGUrl\": \"<string>\",\n \"svgGroupId\": \"<string>\",\n \"address\": \"<string>\",\n \"lon\": -93.75940812944687,\n \"lat\": 43.75940812944687,\n \"zoomLevel\": 0,\n \"administrators\": [\n \"objectId\"\n ],\n \"editors\": [\n \"objectId\"\n ],\n \"invites\": [\n {\n \"firstName\": \"<string>\",\n \"lastName\": \"<string>\",\n \"email\": \"jsmith@example.com\",\n \"level\": \"<string>\"\n }\n ],\n \"perimeter\": \"<string>\",\n \"markerImageUrl\": \"<string>\",\n \"targetMarker\": \"<string>\",\n \"mapStyle\": \"Light\",\n \"mapPointColor\": \"<string>\",\n \"showAllUnits\": true,\n \"showPrices\": true,\n \"initialView\": \"List\",\n \"unitImageOnGrid\": \"Unit Plan\",\n \"pricesStartingAt\": false,\n \"showTaxes\": true,\n \"priceBeforeTax\": true,\n \"showAvailability\": true,\n \"hideSold\": true,\n \"deliveryDates\": true,\n \"internalURL\": \"<string>\",\n \"alternativeCovers\": [\n \"<string>\"\n ],\n \"hideArea\": false,\n \"theme\": \"<string>\",\n \"showBranding\": true,\n \"showPriceFilter\": true,\n \"showAreaFilter\": true,\n \"showFloorOverview\": false,\n \"colorBase\": \"<string>\",\n \"colorAccent\": \"<string>\",\n \"colorHover\": \"<string>\",\n \"colorButton\": \"<string>\",\n \"colorButtonText\": \"<string>\",\n \"colorText\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"_id": "objectId",
"user": "objectId",
"name": "<string>",
"websiteURL": "<string>",
"showAvailableFirst": false,
"projects": [
"objectId"
],
"namespace": "<string>",
"hostName": "<string>",
"groupLang": "en",
"linkBehavior": "Planpoint",
"accentColor": "<string>",
"groupImageUrl": "<string>",
"groupSVGUrl": "<string>",
"svgGroupId": "<string>",
"address": "<string>",
"lon": -93.75940812944687,
"lat": 43.75940812944687,
"zoomLevel": 0,
"administrators": [
"objectId"
],
"editors": [
"objectId"
],
"invites": [
{
"firstName": "<string>",
"lastName": "<string>",
"email": "jsmith@example.com",
"level": "<string>"
}
],
"perimeter": "<string>",
"markerImageUrl": "<string>",
"targetMarker": "<string>",
"mapStyle": "Light",
"mapPointColor": "<string>",
"showAllUnits": true,
"showPrices": true,
"initialView": "List",
"unitImageOnGrid": "Unit Plan",
"pricesStartingAt": false,
"showTaxes": true,
"priceBeforeTax": true,
"showAvailability": true,
"hideSold": true,
"deliveryDates": true,
"internalURL": "<string>",
"alternativeCovers": [
"<string>"
],
"hideArea": false,
"theme": "<string>",
"showBranding": true,
"showPriceFilter": true,
"showAreaFilter": true,
"showFloorOverview": false,
"colorBase": "<string>",
"colorAccent": "<string>",
"colorHover": "<string>",
"colorButton": "<string>",
"colorButtonText": "<string>",
"colorText": "<string>"
}Body
application/jsonapplication/xmlapplication/x-www-form-urlencoded
Update an existing group
Response
Successful operation