跳转到内容

建筑物

它表示校区内的一个结构,下一层级将是楼层或直接为房间。

属性

id (long)
用于标识建筑物的唯一标识符

id (long)
被视为较大值的数字位数。

示例

234759602834500

name (string)
用于识别建筑物的名称 [最大长度:250]

name (string)
纯文本格式。不允许富文本或换行符。

示例

Sample Content

description (string)
建筑物描述

description (string)
纯文本格式。不允许富文本或换行符。

示例

Sample Content

space_code (string)
识别建筑物的唯一名称 [最大长度:250]

space_code (string)
纯文本格式。不允许富文本或换行符。

示例

Sample Content

display_image (string)
包含用作默认建筑图像的图片附件 ID

display_image (string)
纯文本格式。不允许富文本或换行符。

示例

Sample Content

total_capacity (long)
表示建筑物的总容量 [只读]

total_capacity (long)
被视为较大值的数字位数。

示例

234759602834500

更多属性 全部展开

occupied_capacity (long)

表示建筑物的已占用容量 [只读]

occupied_capacity (long)
被视为较大值的数字位数。

示例

234759602834500

type (sp_type)

表示建筑物类型

type (sp_type)

space_attributes (space_attributes)

包含建筑物的自定义字段

space_attributes (space_attributes)

site (site)

表示建筑物所在站点

site (site)

设施 (sp_amenity)

包含建筑物中存在的设施集合

设施 (sp_amenity)

criticalities (sp_criticality)

包含建筑物中存在的关键项集合

criticalities (sp_criticality)

status (sp_status)

指示建筑物的状态

status (sp_status)

attachments (attachment)

包含建筑物的附件

attachments (attachment)

supervisors (technician)

指示建筑物的主管

supervisors (technician)

area (JSONObject)

指示建筑物的面积及单位 
show attribute

area (JSONObject)

created_by (user)read only

指示创建建筑物的用户

created_by (user)

created_time (datetime)read only

指示建筑物创建的时间

created_time (datetime)
表示作为JSON对象的日期/时间。包含value和display_value属性。

value :以长整型格式表示的时间(从1970年1月1日起的毫秒数)。

display_value :以用户个性化格式显示的可读时间。若无个性化,则使用默认格式。

last_updated_by (user)read only

指示最近编辑建筑物的用户

last_updated_by (user)

last_updated_time (datetime)read only

指示建筑物最近编辑的时间

last_updated_time (datetime)
表示作为JSON对象的日期/时间。包含value和display_value属性。

value :以长整型格式表示的时间(从1970年1月1日起的毫秒数)。

display_value :以用户个性化格式显示的可读时间。若无个性化,则使用默认格式。

available_capacity (long)read only

指示建筑物的可用容量[只读]

available_capacity (long)
被视为较大值的数字位数。

示例

234759602834500

structure_type (string)

指示结构是“Building”还是“Nonbuilding Structure”

structure_type (string)
指示结构是“Building”还是“Nonbuilding Structure”

示例

"structure_type" : "Building"

space_campus (space)

指示建筑物所在的校园

space_campus (space)
指示建筑物所在的校园

示例

{
  "space_campus": {
    "id": "99999000000043495",
    "name": "Estancia",
    "status": {
      "id": "99999000000040433"
    },
    "type": {
      "id": "99999000000036766"
    }
  }
}   

building_type (string)

指示建筑物包含“Floors and Rooms”还是“Rooms Only”

building_type (string)
指示建筑物包含“Floors and Rooms”还是“Rooms Only”

示例

"building_type" : "Floors and Rooms"    

添加建筑物

此操作用于创建建筑物

必填字段 :- name

Url

<service domain|custom domain>/app/<portal>/api/v3/{building_type_api_name}

属性

id (long)
用于标识建筑物的唯一标识符

id (long)
被视为较大值的数字位数。

示例

234759602834500

name (string)
用于识别建筑物的名称 [最大长度:250]

name (string)
纯文本格式。不允许富文本或换行符。

示例

Sample Content

description (string)
建筑物描述

description (string)
纯文本格式。不允许富文本或换行符。

示例

Sample Content

space_code (string)
识别建筑物的唯一名称 [最大长度:250]

space_code (string)
纯文本格式。不允许富文本或换行符。

示例

Sample Content

display_image (string)
包含用作默认建筑图像的图片附件 ID

display_image (string)
纯文本格式。不允许富文本或换行符。

示例

Sample Content

total_capacity (long)
表示建筑物的总容量 [只读]

total_capacity (long)
被视为较大值的数字位数。

示例

234759602834500

更多属性 全部展开

occupied_capacity (long)

表示建筑物的已占用容量 [只读]

occupied_capacity (long)
被视为较大值的数字位数。

示例

234759602834500

type (sp_type)

表示建筑物类型

type (sp_type)

space_attributes (space_attributes)

包含建筑物的自定义字段

space_attributes (space_attributes)

site (site)

表示建筑物所在站点

site (site)

设施 (sp_amenity)

包含建筑物中存在的设施集合

设施 (sp_amenity)

criticalities (sp_criticality)

包含建筑物中存在的关键项集合

criticalities (sp_criticality)

status (sp_status)

指示建筑物的状态

status (sp_status)

attachments (attachment)

包含建筑物的附件

attachments (attachment)

supervisors (technician)

指示建筑物的主管

supervisors (technician)

area (JSONObject)

指示建筑物的面积及单位 
show attribute

area (JSONObject)

created_by (user)read only

指示创建建筑物的用户

created_by (user)

created_time (datetime)read only

指示建筑物创建的时间

created_time (datetime)
表示作为JSON对象的日期/时间。包含value和display_value属性。

value :以长整型格式表示的时间(从1970年1月1日起的毫秒数)。

display_value :以用户个性化格式显示的可读时间。若无个性化,则使用默认格式。

last_updated_by (user)read only

指示最近编辑建筑物的用户

last_updated_by (user)

last_updated_time (datetime)read only

指示建筑物最近编辑的时间

last_updated_time (datetime)
表示作为JSON对象的日期/时间。包含value和display_value属性。

value :以长整型格式表示的时间(从1970年1月1日起的毫秒数)。

display_value :以用户个性化格式显示的可读时间。若无个性化,则使用默认格式。

available_capacity (long)read only

指示建筑物的可用容量[只读]

available_capacity (long)
被视为较大值的数字位数。

示例

234759602834500

structure_type (string)

