curl --request POST \
--url https://api.upstash.com/v2/team \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '{
"team_name": "myteam",
"copy_cc": true
}'
import requests
url = "https://api.upstash.com/v2/team"
headers = {
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/json",
}
payload = {
"team_name": "myteam",
"copy_cc": True
}
response = requests.request("POST", url, headers=headers, json=payload)
print(response.text)
const response = await fetch('https://api.upstash.com/v2/team', {
method: 'POST',
headers: {
'Authorization': 'Basic <encoded-value>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
"team_name": "myteam",
"copy_cc": true
})
});
const data = await response.json();
console.log(data);