Endpoint: "/v1.1/sites"
Method: POST
Parameters:
Body (application/json):
{
customer_reference;
type: stringThe name of the site
"customer_reference" : "string",
country_code;
type: stringThe country where the site is located
"country_code" : "string",
time_zone;
type: stringThe time zone the site is in
"time_zone" : "string"
}
Response Content Type (application/json):
{
id;
type: string, format: uuid;The id of the site
"id" : "string",
customer_reference;
type: stringThe name of the site
"customer_reference" : "string",
subscribed_user_amount;
type: integer, format: int32;Shows the number of subscribed users for that site
"subscribed_user_amount" : "integer",
subscription_valid;
type: booleanSubscription state of the site
"subscription_valid" : boolean,
country_code;
type: stringThe country of the site
"country_code" : "string",
site_uid;
type: stringThe uid of the site
"site_uid" : "string",
time_zone;
type: stringThe time zone the site is in
"time_zone" : "string",
owner;
The owner of the site
"owner" : [
{
email;
type: stringemail of the user
"email" : "string",
image_url;
type: stringThe url of the profile picture
"image_url" : "string",
tag_number;
type: stringTag number
"tag_number" : "string",
is_managed_by_current_site;
type: booleanWether the user is managed by the selected site
"is_managed_by_current_site" : boolean,
has_profile;
type: booleanWether the user has its own profile
"has_profile" : boolean,
id;
type: string, format: uuid;id of the user
"id" : "string",
first_name;
type: stringFirst name of the user
"first_name" : "string",
last_name;
type: stringLast name of the user
"last_name" : "string"
}
],
installation_state;
type: stringThe installation state of the site
"installation_state" : "string",
mkey_compatible;
type: booleanIndicates whether site is mobile key compatible
"mkey_compatible" : boolean
}