指示结构是“Building”还是“Nonbuilding Structure”

structure_type (string)
指示结构是“Building”还是“Nonbuilding Structure”

示例

"structure_type" : "Building"

space_campus (space)

指示建筑物所在的校园

space_campus (space)
指示建筑物所在的校园

示例

{
  "space_campus": {
    "id": "99999000000043495",
    "name": "Estancia",
    "status": {
      "id": "99999000000040433"
    },
    "type": {
      "id": "99999000000036766"
    }
  }
}   

building_type (string)

指示建筑物包含“Floors and Rooms”还是“Rooms Only”

building_type (string)
指示建筑物包含“Floors and Rooms”还是“Rooms Only”

示例

"building_type" : "Floors and Rooms"    

$ curl <service domain|custom domain>/app/<portal>/api/v3/{building_type_api_name}\
      -X POST\
      -H "Accept: application/vnd.manageengine.sdp.v3+json"\
      -H "Authorization: Zoho-oauthtoken 1000.7xxx98976ab0xxxxxx19901e7551be57.bxxxx921ed64c04f79622bebcfxxxxxx"\
      -H "Content-Type: application/x-www-form-urlencoded"\
      -d input_data='{
  "space_defaultbuilding": {
    "name": "Signature Tower",
    "description": "main building",
    "space_campus": {
      "id": "100000000000043080"
    },
    "building_type": "Floors and Rooms",
    "status": {
      "id": "100000000000040570"
    },
    "area": {
      "space_area": "50000",
      "area_unit": {
        "id": "100000000000040548"
      }
    },
    "supervisors": [
      {
        "id": "100000000000041911"
      }
    ],
    "space_code": "tower",
    "amenities": [
      {
        "id": "100000000000040500"
      }
    ],
    "criticalities": [
      {
        "id": "100000000000040545"
      }
    ],
    "attachments": [
      {
        "file_id": "52"
      }
    ],
    "site": {
      "id": "100000000000006824"
    },
    "space_building": null,
    "space_floor": null,
    "space_room": null,
    "display_image": "52"
  }
}'
// Deluge Sample script
url = "<service domain|custom domain>/app/<portal>/api/v3/{building_type_api_name}";
headers = {"Accept":"application/vnd.manageengine.sdp.v3+json",
           "Content-Type": "application/x-www-form-urlencoded",
           "Authorization": "Zoho-oauthtoken 1000.7xxx98976ab0xxxxxx19901e7551be57.bxxxx921ed64c04f79622bebcfxxxxxx"};
input_data = {
  "space_defaultbuilding": {
    "name": "Signature Tower",
    "description": "main building",
    "space_campus": {
      "id": "100000000000043080"
    },
    "building_type": "Floors and Rooms",
    "status": {
      "id": "100000000000040570"
    },
    "area": {
      "space_area": "50000",
      "area_unit": {
        "id": "100000000000040548"
      }
    },
    "supervisors": [
      {
        "id": "100000000000041911"
      }
    ],
    "space_code": "tower",
    "amenities": [
      {
        "id": "100000000000040500"
      }
    ],
    "criticalities": [
      {
        "id": "100000000000040545"
      }
    ],
    "attachments": [
      {
        "file_id": "52"
      }
    ],
    "site": {
      "id": "100000000000006824"
    },
    "space_building": null,
    "space_floor": null,
    "space_room": null,
    "display_image": "52"
  }
};
params = {"input_data": input_data};
response = invokeurl
[
    url: url
    type: POST
    parameters: params
    headers: headers
];
info response;
#Powershell version - 5.1
$url = "<service domain|custom domain>/app/<portal>/api/v3/{building_type_api_name}"
$headers = @{ "Accept" = "application/vnd.manageengine.sdp.v3+json"
    "Authorization" = "Zoho-oauthtoken 1000.7xxx98976ab0xxxxxx19901e7551be57.bxxxx921ed64c04f79622bebcfxxxxxx"
    "Content-Type" = "application/x-www-form-urlencoded"}
$input_data = @'
{
  "space_defaultbuilding": {
    "name": "Signature Tower",
    "description": "main building",
    "space_campus": {
      "id": "100000000000043080"
    },
    "building_type": "Floors and Rooms",
    "status": {
      "id": "100000000000040570"
    },
    "area": {
      "space_area": "50000",
      "area_unit": {
        "id": "100000000000040548"
      }
    },
    "supervisors": [
      {
        "id": "100000000000041911"
      }
    ],
    "space_code": "tower",
    "amenities": [
      {
        "id": "100000000000040500"
      }
    ],
    "criticalities": [
      {
        "id": "100000000000040545"
      }
    ],
    "attachments": [
      {
        "file_id": "52"
      }
    ],
    "site": {
      "id": "100000000000006824"
    },
    "space_building": null,
    "space_floor": null,
    "space_room": null,
    "display_image": "52"
  }
}
'@
$data = @{ 'input_data' = $input_data}
$response = Invoke-RestMethod -Uri $url -Method post -Body $data -Headers $headers
$response
#Python version - 3.10
from urllib.error import HTTPError
from urllib.parse import urlencode
from urllib.request import urlopen,Request

url = "<service domain|custom domain>/app/<portal>/api/v3/{building_type_api_name}"
headers ={"Accept": "application/vnd.manageengine.sdp.v3+json", 
          "Authorization" : "Zoho-oauthtoken 1000.7xxx98976ab0xxxxxx19901e7551be57.bxxxx921ed64c04f79622bebcfxxxxxx", 
          "Content-Type" : "application/x-www-form-urlencoded"}
input_data = '''{
  "space_defaultbuilding": {
    "name": "Signature Tower",
    "description": "main building",
    "space_campus": {
      "id": "100000000000043080"
    },
    "building_type": "Floors and Rooms",
    "status": {
      "id": "100000000000040570"
    },
    "area": {
      "space_area": "50000",
      "area_unit": {
        "id": "100000000000040548"
      }
    },
    "supervisors": [
      {
        "id": "100000000000041911"
      }
    ],
    "space_code": "tower",
    "amenities": [
      {
        "id": "100000000000040500"
      }
    ],
    "criticalities": [
      {
        "id": "100000000000040545"
      }
    ],
    "attachments": [
      {
        "file_id": "52"
      }
    ],
    "site": {
      "id": "100000000000006824"
    },
    "space_building": null,
    "space_floor": null,
    "space_room": null,
    "display_image": "52"
  }
}'''
data = urlencode({"input_data":input_data}).encode()
httprequest = Request(url, headers=headers,data=data, method="POST")
try:
    with urlopen(httprequest) as response:
        print(response.read().decode())
