Create organization
curl --request POST \
--url https://dashboard.hologram.io/api/1/organizations \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "New Org",
"ccemails": "<string>",
"invoice_text": "<string>"
}
'import requests
url = "https://dashboard.hologram.io/api/1/organizations"
payload = {
"name": "New Org",
"ccemails": "<string>",
"invoice_text": "<string>"
}
headers = {
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: 'New Org', ccemails: '<string>', invoice_text: '<string>'})
};
fetch('https://dashboard.hologram.io/api/1/organizations', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const url = 'https://dashboard.hologram.io/api/1/organizations';
const options = {
method: 'POST',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: 'New Org', ccemails: '<string>', invoice_text: '<string>'})
};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));{
"success": true,
"data": {
"id": 2345,
"name": "Smart Things LLC",
"ownerid": 1234,
"is_personal": 0,
"ccemails": "finance@example.com",
"preflight_timeout_in_days": 365,
"users": [
{
"id": 1234,
"email": "holly.graham@example.com",
"first": "Holly",
"last": "Graham",
"permissions": [
"billing",
"activation",
"changeplan",
"sbconfig",
"sbtunnel",
"deactivate",
"org_management"
]
}
],
"pending": [
{
"email": "newuser@example.com",
"inviteid": 456
}
]
}
}Organizations
Create organization
Create a new organization
POST
/
organizations
Create organization
curl --request POST \
--url https://dashboard.hologram.io/api/1/organizations \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "New Org",
"ccemails": "<string>",
"invoice_text": "<string>"
}
'import requests
url = "https://dashboard.hologram.io/api/1/organizations"
payload = {
"name": "New Org",
"ccemails": "<string>",
"invoice_text": "<string>"
}
headers = {
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: 'New Org', ccemails: '<string>', invoice_text: '<string>'})
};
fetch('https://dashboard.hologram.io/api/1/organizations', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const url = 'https://dashboard.hologram.io/api/1/organizations';
const options = {
method: 'POST',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: 'New Org', ccemails: '<string>', invoice_text: '<string>'})
};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));{
"success": true,
"data": {
"id": 2345,
"name": "Smart Things LLC",
"ownerid": 1234,
"is_personal": 0,
"ccemails": "finance@example.com",
"preflight_timeout_in_days": 365,
"users": [
{
"id": 1234,
"email": "holly.graham@example.com",
"first": "Holly",
"last": "Graham",
"permissions": [
"billing",
"activation",
"changeplan",
"sbconfig",
"sbtunnel",
"deactivate",
"org_management"
]
}
],
"pending": [
{
"email": "newuser@example.com",
"inviteid": 456
}
]
}
}Authorizations
HTTP Basic authentication using API keys. Set the username to apikey and the password to your API key. You can find your API key on the Hologram Dashboard under Account Settings.
Body
application/json
Was this page helpful?
⌘I