curl --request PATCH \
--url https://api.1club.ai/v1/platform/clubs/{slug}/profile \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"subtitle": "<string>",
"description": "<string>",
"address": "<string>",
"city": "<string>",
"state": "<string>",
"postalCode": "<string>",
"country": "<string>",
"countryCode": "<string>",
"phone": "<string>",
"email": "jsmith@example.com",
"website": "<string>",
"timezone": "<string>",
"operatingHours": {
"monday": {
"enabled": true,
"openTime": "07:00",
"closeTime": "22:00",
"is24Hours": true
},
"tuesday": {
"enabled": true,
"openTime": "07:00",
"closeTime": "22:00",
"is24Hours": true
},
"wednesday": {
"enabled": true,
"openTime": "07:00",
"closeTime": "22:00",
"is24Hours": true
},
"thursday": {
"enabled": true,
"openTime": "07:00",
"closeTime": "22:00",
"is24Hours": true
},
"friday": {
"enabled": true,
"openTime": "07:00",
"closeTime": "22:00",
"is24Hours": true
},
"saturday": {
"enabled": true,
"openTime": "07:00",
"closeTime": "22:00",
"is24Hours": true
},
"sunday": {
"enabled": true,
"openTime": "07:00",
"closeTime": "22:00",
"is24Hours": true
}
},
"amenities": [
"<string>"
],
"sports": [
"<string>"
]
}
'import requests
url = "https://api.1club.ai/v1/platform/clubs/{slug}/profile"
payload = {
"name": "<string>",
"subtitle": "<string>",
"description": "<string>",
"address": "<string>",
"city": "<string>",
"state": "<string>",
"postalCode": "<string>",
"country": "<string>",
"countryCode": "<string>",
"phone": "<string>",
"email": "jsmith@example.com",
"website": "<string>",
"timezone": "<string>",
"operatingHours": {
"monday": {
"enabled": True,
"openTime": "07:00",
"closeTime": "22:00",
"is24Hours": True
},
"tuesday": {
"enabled": True,
"openTime": "07:00",
"closeTime": "22:00",
"is24Hours": True
},
"wednesday": {
"enabled": True,
"openTime": "07:00",
"closeTime": "22:00",
"is24Hours": True
},
"thursday": {
"enabled": True,
"openTime": "07:00",
"closeTime": "22:00",
"is24Hours": True
},
"friday": {
"enabled": True,
"openTime": "07:00",
"closeTime": "22:00",
"is24Hours": True
},
"saturday": {
"enabled": True,
"openTime": "07:00",
"closeTime": "22:00",
"is24Hours": True
},
"sunday": {
"enabled": True,
"openTime": "07:00",
"closeTime": "22:00",
"is24Hours": True
}
},
"amenities": ["<string>"],
"sports": ["<string>"]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
subtitle: '<string>',
description: '<string>',
address: '<string>',
city: '<string>',
state: '<string>',
postalCode: '<string>',
country: '<string>',
countryCode: '<string>',
phone: '<string>',
email: 'jsmith@example.com',
website: '<string>',
timezone: '<string>',
operatingHours: {
monday: {enabled: true, openTime: '07:00', closeTime: '22:00', is24Hours: true},
tuesday: {enabled: true, openTime: '07:00', closeTime: '22:00', is24Hours: true},
wednesday: {enabled: true, openTime: '07:00', closeTime: '22:00', is24Hours: true},
thursday: {enabled: true, openTime: '07:00', closeTime: '22:00', is24Hours: true},
friday: {enabled: true, openTime: '07:00', closeTime: '22:00', is24Hours: true},
saturday: {enabled: true, openTime: '07:00', closeTime: '22:00', is24Hours: true},
sunday: {enabled: true, openTime: '07:00', closeTime: '22:00', is24Hours: true}
},
amenities: ['<string>'],
sports: ['<string>']
})
};
fetch('https://api.1club.ai/v1/platform/clubs/{slug}/profile', 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://api.1club.ai/v1/platform/clubs/{slug}/profile",
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' => '<string>',
'subtitle' => '<string>',
'description' => '<string>',
'address' => '<string>',
'city' => '<string>',
'state' => '<string>',
'postalCode' => '<string>',
'country' => '<string>',
'countryCode' => '<string>',
'phone' => '<string>',
'email' => 'jsmith@example.com',
'website' => '<string>',
'timezone' => '<string>',
'operatingHours' => [
'monday' => [
'enabled' => true,
'openTime' => '07:00',
'closeTime' => '22:00',
'is24Hours' => true
],
'tuesday' => [
'enabled' => true,
'openTime' => '07:00',
'closeTime' => '22:00',
'is24Hours' => true
],
'wednesday' => [
'enabled' => true,
'openTime' => '07:00',
'closeTime' => '22:00',
'is24Hours' => true
],
'thursday' => [
'enabled' => true,
'openTime' => '07:00',
'closeTime' => '22:00',
'is24Hours' => true
],
'friday' => [
'enabled' => true,
'openTime' => '07:00',
'closeTime' => '22:00',
'is24Hours' => true
],
'saturday' => [
'enabled' => true,
'openTime' => '07:00',
'closeTime' => '22:00',
'is24Hours' => true
],
'sunday' => [
'enabled' => true,
'openTime' => '07:00',
'closeTime' => '22:00',
'is24Hours' => true
]
],
'amenities' => [
'<string>'
],
'sports' => [
'<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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://api.1club.ai/v1/platform/clubs/{slug}/profile"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"subtitle\": \"<string>\",\n \"description\": \"<string>\",\n \"address\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"postalCode\": \"<string>\",\n \"country\": \"<string>\",\n \"countryCode\": \"<string>\",\n \"phone\": \"<string>\",\n \"email\": \"jsmith@example.com\",\n \"website\": \"<string>\",\n \"timezone\": \"<string>\",\n \"operatingHours\": {\n \"monday\": {\n \"enabled\": true,\n \"openTime\": \"07:00\",\n \"closeTime\": \"22:00\",\n \"is24Hours\": true\n },\n \"tuesday\": {\n \"enabled\": true,\n \"openTime\": \"07:00\",\n \"closeTime\": \"22:00\",\n \"is24Hours\": true\n },\n \"wednesday\": {\n \"enabled\": true,\n \"openTime\": \"07:00\",\n \"closeTime\": \"22:00\",\n \"is24Hours\": true\n },\n \"thursday\": {\n \"enabled\": true,\n \"openTime\": \"07:00\",\n \"closeTime\": \"22:00\",\n \"is24Hours\": true\n },\n \"friday\": {\n \"enabled\": true,\n \"openTime\": \"07:00\",\n \"closeTime\": \"22:00\",\n \"is24Hours\": true\n },\n \"saturday\": {\n \"enabled\": true,\n \"openTime\": \"07:00\",\n \"closeTime\": \"22:00\",\n \"is24Hours\": true\n },\n \"sunday\": {\n \"enabled\": true,\n \"openTime\": \"07:00\",\n \"closeTime\": \"22:00\",\n \"is24Hours\": true\n }\n },\n \"amenities\": [\n \"<string>\"\n ],\n \"sports\": [\n \"<string>\"\n ]\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <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))
}HttpResponse<String> response = Unirest.patch("https://api.1club.ai/v1/platform/clubs/{slug}/profile")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"subtitle\": \"<string>\",\n \"description\": \"<string>\",\n \"address\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"postalCode\": \"<string>\",\n \"country\": \"<string>\",\n \"countryCode\": \"<string>\",\n \"phone\": \"<string>\",\n \"email\": \"jsmith@example.com\",\n \"website\": \"<string>\",\n \"timezone\": \"<string>\",\n \"operatingHours\": {\n \"monday\": {\n \"enabled\": true,\n \"openTime\": \"07:00\",\n \"closeTime\": \"22:00\",\n \"is24Hours\": true\n },\n \"tuesday\": {\n \"enabled\": true,\n \"openTime\": \"07:00\",\n \"closeTime\": \"22:00\",\n \"is24Hours\": true\n },\n \"wednesday\": {\n \"enabled\": true,\n \"openTime\": \"07:00\",\n \"closeTime\": \"22:00\",\n \"is24Hours\": true\n },\n \"thursday\": {\n \"enabled\": true,\n \"openTime\": \"07:00\",\n \"closeTime\": \"22:00\",\n \"is24Hours\": true\n },\n \"friday\": {\n \"enabled\": true,\n \"openTime\": \"07:00\",\n \"closeTime\": \"22:00\",\n \"is24Hours\": true\n },\n \"saturday\": {\n \"enabled\": true,\n \"openTime\": \"07:00\",\n \"closeTime\": \"22:00\",\n \"is24Hours\": true\n },\n \"sunday\": {\n \"enabled\": true,\n \"openTime\": \"07:00\",\n \"closeTime\": \"22:00\",\n \"is24Hours\": true\n }\n },\n \"amenities\": [\n \"<string>\"\n ],\n \"sports\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.1club.ai/v1/platform/clubs/{slug}/profile")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"subtitle\": \"<string>\",\n \"description\": \"<string>\",\n \"address\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"postalCode\": \"<string>\",\n \"country\": \"<string>\",\n \"countryCode\": \"<string>\",\n \"phone\": \"<string>\",\n \"email\": \"jsmith@example.com\",\n \"website\": \"<string>\",\n \"timezone\": \"<string>\",\n \"operatingHours\": {\n \"monday\": {\n \"enabled\": true,\n \"openTime\": \"07:00\",\n \"closeTime\": \"22:00\",\n \"is24Hours\": true\n },\n \"tuesday\": {\n \"enabled\": true,\n \"openTime\": \"07:00\",\n \"closeTime\": \"22:00\",\n \"is24Hours\": true\n },\n \"wednesday\": {\n \"enabled\": true,\n \"openTime\": \"07:00\",\n \"closeTime\": \"22:00\",\n \"is24Hours\": true\n },\n \"thursday\": {\n \"enabled\": true,\n \"openTime\": \"07:00\",\n \"closeTime\": \"22:00\",\n \"is24Hours\": true\n },\n \"friday\": {\n \"enabled\": true,\n \"openTime\": \"07:00\",\n \"closeTime\": \"22:00\",\n \"is24Hours\": true\n },\n \"saturday\": {\n \"enabled\": true,\n \"openTime\": \"07:00\",\n \"closeTime\": \"22:00\",\n \"is24Hours\": true\n },\n \"sunday\": {\n \"enabled\": true,\n \"openTime\": \"07:00\",\n \"closeTime\": \"22:00\",\n \"is24Hours\": true\n }\n },\n \"amenities\": [\n \"<string>\"\n ],\n \"sports\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"id": 123,
"name": "<string>",
"slug": "<string>",
"status": "active",
"city": "<string>",
"privateTrainingLabel": "<string>",
"groupActivitiesLabel": "<string>",
"areasLabel": "<string>",
"translations": {
"en": {
"privateTrainingLabel": "Personal coaching"
}
},
"pendingReview": {},
"missingForListing": [
"<string>"
]
}{
"error": "<string>",
"code": "<string>",
"details": {}
}{
"error": "<string>",
"code": "<string>",
"details": {}
}{
"error": "<string>",
"code": "<string>",
"details": {}
}{
"error": "<string>",
"code": "<string>",
"details": {}
}{
"error": "<string>",
"code": "<string>",
"details": {}
}Update a club's profile
Edits what members read about a club and where it is: its name, description, contact details, address, opening hours, amenities and sports, and whether it is open to members (active) or run by staff only (inactive). Send only what changes. Live at once on the website, the member portal, the app and 1club.me - the same write as Settings > Clubs in the 1club admin portal.
Moving the address moves the map pin and the club’s timezone with it, unless timezone is sent too. For a club listed on 1club.me, changes to its listing’s fields are held for review and the listing keeps its approved values until then (pendingReview); a change that would leave the listing missing a required field is refused. Closing a club for good, its slug, its billing entity and its kiosk settings are not changed here. Requires clubs:write.
curl --request PATCH \
--url https://api.1club.ai/v1/platform/clubs/{slug}/profile \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"subtitle": "<string>",
"description": "<string>",
"address": "<string>",
"city": "<string>",
"state": "<string>",
"postalCode": "<string>",
"country": "<string>",
"countryCode": "<string>",
"phone": "<string>",
"email": "jsmith@example.com",
"website": "<string>",
"timezone": "<string>",
"operatingHours": {
"monday": {
"enabled": true,
"openTime": "07:00",
"closeTime": "22:00",
"is24Hours": true
},
"tuesday": {
"enabled": true,
"openTime": "07:00",
"closeTime": "22:00",
"is24Hours": true
},
"wednesday": {
"enabled": true,
"openTime": "07:00",
"closeTime": "22:00",
"is24Hours": true
},
"thursday": {
"enabled": true,
"openTime": "07:00",
"closeTime": "22:00",
"is24Hours": true
},
"friday": {
"enabled": true,
"openTime": "07:00",
"closeTime": "22:00",
"is24Hours": true
},
"saturday": {
"enabled": true,
"openTime": "07:00",
"closeTime": "22:00",
"is24Hours": true
},
"sunday": {
"enabled": true,
"openTime": "07:00",
"closeTime": "22:00",
"is24Hours": true
}
},
"amenities": [
"<string>"
],
"sports": [
"<string>"
]
}
'import requests
url = "https://api.1club.ai/v1/platform/clubs/{slug}/profile"
payload = {
"name": "<string>",
"subtitle": "<string>",
"description": "<string>",
"address": "<string>",
"city": "<string>",
"state": "<string>",
"postalCode": "<string>",
"country": "<string>",
"countryCode": "<string>",
"phone": "<string>",
"email": "jsmith@example.com",
"website": "<string>",
"timezone": "<string>",
"operatingHours": {
"monday": {
"enabled": True,
"openTime": "07:00",
"closeTime": "22:00",
"is24Hours": True
},
"tuesday": {
"enabled": True,
"openTime": "07:00",
"closeTime": "22:00",
"is24Hours": True
},
"wednesday": {
"enabled": True,
"openTime": "07:00",
"closeTime": "22:00",
"is24Hours": True
},
"thursday": {
"enabled": True,
"openTime": "07:00",
"closeTime": "22:00",
"is24Hours": True
},
"friday": {
"enabled": True,
"openTime": "07:00",
"closeTime": "22:00",
"is24Hours": True
},
"saturday": {
"enabled": True,
"openTime": "07:00",
"closeTime": "22:00",
"is24Hours": True
},
"sunday": {
"enabled": True,
"openTime": "07:00",
"closeTime": "22:00",
"is24Hours": True
}
},
"amenities": ["<string>"],
"sports": ["<string>"]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
subtitle: '<string>',
description: '<string>',
address: '<string>',
city: '<string>',
state: '<string>',
postalCode: '<string>',
country: '<string>',
countryCode: '<string>',
phone: '<string>',
email: 'jsmith@example.com',
website: '<string>',
timezone: '<string>',
operatingHours: {
monday: {enabled: true, openTime: '07:00', closeTime: '22:00', is24Hours: true},
tuesday: {enabled: true, openTime: '07:00', closeTime: '22:00', is24Hours: true},
wednesday: {enabled: true, openTime: '07:00', closeTime: '22:00', is24Hours: true},
thursday: {enabled: true, openTime: '07:00', closeTime: '22:00', is24Hours: true},
friday: {enabled: true, openTime: '07:00', closeTime: '22:00', is24Hours: true},
saturday: {enabled: true, openTime: '07:00', closeTime: '22:00', is24Hours: true},
sunday: {enabled: true, openTime: '07:00', closeTime: '22:00', is24Hours: true}
},
amenities: ['<string>'],
sports: ['<string>']
})
};
fetch('https://api.1club.ai/v1/platform/clubs/{slug}/profile', 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://api.1club.ai/v1/platform/clubs/{slug}/profile",
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' => '<string>',
'subtitle' => '<string>',
'description' => '<string>',
'address' => '<string>',
'city' => '<string>',
'state' => '<string>',
'postalCode' => '<string>',
'country' => '<string>',
'countryCode' => '<string>',
'phone' => '<string>',
'email' => 'jsmith@example.com',
'website' => '<string>',
'timezone' => '<string>',
'operatingHours' => [
'monday' => [
'enabled' => true,
'openTime' => '07:00',
'closeTime' => '22:00',
'is24Hours' => true
],
'tuesday' => [
'enabled' => true,
'openTime' => '07:00',
'closeTime' => '22:00',
'is24Hours' => true
],
'wednesday' => [
'enabled' => true,
'openTime' => '07:00',
'closeTime' => '22:00',
'is24Hours' => true
],
'thursday' => [
'enabled' => true,
'openTime' => '07:00',
'closeTime' => '22:00',
'is24Hours' => true
],
'friday' => [
'enabled' => true,
'openTime' => '07:00',
'closeTime' => '22:00',
'is24Hours' => true
],
'saturday' => [
'enabled' => true,
'openTime' => '07:00',
'closeTime' => '22:00',
'is24Hours' => true
],
'sunday' => [
'enabled' => true,
'openTime' => '07:00',
'closeTime' => '22:00',
'is24Hours' => true
]
],
'amenities' => [
'<string>'
],
'sports' => [
'<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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://api.1club.ai/v1/platform/clubs/{slug}/profile"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"subtitle\": \"<string>\",\n \"description\": \"<string>\",\n \"address\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"postalCode\": \"<string>\",\n \"country\": \"<string>\",\n \"countryCode\": \"<string>\",\n \"phone\": \"<string>\",\n \"email\": \"jsmith@example.com\",\n \"website\": \"<string>\",\n \"timezone\": \"<string>\",\n \"operatingHours\": {\n \"monday\": {\n \"enabled\": true,\n \"openTime\": \"07:00\",\n \"closeTime\": \"22:00\",\n \"is24Hours\": true\n },\n \"tuesday\": {\n \"enabled\": true,\n \"openTime\": \"07:00\",\n \"closeTime\": \"22:00\",\n \"is24Hours\": true\n },\n \"wednesday\": {\n \"enabled\": true,\n \"openTime\": \"07:00\",\n \"closeTime\": \"22:00\",\n \"is24Hours\": true\n },\n \"thursday\": {\n \"enabled\": true,\n \"openTime\": \"07:00\",\n \"closeTime\": \"22:00\",\n \"is24Hours\": true\n },\n \"friday\": {\n \"enabled\": true,\n \"openTime\": \"07:00\",\n \"closeTime\": \"22:00\",\n \"is24Hours\": true\n },\n \"saturday\": {\n \"enabled\": true,\n \"openTime\": \"07:00\",\n \"closeTime\": \"22:00\",\n \"is24Hours\": true\n },\n \"sunday\": {\n \"enabled\": true,\n \"openTime\": \"07:00\",\n \"closeTime\": \"22:00\",\n \"is24Hours\": true\n }\n },\n \"amenities\": [\n \"<string>\"\n ],\n \"sports\": [\n \"<string>\"\n ]\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <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))
}HttpResponse<String> response = Unirest.patch("https://api.1club.ai/v1/platform/clubs/{slug}/profile")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"subtitle\": \"<string>\",\n \"description\": \"<string>\",\n \"address\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"postalCode\": \"<string>\",\n \"country\": \"<string>\",\n \"countryCode\": \"<string>\",\n \"phone\": \"<string>\",\n \"email\": \"jsmith@example.com\",\n \"website\": \"<string>\",\n \"timezone\": \"<string>\",\n \"operatingHours\": {\n \"monday\": {\n \"enabled\": true,\n \"openTime\": \"07:00\",\n \"closeTime\": \"22:00\",\n \"is24Hours\": true\n },\n \"tuesday\": {\n \"enabled\": true,\n \"openTime\": \"07:00\",\n \"closeTime\": \"22:00\",\n \"is24Hours\": true\n },\n \"wednesday\": {\n \"enabled\": true,\n \"openTime\": \"07:00\",\n \"closeTime\": \"22:00\",\n \"is24Hours\": true\n },\n \"thursday\": {\n \"enabled\": true,\n \"openTime\": \"07:00\",\n \"closeTime\": \"22:00\",\n \"is24Hours\": true\n },\n \"friday\": {\n \"enabled\": true,\n \"openTime\": \"07:00\",\n \"closeTime\": \"22:00\",\n \"is24Hours\": true\n },\n \"saturday\": {\n \"enabled\": true,\n \"openTime\": \"07:00\",\n \"closeTime\": \"22:00\",\n \"is24Hours\": true\n },\n \"sunday\": {\n \"enabled\": true,\n \"openTime\": \"07:00\",\n \"closeTime\": \"22:00\",\n \"is24Hours\": true\n }\n },\n \"amenities\": [\n \"<string>\"\n ],\n \"sports\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.1club.ai/v1/platform/clubs/{slug}/profile")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"subtitle\": \"<string>\",\n \"description\": \"<string>\",\n \"address\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"postalCode\": \"<string>\",\n \"country\": \"<string>\",\n \"countryCode\": \"<string>\",\n \"phone\": \"<string>\",\n \"email\": \"jsmith@example.com\",\n \"website\": \"<string>\",\n \"timezone\": \"<string>\",\n \"operatingHours\": {\n \"monday\": {\n \"enabled\": true,\n \"openTime\": \"07:00\",\n \"closeTime\": \"22:00\",\n \"is24Hours\": true\n },\n \"tuesday\": {\n \"enabled\": true,\n \"openTime\": \"07:00\",\n \"closeTime\": \"22:00\",\n \"is24Hours\": true\n },\n \"wednesday\": {\n \"enabled\": true,\n \"openTime\": \"07:00\",\n \"closeTime\": \"22:00\",\n \"is24Hours\": true\n },\n \"thursday\": {\n \"enabled\": true,\n \"openTime\": \"07:00\",\n \"closeTime\": \"22:00\",\n \"is24Hours\": true\n },\n \"friday\": {\n \"enabled\": true,\n \"openTime\": \"07:00\",\n \"closeTime\": \"22:00\",\n \"is24Hours\": true\n },\n \"saturday\": {\n \"enabled\": true,\n \"openTime\": \"07:00\",\n \"closeTime\": \"22:00\",\n \"is24Hours\": true\n },\n \"sunday\": {\n \"enabled\": true,\n \"openTime\": \"07:00\",\n \"closeTime\": \"22:00\",\n \"is24Hours\": true\n }\n },\n \"amenities\": [\n \"<string>\"\n ],\n \"sports\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"id": 123,
"name": "<string>",
"slug": "<string>",
"status": "active",
"city": "<string>",
"privateTrainingLabel": "<string>",
"groupActivitiesLabel": "<string>",
"areasLabel": "<string>",
"translations": {
"en": {
"privateTrainingLabel": "Personal coaching"
}
},
"pendingReview": {},
"missingForListing": [
"<string>"
]
}{
"error": "<string>",
"code": "<string>",
"details": {}
}{
"error": "<string>",
"code": "<string>",
"details": {}
}{
"error": "<string>",
"code": "<string>",
"details": {}
}{
"error": "<string>",
"code": "<string>",
"details": {}
}{
"error": "<string>",
"code": "<string>",
"details": {}
}Authorizations
Organization-scoped bearer credential: a customer API key (1club_sk_live_...) or an MCP OAuth access token.
Path Parameters
Club slug, from GET /v1/platform/clubs
Body
Fields of a club's profile. Send only what changes; at least one is required. Text fields take null to clear. Unknown fields are rejected.
200200Plain text; each blank-line-separated paragraph becomes a paragraph
5000ISO 3166-1 alpha-2, e.g. BG
IANA timezone, e.g. Europe/Sofia. Derived from the address when the address changes and this is not sent.
Opening hours by lower-case weekday; a day left out keeps its hours.
Show child attributes
Show child attributes
Sport ids, e.g. padel, yoga
inactive hides the club from members while staff keep running it
active, inactive Response
The club after the change, with anything held for review
One of the organization's clubs, as the club list returns it and as a booking-label update answers: who it is, and its own words for the booking cards members choose from under "What would you like to book?".
What every other club endpoint takes in its path.
Only an active club is open for booking; the labels of any club can be set ahead of time.
active, inactive, pending, closed The title of the card that sells an hour with a coach. Defaults to the platform's "Private training". Up to 30 characters, on one line. Null when the club uses the platform wording.
30The title of the card that lists the club's classes. Defaults to the platform's "Group activities". Up to 30 characters, on one line. Null when the club uses the platform wording.
30The title of the card for areas that have no area-type name of their own - untyped areas, and the card that gathers every area. A card for a named area type always shows that type's name instead, so a club whose types are all named never sees this one. Defaults to the platform's "Areas". Up to 30 characters, on one line. Null when the club uses the platform wording.
30Per-language renderings of the labels, keyed by locale, then by label field. Only the booking-card labels; a member reading in a locale with no entry here sees the label itself.
Show child attributes
Show child attributes
{
"en": {
"privateTrainingLabel": "Personal coaching"
}
}
The 1club.me listing changes waiting for review, or null
Fields a 1club.me listing still needs
Was this page helpful?