except HTTPError as e:
    print(e.read().decode())
{
    "response_status": {
        "status_code": 2000,
        "status": "success"
    },
    "space_defaultbuilding": {
        "occupied_capacity": "0",
        "common_module": "space_building",
        "amenities": [
            {
                "name": "ATM",
                "description": null,
                "id": "100000000000040500",
                "icon_name": "atm"
            }
        ],
        "attachments": [
            {
                "size": "168712",
                "content_type": "image/png",
                "file_id": "52",
                "name": "Screenshot 2025-01-24 at 1.04.50\u202fPM (2).png",
                "content_url": "/space_defaultbuildings/100000000000043152/_uploads/52",
                "id": "100000000000043154"
            }
        ],
        "space_building": null,
        "structure_type": "Building",
        "description": "main building",
        "space_code": "tower",
        "criticalities": [
            {
                "name": "Explosive",
                "description": "The Space contains explosive material.",
                "id": "100000000000040545",
                "icon_name": "explosive"
            }
        ],
        "type": {
            "api_plural_name": "space_defaultbuildings",
            "name": "space_defaultbuilding",
            "display_name_plural": "Default Building",
            "id": "100000000000037122",
            "display_name": "Default Building",
            "icon_name": null
        },
        "last_updated_by": null,
        "id": "100000000000043152",
        "display_image": "52",
        "total_capacity": "0",
        "space_campus": {
            "name": "Estancia",
            "id": "100000000000043080",
            "type": {
                "id": "100000000000037120"
            }
        },
        "area": {
            "area_unit": {
                "deleted": false,
                "name": "Sq.meter",
                "id": "100000000000040548",
                "is_default": true
            },
            "space_area": "50000"
        },
        "created_time": {
            "display_value": "Jan 30, 2025 01:17 PM",
            "value": "1738223266548"
        },
        "space_room": null,
        "created_by": {
            "email_id": "test@zmail.com",
            "is_technician": true,
            "sms_mail": "",
            "mobile": "",
            "last_name": "",
            "user_scope": "internal_user",
            "sms_mail_id": "",
            "cost_per_hour": "0",
            "site": {
                "deleted": false,
                "name": "Base Site",
                "id": "100000000000006824",
                "is_default": true
            },
            "phone": "",
            "employee_id": "",
            "name": "tech",
            "id": "100000000000043064",
            "photo_url": "https://contacts.csez.zohocorpin.com/file?exp=10&ID=16704982&t=user&height=60&width=60",
            "is_vip_user": false,
            "department": null,
            "first_name": "tech",
            "job_title": ""
        },
        "available_capacity": 0,
        "room_layouts": [],
        "space_floor": null,
        "site": {
            "deleted": false,
            "name": "Base Site",
            "id": "100000000000006824",
            "is_default": true
        },
        "last_updated_time": null,
        "name": "Signature Tower",
        "status": {
            "color": "#00C408",
            "name": "Active",
            "id": "100000000000040570"
        },
        "supervisors": [
            {
                "email_id": "howard.stern@zylker.com",
                "is_technician": true,
                "sms_mail": null,
                "mobile": null,
                "last_name": "Stern",
                "user_scope": "internal_user",
                "sms_mail_id": null,
                "cost_per_hour": "0",
                "site": {
                    "id": "100000000000006824"
                },
                "phone": null,
                "employee_id": "1004",
                "name": "Howard Stern",
                "id": "100000000000041911",
                "is_vip_user": false,
                "photo_url": "https://contacts.csez.zohocorpin.com/file?exp=10&ID=-1&t=user&height=60&width=60",
                "department": null,
                "first_name": "Howard",
                "job_title": null
            }
        ],
        "building_type": "Floors and Rooms"
    }
}

编辑建筑物

此操作用于编辑建筑物

Url

<service domain|custom domain>/app/<portal>/api/v3/{building_type_api_name}/{building_id}

属性

id (long)
用于标识建筑物的唯一标识符

id (long)
被视为较大值的数字位数。

示例

234759602834500

name (string)
用于识别建筑物的名称 [最大长度:250]

name (string)
纯文本格式。不允许富文本或换行符。

示例

Sample Content

description (string)
建筑物描述

description (string)
纯文本格式。不允许富文本或换行符。

示例

Sample Content

space_code (string)
识别建筑物的唯一名称 [最大长度:250]

space_code (string)
纯文本格式。不允许富文本或换行符。

示例

Sample Content

display_image (string)
包含用作默认建筑图像的图片附件 ID

display_image (string)
纯文本格式。不允许富文本或换行符。

示例

Sample Content

total_capacity (long)
表示建筑物的总容量 [只读]

total_capacity (long)
被视为较大值的数字位数。

示例

234759602834500

更多属性 全部展开

occupied_capacity (long)

表示建筑物的已占用容量 [只读]

occupied_capacity (long)
被视为较大值的数字位数。

示例

234759602834500

type (sp_type)

表示建筑物类型

type (sp_type)

space_attributes (space_attributes)

包含建筑物的自定义字段

space_attributes (space_attributes)

site (site)

表示建筑物所在站点

site (site)

设施 (sp_amenity)

包含建筑物中存在的设施集合

设施 (sp_amenity)

criticalities (sp_criticality)

包含建筑物中存在的关键项集合

criticalities (sp_criticality)

status (sp_status)

指示建筑物的状态

status (sp_status)

attachments (attachment)

包含建筑物的附件

attachments (attachment)

supervisors (technician)

指示建筑物的主管

supervisors (technician)

area (JSONObject)

指示建筑物的面积及单位 
show attribute

area (JSONObject)

created_by (user)read only

指示创建建筑物的用户

created_by (user)

created_time (datetime)read only

指示建筑物创建的时间

created_time (datetime)
表示作为JSON对象的日期/时间。包含value和display_value属性。

value :以长整型格式表示的时间(从1970年1月1日起的毫秒数)。

display_value :以用户个性化格式显示的可读时间。若无个性化,则使用默认格式。

last_updated_by (user)read only

指示最近编辑建筑物的用户

last_updated_by (user)

last_updated_time (datetime)read only

指示建筑物最近编辑的时间

last_updated_time (datetime)
表示作为JSON对象的日期/时间。包含value和display_value属性。

