Site Profile

You need the Manage Site permission to manage site.

Site Profiles
- Site Profiles Manage
GET global/site
PUT global/site
Model
Site Profile JSON Format

Site Profile is represented as simple flat JSON objects with the following keys:

Name Type Description
firstName string First Name of site registrant.
lastName string Last Name of site registrant.
company string Company name.
website string Company website.
phone string Company phone number.
fax string Company fax number.
companySize string The number of staff of the company, value options include: 1-20, 21-50, 51-100, 101-180, 181-310, 311-600, Above 600.
mailingAddress string The mailing address of the company.
city string City where the company located.
stateOrProvince string State/Province where the company located.
postalOrZipCode string Postal/Zip Code where the company located.
countryOrRegion string Country/Region where the company located.
datetimeFormat string Allowed values are "YYYY/MM/DD HH:mm:ss", "YYYY-MM-DD HH:mm:ss", "MM/DD/YYYY HH:mm:ss", "MM-DD-YYYY HH:mm:ss", "DD/MM/YYYY HH:mm:ss", "DD-MM-YYYY HH:mm:ss".
timeZone string Time zone of site. Value include all Time Zone Option identifers.
siteId integer Id of the site.
status integer Current status of site.
externalId string
languageId string
Endpoint
Get a single Site Profile

GET global/site

Parameters:
No Parameters
Response:
Example

Sample Request:

curl https://api15.comm100.io/v4/global/site \
-X 'GET' \
-H 'Authorization: Bearer {access_token}' \

Response:

 HTTP/1.1 200 OK

{"firstName":"Jason","lastName":"Statham","company":"Comm100","website":"https://www.comm100.com","phone":"88654987","fax":"58469215","companySize":"101-180","mailingAddress":"mail@comm100.com","city":"Vancouver","stateOrProvince":"British Columbia","postalOrZipCode":"V7J","countryOrRegion":"Canada","datetimeFormat":"MM/DD/YYYY HH:mm:ss","timeZone":"Atlantic Standard Time","siteId":10000,"status":0,"externalId":"","languageId":"","enabledModules":[{"id":"8abdad77-35b7-4882-af79-9e25d6542671","moduleId":""}],"featurePoints":[{"featurePointItemId":"","id":"01d0c5fb-25ac-456a-8a2c-b847d7458180"}]}
Update the Site Profile

PUT global/site

Parameters:
Name Type In Required Description
firstName string body yes First Name of site registrant.
lastName string body yes Last Name of site registrant.
company string body yes Company name.
website string body yes Company website.
phone string body no Company phone number.
fax string body no Company fax number.
companySize string body yes The number of staff of the company, value options include: 1-20, 21-50, 51-100, 101-180, 181-310, 311-600, Above 600.
mailingAddress string body no The mailing address of the company.
city string body no City where the company located.
stateOrProvince string body no State/Province where the company located.
postalOrZipCode string body no Postal/Zip Code where the company located.
countryOrRegion string body yes Country/Region where the company located.
datetimeFormat string body yes Allowed values are "YYYY/MM/DD HH:mm:ss", "YYYY-MM-DD HH:mm:ss", "MM/DD/YYYY HH:mm:ss", "MM-DD-YYYY HH:mm:ss", "DD/MM/YYYY HH:mm:ss", "DD-MM-YYYY HH:mm:ss".
timeZone string body yes Time zone of site. Value include all Time Zone Option identifers.
status integer body no Current status of site.
externalId string body no
languageId string body no
Response:
Example

Sample Request:

curl https://api15.comm100.io/v4/global/site \
-X 'PUT' \
-H 'Authorization: Bearer {access_token}' \
-H 'Content-Type: application/json' \
-D '{"firstName":"Jason","lastName":"Statham","company":"Comm100","website":"https://www.comm100.com","phone":"88654987","fax":"58469215","companySize":"101-180","mailingAddress":"mail@comm100.com","city":"Vancouver","stateOrProvince":"British Columbia","postalOrZipCode":"V7J","countryOrRegion":"Canada","datetimeFormat":"MM/DD/YYYY HH:mm:ss","timeZone":"Atlantic Standard Time","status":0,"externalId":"","languageId":""}'

Response:

 HTTP/1.1 200 OK

{"firstName":"Jason","lastName":"Statham","company":"Comm100","website":"https://www.comm100.com","phone":"88654987","fax":"58469215","companySize":"101-180","mailingAddress":"mail@comm100.com","city":"Vancouver","stateOrProvince":"British Columbia","postalOrZipCode":"V7J","countryOrRegion":"Canada","datetimeFormat":"MM/DD/YYYY HH:mm:ss","timeZone":"Atlantic Standard Time","siteId":10000,"status":0,"externalId":"","languageId":"","enabledModules":[{"id":"8abdad77-35b7-4882-af79-9e25d6542671","moduleId":""}],"featurePoints":[{"featurePointItemId":"","id":"01d0c5fb-25ac-456a-8a2c-b847d7458180"}]}