Update Org
PATCH
https://x.kupe.in
/
v1
/
orgs
/
{org_id}
Update Org
import requests
url = "https://x.kupe.in/v1/orgs/{org_id}"
payload = {
"country": "<string>",
"timezone": "<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({country: '<string>', timezone: '<string>'})
};
fetch('https://x.kupe.in/v1/orgs/{org_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request PATCH \
--url https://x.kupe.in/v1/orgs/{org_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"country": "<string>",
"timezone": "<string>"
}
'{
"id": "<string>",
"name": "<string>",
"slug": "<string>",
"created_at": "<string>",
"country": "<string>",
"timezone": "Asia/Kolkata"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
Project API key (sk-kupe-...) or a Supabase user JWT.
Path Parameters
⌘I
Update Org
import requests
url = "https://x.kupe.in/v1/orgs/{org_id}"
payload = {
"country": "<string>",
"timezone": "<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({country: '<string>', timezone: '<string>'})
};
fetch('https://x.kupe.in/v1/orgs/{org_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request PATCH \
--url https://x.kupe.in/v1/orgs/{org_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"country": "<string>",
"timezone": "<string>"
}
'{
"id": "<string>",
"name": "<string>",
"slug": "<string>",
"created_at": "<string>",
"country": "<string>",
"timezone": "Asia/Kolkata"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}