value :以长整型格式表示的时间(从1970年1月1日起的毫秒数)。

display_value :以用户个性化格式显示的可读时间。若无个性化,则使用默认格式。

available_capacity (long)read only

指示建筑物的可用容量[只读]

available_capacity (long)
被视为较大值的数字位数。

示例

234759602834500

structure_type (string)

指示结构是“Building”还是“Nonbuilding Structure”

structure_type (string)
指示结构是“Building”还是“Nonbuilding Structure”

示例

"structure_type" : "Building"

space_campus (space)

指示建筑物所在的校园

space_campus (space)
指示建筑物所在的校园

示例

{
  "space_campus": {
    "id": "99999000000043495",
    "name": "Estancia",
    "status": {
      "id": "99999000000040433"
    },
    "type": {
      "id": "99999000000036766"
    }
  }
}   

building_type (string)

指示建筑物包含“Floors and Rooms”还是“Rooms Only”

building_type (string)
指示建筑物包含“Floors and Rooms”还是“Rooms Only”

示例

"building_type" : "Floors and Rooms"    

$ curl <service domain|custom domain>/app/<portal>/api/v3/{building_type_api_name}/{building_id}\
      -X PUT\ 
      -H "Accept: application/vnd.manageengine.sdp.v3+json"\
      -H "Authorization: Zoho-oauthtoken 1000.7xxx98976ab0xxxxxx19901e7551be57.bxxxx921ed64c04f79622bebcfxxxxxx"\
      -H "Content-Type: application/x-www-form-urlencoded"\
      -d input_data='{
  "space_defaultbuilding": {
    "description": "Situated in GST Road, Guduvancherry"
  }
}'
// Deluge Sample script
url = "<service domain|custom domain>/app/<portal>/api/v3/{building_type_api_name}/{building_id}";
headers = {"Accept":"application/vnd.manageengine.sdp.v3+json",
           "Content-Type": "application/x-www-form-urlencoded",
           "Authorization": "Zoho-oauthtoken 1000.7xxx98976ab0xxxxxx19901e7551be57.bxxxx921ed64c04f79622bebcfxxxxxx"};
input_data = {
  "space_defaultbuilding": {
    "description": "Situated in GST Road, Guduvancherry"
  }
};
params = {"input_data": input_data};
response = invokeurl
[
    url: url
    type: PUT
    parameters: params
    headers: headers
];
info response;
#Powershell version - 5.1
$url = "<service domain|custom domain>/app/<portal>/api/v3/{building_type_api_name}/{building_id}"
$headers = @{"Accept": "application/vnd.manageengine.sdp.v3+json", 
          "Authorization" : "Zoho-oauthtoken 1000.7xxx98976ab0xxxxxx19901e7551be57.bxxxx921ed64c04f79622bebcfxxxxxx", 
          "Content-Type" : "application/x-www-form-urlencoded"}
$input_data = @'
{
  "space_defaultbuilding": {
    "description": "Situated in GST Road, Guduvancherry"
  }
}
'@
$data = @{ 'input_data' = $input_data}
$response = Invoke-RestMethod -Uri $url -Method put -Body $data -Headers $headers
$response
#Python version - 3.10
from urllib.error import HTTPError
from urllib.parse import urlencode
from urllib.request import urlopen,Request

url = "<service domain|custom domain>/app/<portal>/api/v3/{building_type_api_name}/{building_id}"
headers ={"Accept": "application/vnd.manageengine.sdp.v3+json", 
          "Authorization" : "Zoho-oauthtoken 1000.7xxx98976ab0xxxxxx19901e7551be57.bxxxx921ed64c04f79622bebcfxxxxxx", 
          "Content-Type" : "application/x-www-form-urlencoded"}
input_data = '''{
  "space_defaultbuilding": {
    "description": "Situated in GST Road, Guduvancherry"
  }
}'''
data = urlencode({"input_data":input_data}).encode()
httprequest = Request(url, headers=headers,data=data, method="PUT")
try:
    with urlopen(httprequest) as response:
        print(response.read().decode())
except HTTPError as e:
    print(e.read().decode())
{
    "response_status": {
        "status_code": 2000,
        "status": "success"
    },
    "space_defaultbuilding": {
        "occupied_capacity": "0",
        "common_module": "space_building",
        "amenities": [
            {
                "name": "ATM",
                "description": null,
                "id": "100000000000040500",
                "icon_name": "atm"
            }
        ],
        "attachments": [
            {
                "size": "168712",
                "content_type": "image/png",
                "file_id": "52",
                "name": "Screenshot 2025-01-24 at 1.04.50\u202fPM (2).png",
                "content_url": "/space_defaultbuildings/100000000000043152/_uploads/52",
                "id": "100000000000043154"
            }
        ],
        "space_building": null,
        "structure_type": "Building",
        "description": "Situated in GST Road, Guduvancherry",
        "space_code": "tower",
        "criticalities": [
            {
                "name": "Explosive",
                "description": "The Space contains explosive material.",
                "id": "100000000000040545",
                "icon_name": "explosive"
            }
        ],
        "type": {
            "api_plural_name": "space_defaultbuildings",
            "name": "space_defaultbuilding",
            "display_name_plural": "Default Building",
            "id": "100000000000037122",
            "display_name": "Default Building",
            "icon_name": null
        },
        "last_updated_by": {
            "email_id": "test@zmail.com",
            "is_technician": true,
            "sms_mail": "",
            "mobile": "",
            "last_name": "",
            "user_scope": "internal_user",
            "sms_mail_id": "",
            "cost_per_hour": "0",
            "site": {
                "deleted": false,
                "name": "Base Site",
                "id": "100000000000006824",
                "is_default": true
            },
            "phone": "",
            "employee_id": "",
            "name": "tech",
            "id": "100000000000043064",
            "photo_url": "https://contacts.csez.zohocorpin.com/file?exp=10&ID=16704982&t=user&height=60&width=60",
            "is_vip_user": false,
            "department": null,
            "first_name": "tech",
            "job_title": ""
        },
        "id": "100000000000043152",
        "display_image": "52",
        "total_capacity": "0",
        "space_campus": {
            "name": "Estancia",
            "id": "100000000000043080",
            "type": {
                "id": "100000000000037120"
            }
        },
        "area": {
            "area_unit": {
                "deleted": false,
                "name": "Sq.meter",
                "id": "100000000000040548",
                "is_default": true
            },
            "space_area": "50000"
        },
        "created_time": {
            "display_value": "Jan 30, 2025 01:17 PM",
            "value": "1738223266548"
        },
        "space_room": null,
        "created_by": {
            "email_id": "test@zmail.com",
            "is_technician": true,
            "sms_mail": "",
            "mobile": "",
            "last_name": "",
            "user_scope": "internal_user",
            "sms_mail_id": "",
            "cost_per_hour": "0",
            "site": {
                "deleted": false,
                "name": "Base Site",
                "id": "100000000000006824",
                "is_default": true
            },
            "phone": "",
            "employee_id": "",
            "name": "tech",
            "id": "100000000000043064",
            "photo_url": "https://contacts.csez.zohocorpin.com/file?exp=10&ID=16704982&t=user&height=60&width=60",
            "is_vip_user": false,
            "department": null,
            "first_name": "tech",
            "job_title": ""
        },
        "available_capacity": 0,
        "room_layouts": [],
        "space_floor": null,
        "site": {
            "deleted": false,
            "name": "Base Site",
            "id": "100000000000006824",
            "is_default": true
        },
        "last_updated_time": {
            "display_value": "Jan 30, 2025 01:19 PM",
            "value": "1738223353824"
        },
        "name": "Signature Tower",
        "status": {
            "color": "#00C408",
            "name": "Active",
            "id": "100000000000040570"
        },
        "supervisors": [
            {
                "email_id": "howard.stern@zylker.com",
                "is_technician": true,
                "sms_mail": null,
                "mobile": null,
                "last_name": "Stern",
                "user_scope": "internal_user",
                "sms_mail_id": null,
                "cost_per_hour": "0",
                "site": {
                    "id": "100000000000006824"
                },
                "phone": null,
                "employee_id": "1004",
                "name": "Howard Stern",
                "id": "100000000000041911",
                "is_vip_user": false,
                "photo_url": "https://contacts.csez.zohocorpin.com/file?exp=10&ID=-1&t=user&height=60&width=60",
                "department": null,
                "first_name": "Howard",
                "job_title": null
            }
        ],
        "building_type": "Floors and Rooms"
    }
}

获取建筑物

此操作用于获取单个建筑物

Url

<service domain|custom domain>/app/<portal>/api/v3/{building_type_api_name}/{building_id}

属性

id (long)
用于标识建筑物的唯一标识符

id (long)
被视为较大值的数字位数。

示例

234759602834500

name (string)
用于识别建筑物的名称 [最大长度:250]

name (string)
纯文本格式。不允许富文本或换行符。

示例

Sample Content

description (string)
建筑物描述

description (string)
纯文本格式。不允许富文本或换行符。

示例

Sample Content

space_code (string)
识别建筑物的唯一名称 [最大长度:250]

space_code (string)
纯文本格式。不允许富文本或换行符。

示例

Sample Content

display_image (string)
包含用作默认建筑图像的图片附件 ID

display_image (string)
纯文本格式。不允许富文本或换行符。

示例

Sample Content

total_capacity (long)
表示建筑物的总容量 [只读]

total_capacity (long)
被视为较大值的数字位数。

示例

234759602834500

更多属性 全部展开

occupied_capacity (long)

表示建筑物的已占用容量 [只读]

occupied_capacity (long)
被视为较大值的数字位数。

示例

234759602834500

type (sp_type)

表示建筑物类型

type (sp_type)

space_attributes (space_attributes)

包含建筑物的自定义字段

space_attributes (space_attributes)

site (site)

表示建筑物所在站点

site (site)

设施 (sp_amenity)

包含建筑物中存在的设施集合

设施 (sp_amenity)

criticalities (sp_criticality)

包含建筑物中存在的关键项集合

criticalities (sp_criticality)

status (sp_status)

指示建筑物的状态

status (sp_status)

attachments (attachment)

包含建筑物的附件

attachments (attachment)

supervisors (technician)

指示建筑物的主管

supervisors (technician)

area (JSONObject)

指示建筑物的面积及单位 
show attribute

area (JSONObject)

created_by (user)read only

指示创建建筑物的用户

created_by (user)

created_time (datetime)read only

指示建筑物创建的时间

created_time (datetime)
表示作为JSON对象的日期/时间。包含value和display_value属性。

value :以长整型格式表示的时间(从1970年1月1日起的毫秒数)。

display_value :以用户个性化格式显示的可读时间。若无个性化,则使用默认格式。

last_updated_by (user)read only

指示最近编辑建筑物的用户

last_updated_by (user)

last_updated_time (datetime)read only

指示建筑物最近编辑的时间

last_updated_time (datetime)
表示作为JSON对象的日期/时间。包含value和display_value属性。

value :以长整型格式表示的时间(从1970年1月1日起的毫秒数)。

display_value :以用户个性化格式显示的可读时间。若无个性化,则使用默认格式。

available_capacity (long)read only

指示建筑物的可用容量[只读]

available_capacity (long)
被视为较大值的数字位数。

示例

234759602834500

structure_type (string)

指示结构是“Building”还是“Nonbuilding Structure”

structure_type (string)
指示结构是“Building”还是“Nonbuilding Structure”

示例

"structure_type" : "Building"

space_campus (space)

指示建筑物所在的校园

space_campus (space)
指示建筑物所在的校园

示例

{
  "space_campus": {
    "id": "99999000000043495",
    "name": "Estancia",
    "status": {
      "id": "99999000000040433"
    },
    "type": {
      "id": "99999000000036766"
    }
  }
}   

building_type (string)

指示建筑物包含“Floors and Rooms”还是“Rooms Only”

building_type (string)
指示建筑物包含“Floors and Rooms”还是“Rooms Only”

示例

"building_type" : "Floors and Rooms"    

$ curl -G <service domain|custom domain>/app/<portal>/api/v3/{building_type_api_name}/{building_id}\
      -X GET\
      -H "Accept: application/vnd.manageengine.sdp.v3+json"\
      -H "Authorization: Zoho-oauthtoken 1000.7xxx98976ab0xxxxxx19901e7551be57.bxxxx921ed64c04f79622bebcfxxxxxx"\
      -H "Content-Type: application/x-www-form-urlencoded"
// Deluge Sample script
url = "<service domain|custom domain>/app/<portal>/api/v3/{building_type_api_name}/{building_id}";
headers = {"Accept":"application/vnd.manageengine.sdp.v3+json",
           "Content-Type": "application/x-www-form-urlencoded",
           "Authorization": "Zoho-oauthtoken 1000.7xxx98976ab0xxxxxx19901e7551be57.bxxxx921ed64c04f79622bebcfxxxxxx"};          
response = invokeurl
[
    url: url
    type: GET
    headers: headers
];
info response;
#Powershell version - 5.1
$url = "<service domain|custom domain>/app/<portal>/api/v3/{building_type_api_name}/{building_id}"
$headers = @{ "Accept" = "application/vnd.manageengine.sdp.v3+json"
    "Authorization" = "Zoho-oauthtoken 1000.7xxx98976ab0xxxxxx19901e7551be57.bxxxx921ed64c04f79622bebcfxxxxxx"
    "Content-Type" = "application/x-www-form-urlencoded"}  
$response = Invoke-RestMethod -Uri $url -Method get -Headers $headers 
$response
#Python version - 3.8
#This script requires requests module installed in python.
from urllib.error import HTTPError
from urllib.parse import urlencode
from urllib.request import urlopen,Request

url = "<service domain|custom domain>/app/<portal>/api/v3/{building_type_api_name}/{building_id}"
headers ={"Accept": "application/vnd.manageengine.sdp.v3+json", 
          "Authorization" : "Zoho-oauthtoken 1000.7xxx98976ab0xxxxxx19901e7551be57.bxxxx921ed64c04f79622bebcfxxxxxx", 
          "Content-Type" : "application/x-www-form-urlencoded"}
httprequest = Request(url, headers=headers)
try:
    with urlopen(httprequest) as response:
        print(response.read().decode())
except HTTPError as e:
    print(e.read().decode())
{
    "response_status": {
        "status_code": 2000,
        "status": "success"
    },
    "space_defaultbuilding": {
        "occupied_capacity": "0",
        "common_module": "space_building",
        "amenities": [
            {
                "name": "ATM",
                "description": null,
                "id": "100000000000040500",
                "icon_name": "atm"
            }
        ],
        "attachments": [
            {
                "size": "168712",
                "content_type": "image/png",
                "file_id": "52",
                "name": "Screenshot 2025-01-24 at 1.04.50\u202fPM (2).png",
                "content_url": "/space_defaultbuildings/100000000000043152/_uploads/52",
                "id": "100000000000043154"
            }
        ],
        "space_building": null,
        "structure_type": "Building",
        "description": "main building",
        "space_code": "tower",
        "criticalities": [
            {
                "name": "Explosive",
                "description": "The Space contains explosive material.",
                "id": "100000000000040545",
                "icon_name": "explosive"
            }
        ],
        "type": {
            "api_plural_name": "space_defaultbuildings",
            "name": "space_defaultbuilding",
            "display_name_plural": "Default Building",
            "id": "100000000000037122",
            "display_name": "Default Building",
            "icon_name": null
        },
        "last_updated_by": null,
        "id": "100000000000043152",
        "display_image": "52",
        "total_capacity": "0",
        "space_campus": {
            "name": "Estancia",
            "id": "100000000000043080",
            "type": {
                "id": "100000000000037120"
            }
        },
        "area": {
            "area_unit": {
                "deleted": false,
                "name": "Sq.meter",
                "id": "100000000000040548",
                "is_default": true
            },
            "space_area": "50000"
        },
        "created_time": {
            "display_value": "Jan 30, 2025 01:17 PM",
            "value": "1738223266548"
        },
        "space_room": null,
        "created_by": {
            "email_id": "test@zmail.com",
            "is_technician": true,
            "sms_mail": "",
            "mobile": "",
            "last_name": "",
            "user_scope": "internal_user",
            "sms_mail_id": "",
            "cost_per_hour": "0",
            "site": {
                "deleted": false,
                "name": "Base Site",
                "id": "100000000000006824",
                "is_default": true
            },
            "phone": "",
            "employee_id": "",
            "name": "tech",
            "id": "100000000000043064",
            "photo_url": "https://contacts.csez.zohocorpin.com/file?exp=10&ID=16704982&t=user&height=60&width=60",
            "is_vip_user": false,
            "department": null,
            "first_name": "tech",
            "job_title": ""
        },
        "available_capacity": 0,
        "room_layouts": [],
        "space_floor": null,
        "site": {
            "deleted": false,
            "name": "Base Site",
            "id": "100000000000006824",
            "is_default": true
        },
        "last_updated_time": null,
        "name": "Signature Tower",
        "status": {
            "color": "#00C408",
            "name": "Active",
            "id": "100000000000040570"
        },
        "supervisors": [
            {
                "email_id": "howard.stern@zylker.com",
                "is_technician": true,
                "sms_mail": null,
                "mobile": null,
                "last_name": "Stern",
                "user_scope": "internal_user",
                "sms_mail_id": null,
                "cost_per_hour": "0",
                "site": {
                    "id": "100000000000006824"
                },
                "phone": null,
                "employee_id": "1004",
                "name": "Howard Stern",
                "id": "100000000000041911",
                "is_vip_user": false,
                "photo_url": "https://contacts.csez.zohocorpin.com/file?exp=10&ID=-1&t=user&height=60&width=60",
                "department": null,
                "first_name": "Howard",
                "job_title": null
            }
        ],
        "building_type": "Floors and Rooms"
    }
}

获取建筑物列表

此操作用于获取所有结构的列表

Url

<service domain|custom domain>/app/<portal>/api/v3/space_buildings

属性

id (long)
用于标识建筑物的唯一标识符

id (long)
被视为较大值的数字位数。

示例

234759602834500

name (string)
用于识别建筑物的名称 [最大长度:250]

name (string)
纯文本格式。不允许富文本或换行符。

示例

Sample Content

description (string)
建筑物描述

description (string)
纯文本格式。不允许富文本或换行符。

示例

Sample Content

space_code (string)
识别建筑物的唯一名称 [最大长度:250]

space_code (string)
纯文本格式。不允许富文本或换行符。

示例

Sample Content

display_image (string)
包含用作默认建筑图像的图片附件 ID

display_image (string)
纯文本格式。不允许富文本或换行符。

示例

Sample Content

total_capacity (long)
表示建筑物的总容量 [只读]

total_capacity (long)
被视为较大值的数字位数。

示例

234759602834500

更多属性 全部展开

occupied_capacity (long)

表示建筑物的已占用容量 [只读]

occupied_capacity (long)
被视为较大值的数字位数。

示例

234759602834500

type (sp_type)

表示建筑物类型

type (sp_type)

space_attributes (space_attributes)

包含建筑物的自定义字段

space_attributes (space_attributes)

site (site)

表示建筑物所在站点

site (site)

设施 (sp_amenity)

包含建筑物中存在的设施集合

设施 (sp_amenity)

criticalities (sp_criticality)

包含建筑物中存在的关键项集合

criticalities (sp_criticality)

status (sp_status)

指示建筑物的状态

status (sp_status)

attachments (attachment)

包含建筑物的附件

attachments (attachment)

supervisors (technician)

指示建筑物的主管

supervisors (technician)

area (JSONObject)

指示建筑物的面积及单位 
show attribute

area (JSONObject)

created_by (user)read only

指示创建建筑物的用户

created_by (user)

created_time (datetime)read only

指示建筑物创建的时间

created_time (datetime)
表示作为JSON对象的日期/时间。包含value和display_value属性。

value :以长整型格式表示的时间(从1970年1月1日起的毫秒数)。

display_value :以用户个性化格式显示的可读时间。若无个性化,则使用默认格式。

last_updated_by (user)read only

指示最近编辑建筑物的用户

last_updated_by (user)

last_updated_time (datetime)read only

指示建筑物最近编辑的时间

last_updated_time (datetime)
表示作为JSON对象的日期/时间。包含value和display_value属性。

value :以长整型格式表示的时间(从1970年1月1日起的毫秒数)。

display_value :以用户个性化格式显示的可读时间。若无个性化,则使用默认格式。

available_capacity (long)read only

指示建筑物的可用容量[只读]

available_capacity (long)
被视为较大值的数字位数。

示例

234759602834500

structure_type (string)

指示结构是“Building”还是“Nonbuilding Structure”

structure_type (string)
指示结构是“Building”还是“Nonbuilding Structure”

示例

"structure_type" : "Building"

space_campus (space)

指示建筑物所在的校园

space_campus (space)
指示建筑物所在的校园

示例

{
  "space_campus": {
    "id": "99999000000043495",
    "name": "Estancia",
    "status": {
      "id": "99999000000040433"
    },
    "type": {
      "id": "99999000000036766"
    }
  }
}   

building_type (string)

指示建筑物包含“Floors and Rooms”还是“Rooms Only”

building_type (string)
指示建筑物包含“Floors and Rooms”还是“Rooms Only”

示例

"building_type" : "Floors and Rooms"    

$ curl -G <service domain|custom domain>/app/<portal>/api/v3/space_buildings\
      -X GET\ 
      -H "Accept: application/vnd.manageengine.sdp.v3+json"\
      -H "Authorization: Zoho-oauthtoken 1000.7xxx98976ab0xxxxxx19901e7551be57.bxxxx921ed64c04f79622bebcfxxxxxx"\
      -H "Content-Type: application/x-www-form-urlencoded"\
      --data-urlencode input_data=''
// Deluge Sample script
url = "<service domain|custom domain>/app/<portal>/api/v3/space_buildings";
headers = {"Accept":"application/vnd.manageengine.sdp.v3+json",
           "Content-Type": "application/x-www-form-urlencoded",
           "Authorization": "Zoho-oauthtoken 1000.7xxx98976ab0xxxxxx19901e7551be57.bxxxx921ed64c04f79622bebcfxxxxxx"};
input_data = ;
params = {"input_data":input_data};           
response = invokeurl
[
    url: url
    type: GET
    parameters:params
    headers: headers
];
info response;
#Powershell version - 5.1
$url = "<service domain|custom domain>/app/<portal>/api/v3/space_buildings"
$headers = @{ "Accept" = "application/vnd.manageengine.sdp.v3+json"
    "Authorization" = "Zoho-oauthtoken 1000.7xxx98976ab0xxxxxx19901e7551be57.bxxxx921ed64c04f79622bebcfxxxxxx"
    "Content-Type" = "application/x-www-form-urlencoded"}
$input_data = @''@
$data = @{ 'input_data' = $input_data}    
$response = Invoke-RestMethod -Uri $url -Method get -Body $data -Headers $headers 
$response
#Python version - 3.8
#This script requires requests module installed in python.
from urllib.error import HTTPError
from urllib.parse import urlencode
from urllib.request import urlopen,Request

url = "<service domain|custom domain>/app/<portal>/api/v3/space_buildings"
headers ={"Accept": "application/vnd.manageengine.sdp.v3+json", 
          "Authorization" : "Zoho-oauthtoken 1000.7xxx98976ab0xxxxxx19901e7551be57.bxxxx921ed64c04f79622bebcfxxxxxx", 
          "Content-Type" : "application/x-www-form-urlencoded"}
input_data = ''''''       
url += "?" + urlencode({"input_data":input_data})
httprequest = Request(url, headers=headers)
try:
    with urlopen(httprequest) as response:
        print(response.read().decode())
except HTTPError as e:
    print(e.read().decode())
{
  "space_buildings": [
    {
      "occupied_capacity": "0",
      "area": {
        "area_unit": {
          "deleted": false,
          "name": "Sq.meter",
          "id": "100000000000040548",
          "is_default": true
        },
        "space_area": "50000"
      },
      "common_module": "space_building",
      "created_time": {
        "display_value": "Jan 30, 2025 01:20 PM",
        "value": "1738223412888"
      },
      "space_building": null,
      "structure_type": "Building",
      "space_room": null,
      "description": "Situated in GST Road, Guduvancherry",
      "space_code": null,
      "type": {
        "api_plural_name": "space_defaultbuildings",
        "name": "space_defaultbuilding",
        "display_name_plural": "Default Building",
        "id": "100000000000037122",
        "display_name": "Default Building",
        "icon_name": null
      },
      "created_by": {
        "email_id": "test@zmail.com",
        "is_technician": true,
        "sms_mail": "",
        "mobile": "",
        "last_name": "",
        "user_scope": "internal_user",
        "sms_mail_id": "",
        "cost_per_hour": "0",
        "site": {
          "deleted": false,
          "name": "Base Site",
          "id": "100000000000006824",
          "is_default": true
        },
        "phone": "",
        "employee_id": "",
        "name": "tech",
        "id": "100000000000043064",
        "photo_url": "https://contacts.csez.zohocorpin.com/file?exp=10&ID=16704982&t=user&height=60&width=60",
        "is_vip_user": false,
        "department": null,
        "first_name": "tech",
        "job_title": ""
      },
      "available_capacity": 0,
      "space_floor": null,
      "last_updated_by": null,
      "site": {
        "deleted": false,
        "name": "Base Site",
        "id": "100000000000006824",
        "is_default": true
      },
      "last_updated_time": null,
      "name": "Copy of Signature Tower-1",
      "id": "100000000000043176",
      "display_image": null,
      "total_capacity": "0",
      "space_campus": {
        "name": "Estancia",
        "id": "100000000000043080",
        "type": {
          "id": "100000000000037120"
        }
      },
      "status": {
        "color": "#00C408",
        "name": "Active",
        "id": "100000000000040570"
      },
      "building_type": "Floors and Rooms"
    },
    {
      "occupied_capacity": "0",
      "area": {
        "area_unit": {
          "deleted": false,
          "name": "Sq.meter",
          "id": "100000000000040548",
          "is_default": true
        },
        "space_area": "50000"
      },
      "common_module": "space_building",
      "created_time": {
        "display_value": "Jan 30, 2025 01:17 PM",
        "value": "1738223266548"
      },
      "space_building": null,
      "structure_type": "Building",
      "space_room": null,
      "description": "Situated in GST Road, Guduvancherry",
      "space_code": "tower",
      "type": {
        "api_plural_name": "space_defaultbuildings",
        "name": "space_defaultbuilding",
        "display_name_plural": "Default Building",
        "id": "100000000000037122",
        "display_name": "Default Building",
        "icon_name": null
      },
      "created_by": {
        "email_id": "test@zmail.com",
        "is_technician": true,
        "sms_mail": "",
        "mobile": "",
        "last_name": "",
        "user_scope": "internal_user",
        "sms_mail_id": "",
        "cost_per_hour": "0",
        "site": {
          "deleted": false,
          "name": "Base Site",
          "id": "100000000000006824",
          "is_default": true
        },
        "phone": "",
        "employee_id": "",
        "name": "tech",
        "id": "100000000000043064",
        "photo_url": "https://contacts.csez.zohocorpin.com/file?exp=10&ID=16704982&t=user&height=60&width=60",
        "is_vip_user": false,
        "department": null,
        "first_name": "tech",
        "job_title": ""
      },
      "available_capacity": 0,
      "space_floor": null,
      "last_updated_by": {
        "email_id": "test@zmail.com",
        "is_technician": true,
        "sms_mail": "",
        "mobile": "",
        "last_name": "",
        "user_scope": "internal_user",
        "sms_mail_id": "",
        "cost_per_hour": "0",
        "site": {
          "deleted": false,
          "name": "Base Site",
          "id": "100000000000006824",
          "is_default": true
        },
        "phone": "",
        "employee_id": "",
        "name": "tech",
        "id": "100000000000043064",
        "photo_url": "https://contacts.csez.zohocorpin.com/file?exp=10&ID=16704982&t=user&height=60&width=60",
        "is_vip_user": false,
        "department": null,
        "first_name": "tech",
        "job_title": ""
      },
      "site": {
        "deleted": false,
        "name": "Base Site",
        "id": "100000000000006824",
        "is_default": true
      },
      "last_updated_time": {
        "display_value": "Jan 30, 2025 01:19 PM",
        "value": "1738223353824"
      },
      "name": "Signature Tower",
      "id": "100000000000043152",
      "display_image": "52",
      "total_capacity": "0",
      "space_campus": {
        "name": "Estancia",
        "id": "100000000000043080",
        "type": {
          "id": "100000000000037120"
        }
      },
      "status": {
        "color": "#00C408",
        "name": "Active",
        "id": "100000000000040570"
      },
      "building_type": "Floors and Rooms"
    }
  ],
  "response_status": [
    {
      "status_code": 2000,
      "status": "success"
    }
  ],
  "list_info": {
    "has_more_rows": false,
    "sort_field": "name",
    "row_count": 2
  }
}

删除建筑物

此操作允许删除建筑物

Url

<service domain|custom domain>/app/<portal>/api/v3/{building_type_api_name}/{building_id}

$ curl <service domain|custom domain>/app/<portal>/api/v3/{building_type_api_name}/{building_id}\
      -X DELETE\ 
      -H "Accept: application/vnd.manageengine.sdp.v3+json"\
      -H "Authorization: Zoho-oauthtoken 1000.7xxx98976ab0xxxxxx19901e7551be57.bxxxx921ed64c04f79622bebcfxxxxxx"\
      -H "Content-Type: application/x-www-form-urlencoded"
// Deluge Sample script
url = "<service domain|custom domain>/app/<portal>/api/v3/{building_type_api_name}/{building_id}";
headers = {"Accept":"application/vnd.manageengine.sdp.v3+json",
           "Content-Type": "application/x-www-form-urlencoded",
           "Authorization": "Zoho-oauthtoken 1000.7xxx98976ab0xxxxxx19901e7551be57.bxxxx921ed64c04f79622bebcfxxxxxx"};
response = invokeurl
[
    url: url
    type: DELETE
    headers: headers
];
info response;
#Powershell version - 5.1
$url = "<service domain|custom domain>/app/<portal>/api/v3/{building_type_api_name}/{building_id}"
$headers = @{ "Accept" = "application/vnd.manageengine.sdp.v3+json"
    "Authorization" = "Zoho-oauthtoken 1000.7xxx98976ab0xxxxxx19901e7551be57.bxxxx921ed64c04f79622bebcfxxxxxx"
    "Content-Type" = "application/x-www-form-urlencoded"}
$response = Invoke-RestMethod -Uri $url -Method delete -Headers $headers
$response
#Python version - 3.10
from urllib.error import HTTPError
from urllib.request import urlopen,Request

url = "<service domain|custom domain>/app/<portal>/api/v3/{building_type_api_name}/{building_id}"
headers ={"Accept": "application/vnd.manageengine.sdp.v3+json", 
          "Authorization" : "Zoho-oauthtoken 1000.7xxx98976ab0xxxxxx19901e7551be57.bxxxx921ed64c04f79622bebcfxxxxxx", 
          "Content-Type" : "application/x-www-form-urlencoded"}
httprequest = Request(url, headers=headers,method="DELETE")
try:
    with urlopen(httprequest) as response:
        print(response.read().decode())
except HTTPError as e:
    print(e.read().decode())
{
  "response_status": {
    "status_code": 2000,
    "status": "success"
  }
}