跳转到内容

房间分区

房间可以划分为多个分区。

属性

id (long)
用于标识房间分区的唯一标识符

id (long)
被认为具有较大值的数字位数。

示例

234759602834500

名称 (string)
用于标识房间分区的名称[max-length: 250]

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

示例

Sample Content

描述 (string)
房间分区描述

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

示例

Sample Content

space_code (string)
用于标识房间分区的唯一名称[max-length: 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

类型 (sp_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)

room_layouts (room_layout_mapping)

包含空间中可用房间布局及其容量的集合

room_layouts (room_layout_mapping)

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

space_campus (space)

指示分区所在的校区

space_campus (space)
指示分区所在的校区

示例

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

space_building (space)

指示分区所在的建筑物

space_building (space)
指示分区所在的建筑物

示例

{
  "space_building": {
    "id": "99999000000043501",
    "name": "Signture Tower",
    "status": {
      "id": "99999000000040433"
    },
    "type": {
      "id": "99999000000036768"
    }
  }
}

space_floor (space)

指示分区所在的楼层

space_floor (space)
指示分区所在的楼层

示例

{
  "space_floor": {
    "id": "99999000000043511",
    "name": "First Floor",
    "status": {
      "id": "99999000000040433"
    },
    "type": {
      "id": "99999000000036772"
    }
  }
}

space_room (space)

指示分区所在的房间

space_room (space)
指示分区所在的房间

示例

{
  "space_room": {
    "id": "99999000000044089",
    "name": "Conference Room",
    "status": {
      "id": "99999000000040433"
    },
    "type": {
      "id": "99999000000036774"
    }
  }
}

添加房间分区

此操作有助于创建一个roompartition

必填字段 :- name

Url

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

属性

id (long)
用于标识房间分区的唯一标识符

id (long)
被认为具有较大值的数字位数。

示例

234759602834500

名称 (string)
用于标识房间分区的名称[max-length: 250]

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

示例

Sample Content

描述 (string)
房间分区描述

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

示例

Sample Content

space_code (string)
用于标识房间分区的唯一名称[max-length: 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

类型 (sp_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)

room_layouts (room_layout_mapping)

包含空间中可用房间布局及其容量的集合

room_layouts (room_layout_mapping)

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

space_campus (space)

指示分区所在的校区

space_campus (space)
指示分区所在的校区

示例

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

space_building (space)

指示分区所在的建筑物

space_building (space)
指示分区所在的建筑物

示例

{
  "space_building": {
    "id": "99999000000043501",
    "name": "Signture Tower",
    "status": {
      "id": "99999000000040433"
    },
    "type": {
      "id": "99999000000036768"
    }
  }
}

space_floor (space)

指示分区所在的楼层

space_floor (space)
指示分区所在的楼层

示例

{
  "space_floor": {
    "id": "99999000000043511",
    "name": "First Floor",
    "status": {
      "id": "99999000000040433"
    },
    "type": {
      "id": "99999000000036772"
    }
  }
}

space_room (space)

指示分区所在的房间

space_room (space)
指示分区所在的房间

示例

{
  "space_room": {
    "id": "99999000000044089",
    "name": "Conference Room",
    "status": {
      "id": "99999000000040433"
    },
    "type": {
      "id": "99999000000036774"
    }
  }
}

$ curl <service domain|custom domain>/app/<portal>/api/v3/{campus_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_roompartition": {
    "site": {
      "id": "100000000000006824"
    },
    "name": "partition 1",
    "description": "first partition",
    "status": {
      "id": "100000000000040570"
    },
    "area": {
      "space_area": "600",
      "area_unit": {
        "id": "100000000000040548"
      }
    },
    "total_capacity": "10",
    "occupied_capacity": "0",
    "supervisors": [
      {
        "id": "100000000000041898"
      }
    ],
    "space_code": "part-1",
    "department": {
      "id": "100000000000038648"
    },
    "amenities": [
      {
        "id": "100000000000040461"
      },
      {
        "id": "100000000000040470"
      }
    ],
    "criticalities": [
      {
        "id": "100000000000040545"
      }
    ],
    "room_layouts": [
      {
        "layout": {
          "id": "100000000000040521"
        },
        "capacity": "5"
      },
      {
        "layout": {
          "id": "100000000000040527"
        },
        "capacity": "5"
      }
    ],
    "attachments": [
      {
        "file_id": "56"
      }
    ],
    "space_room": {
      "id": "100000000000043254"
    },
    "space_campus": {
      "id": "100000000000043080"
    },
    "space_building": {
      "id": "100000000000043152"
    },
    "space_floor": {
      "id": "100000000000043222"
    },
    "display_image": "56"
  }
}'
// Deluge Sample script
url = "<service domain|custom domain>/app/<portal>/api/v3/{campus_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_roompartition": {
    "site": {
      "id": "100000000000006824"
    },
    "name": "partition 1",
    "description": "first partition",
    "status": {
      "id": "100000000000040570"
    },
    "area": {
      "space_area": "600",
      "area_unit": {
        "id": "100000000000040548"
      }
    },
    "total_capacity": "10",
    "occupied_capacity": "0",
    "supervisors": [
      {
        "id": "100000000000041898"
      }
    ],
    "space_code": "part-1",
    "department": {
      "id": "100000000000038648"
    },
    "amenities": [
      {
        "id": "100000000000040461"
      },
      {
        "id": "100000000000040470"
      }
    ],
    "criticalities": [
      {
        "id": "100000000000040545"
      }
    ],
    "room_layouts": [
      {
        "layout": {
          "id": "100000000000040521"
        },
        "capacity": "5"
      },
      {
        "layout": {
          "id": "100000000000040527"
        },
        "capacity": "5"
      }
    ],
    "attachments": [
      {
        "file_id": "56"
      }
    ],
    "space_room": {
      "id": "100000000000043254"
    },
    "space_campus": {
      "id": "100000000000043080"
    },
    "space_building": {
      "id": "100000000000043152"
    },
    "space_floor": {
      "id": "100000000000043222"
    },
    "display_image": "56"
  }
};
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/{campus_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_roompartition": {
    "site": {
      "id": "100000000000006824"
    },
    "name": "partition 1",
    "description": "first partition",
    "status": {
      "id": "100000000000040570"
    },
    "area": {
      "space_area": "600",
      "area_unit": {
        "id": "100000000000040548"
      }
    },
    "total_capacity": "10",
    "occupied_capacity": "0",
    "supervisors": [
      {
        "id": "100000000000041898"
      }
    ],
    "space_code": "part-1",
    "department": {
      "id": "100000000000038648"
    },
    "amenities": [
      {
        "id": "100000000000040461"
      },
      {
        "id": "100000000000040470"
      }
    ],
    "criticalities": [
      {
        "id": "100000000000040545"
      }
    ],
    "room_layouts": [
      {
        "layout": {
          "id": "100000000000040521"
        },
        "capacity": "5"
      },
      {
        "layout": {
          "id": "100000000000040527"
        },
        "capacity": "5"
      }
    ],
    "attachments": [
      {
        "file_id": "56"
      }
    ],
    "space_room": {
      "id": "100000000000043254"
    },
    "space_campus": {
      "id": "100000000000043080"
    },
    "space_building": {
      "id": "100000000000043152"
    },
    "space_floor": {
      "id": "100000000000043222"
    },
    "display_image": "56"
  }
}
'@
$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/{campus_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_roompartition": {
    "site": {
      "id": "100000000000006824"
    },
    "name": "partition 1",
    "description": "first partition",
    "status": {
      "id": "100000000000040570"
    },
    "area": {
      "space_area": "600",
      "area_unit": {
        "id": "100000000000040548"
      }
    },
    "total_capacity": "10",
    "occupied_capacity": "0",
    "supervisors": [
      {
        "id": "100000000000041898"
      }
    ],
    "space_code": "part-1",
    "department": {
      "id": "100000000000038648"
    },
    "amenities": [
      {
        "id": "100000000000040461"
      },
      {
        "id": "100000000000040470"
      }
    ],
    "criticalities": [
      {
        "id": "100000000000040545"
      }
    ],
    "room_layouts": [
      {
        "layout": {
          "id": "100000000000040521"
        },
        "capacity": "5"
      },
      {
        "layout": {
          "id": "100000000000040527"
        },
        "capacity": "5"
      }
    ],
    "attachments": [
      {
        "file_id": "56"
      }
    ],
    "space_room": {
      "id": "100000000000043254"
    },
    "space_campus": {
      "id": "100000000000043080"
    },
    "space_building": {
      "id": "100000000000043152"
    },
    "space_floor": {
      "id": "100000000000043222"
    },
    "display_image": "56"
  }
}'''
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_roompartition": {
        "occupied_capacity": "0",
        "common_module": "space_roompartition",
        "amenities": [
            {
                "name": "Indoor Games",
                "description": null,
                "id": "100000000000040461",
                "icon_name": "indoor_games"
            },
            {
                "name": "Laundry",
                "description": null,
                "id": "100000000000040470",
                "icon_name": "laundry"
            }
        ],
        "attachments": [
            {
                "size": "168712",
                "content_type": "image/png",
                "file_id": "56",
                "name": "Screenshot 2025-01-24 at 1.04.50\u202fPM (2).png",
                "content_url": "/space_roompartitions/100000000000043304/_uploads/56",
                "id": "100000000000043310"
            }
        ],
        "space_building": {
            "name": "Signature Tower",
            "id": "100000000000043152",
            "type": {
                "id": "100000000000037122"
            }
        },
        "description": "first partition",
        "space_code": "part-1",
        "criticalities": [
            {
                "name": "Explosive",
                "description": "The Space contains explosive material.",
                "id": "100000000000040545",
                "icon_name": "explosive"
            }
        ],
        "type": {
            "api_plural_name": "space_roompartitions",
            "name": "space_roompartition",
            "display_name_plural": "sdp.module.pluralname.partition",
            "id": "100000000000037130",
            "display_name": "Partition",
            "icon_name": null
        },
        "last_updated_by": null,
        "id": "100000000000043304",
        "department": {
            "site": {
                "id": "100000000000006824"
            },
            "name": "Space",
            "id": "100000000000038648"
        },
        "display_image": "56",
        "total_capacity": "10",
        "space_campus": {
            "name": "Estancia",
            "id": "100000000000043080",
            "type": {
                "id": "100000000000037120"
            }
        },
        "area": {
            "area_unit": {
                "deleted": false,
                "name": "Sq.meter",
                "id": "100000000000040548",
                "is_default": true
            },
            "space_area": "600"
        },
        "created_time": {
            "display_value": "Jan 30, 2025 01:43 PM",
            "value": "1738224830228"
        },
        "is_room_partitionable": null,
        "space_room": {
            "name": "Conference hall",
            "id": "100000000000043254",
            "type": {
                "id": "100000000000037128"
            }
        },
        "is_floating_capacity": 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": 10,
        "room_layouts": [
            {
                "layout": {
                    "name": "Boardroom",
                    "description": "Centrally located table.",
                    "id": "100000000000040521",
                    "icon_name": "boardroom"
                },
                "id": "100000000000043306",
                "capacity": 5
            },
            {
                "layout": {
                    "name": "Classroom",
                    "description": "Groups have separate tables.",
                    "id": "100000000000040527",
                    "icon_name": "classroom"
                },
                "id": "100000000000043308",
                "capacity": 5
            }
        ],
        "space_floor": {
            "name": "Ground floor",
            "id": "100000000000043222",
            "type": {
                "id": "100000000000037126"
            }
        },
        "site": {
            "deleted": false,
            "name": "Base Site",
            "id": "100000000000006824",
            "is_default": true
        },
        "last_updated_time": null,
        "available_partition_capacity": null,
        "name": "partition 1",
        "partition_capacity": null,
        "status": {
            "color": "#00C408",
            "name": "Active",
            "id": "100000000000040570"
        },
        "supervisors": [
            {
                "email_id": "john.roberts@zylker.com",
                "is_technician": true,
                "sms_mail": null,
                "mobile": null,
                "last_name": "Roberts",
                "user_scope": "internal_user",
                "sms_mail_id": null,
                "cost_per_hour": "0",
                "site": {
                    "id": "100000000000006824"
                },
                "phone": null,
                "employee_id": "1003",
                "name": "John Roberts",
                "id": "100000000000041898",
                "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": "John",
                "job_title": null
            }
        ]
    }
}

编辑房间分区

此操作有助于编辑一个roompartition

Url

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

属性

id (long)
用于标识房间分区的唯一标识符

id (long)
被认为具有较大值的数字位数。

示例

234759602834500

名称 (string)
用于标识房间分区的名称[max-length: 250]

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

示例

Sample Content

描述 (string)
房间分区描述

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

示例

Sample Content

space_code (string)
用于标识房间分区的唯一名称[max-length: 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

类型 (sp_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)

room_layouts (room_layout_mapping)

包含空间中可用房间布局及其容量的集合

room_layouts (room_layout_mapping)

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

space_campus (space)

指示分区所在的校区

space_campus (space)
指示分区所在的校区

示例

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

space_building (space)

指示分区所在的建筑物

space_building (space)
指示分区所在的建筑物

示例

{
  "space_building": {
    "id": "99999000000043501",
    "name": "Signture Tower",
    "status": {
      "id": "99999000000040433"
    },
    "type": {
      "id": "99999000000036768"
    }
  }
}

space_floor (space)

指示分区所在的楼层

space_floor (space)
指示分区所在的楼层

示例

{
  "space_floor": {
    "id": "99999000000043511",
    "name": "First Floor",
    "status": {
      "id": "99999000000040433"
    },
    "type": {
      "id": "99999000000036772"
    }
  }
}

space_room (space)

指示分区所在的房间

space_room (space)
指示分区所在的房间

示例

{
  "space_room": {
    "id": "99999000000044089",
    "name": "Conference Room",
    "status": {
      "id": "99999000000040433"
    },
    "type": {
      "id": "99999000000036774"
    }
  }
}

$ curl <service domain|custom domain>/app/<portal>/api/v3/space_roompartitions/{partition_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_roompartition": {
    "description": "Situated in Guduvancherry"
  }
}'
// Deluge Sample script
url = "<service domain|custom domain>/app/<portal>/api/v3/space_roompartitions/{partition_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_roompartition": {
    "description": "Situated in 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/space_roompartitions/{partition_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_roompartition": {
    "description": "Situated in 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/space_roompartitions/{partition_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_roompartition": {
    "description": "Situated in 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_roompartition": {
        "occupied_capacity": "0",
        "common_module": "space_roompartition",
        "amenities": [
            {
                "name": "Indoor Games",
                "description": null,
                "id": "100000000000040461",
                "icon_name": "indoor_games"
            },
            {
                "name": "Laundry",
                "description": null,
                "id": "100000000000040470",
                "icon_name": "laundry"
            }
        ],
        "attachments": [
            {
                "size": "168712",
                "content_type": "image/png",
                "file_id": "56",
                "name": "Screenshot 2025-01-24 at 1.04.50\u202fPM (2).png",
                "content_url": "/space_roompartitions/100000000000043304/_uploads/56",
                "id": "100000000000043310"
            }
        ],
        "space_building": {
            "name": "Signature Tower",
            "id": "100000000000043152",
            "type": {
                "id": "100000000000037122"
            }
        },
        "description": "Situated in Guduvancherry",
        "space_code": "part-1",
        "criticalities": [
            {
                "name": "Explosive",
                "description": "The Space contains explosive material.",
                "id": "100000000000040545",
                "icon_name": "explosive"
            }
        ],
        "type": {
            "api_plural_name": "space_roompartitions",
            "name": "space_roompartition",
            "display_name_plural": "sdp.module.pluralname.partition",
            "id": "100000000000037130",
            "display_name": "Partition",
            "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": "100000000000043304",
        "department": {
            "site": {
                "id": "100000000000006824"
            },
            "name": "Space",
            "id": "100000000000038648"
        },
        "display_image": "56",
        "total_capacity": "10",
        "space_campus": {
            "name": "Estancia",
            "id": "100000000000043080",
            "type": {
                "id": "100000000000037120"
            }
        },
        "area": {
            "area_unit": {
                "deleted": false,
                "name": "Sq.meter",
                "id": "100000000000040548",
                "is_default": true
            },
            "space_area": "600"
        },
        "created_time": {
            "display_value": "Jan 30, 2025 01:43 PM",
            "value": "1738224830228"
        },
        "is_room_partitionable": null,
        "space_room": {
            "name": "Conference hall",
            "id": "100000000000043254",
            "type": {
                "id": "100000000000037128"
            }
        },
        "is_floating_capacity": 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": 10,
        "room_layouts": [
            {
                "layout": {
                    "name": "Boardroom",
                    "description": "Centrally located table.",
                    "id": "100000000000040521",
                    "icon_name": "boardroom"
                },
                "id": "100000000000043306",
                "capacity": 5
            },
            {
                "layout": {
                    "name": "Classroom",
                    "description": "Groups have separate tables.",
                    "id": "100000000000040527",
                    "icon_name": "classroom"
                },
                "id": "100000000000043308",
                "capacity": 5
            }
        ],
        "space_floor": {
            "name": "Ground floor",
            "id": "100000000000043222",
            "type": {
                "id": "100000000000037126"
            }
        },
        "site": {
            "deleted": false,
            "name": "Base Site",
            "id": "100000000000006824",
            "is_default": true
        },
        "last_updated_time": {
            "display_value": "Jan 30, 2025 01:46 PM",
            "value": "1738224962769"
        },
        "available_partition_capacity": null,
        "name": "partition 1",
        "partition_capacity": null,
        "status": {
            "color": "#00C408",
            "name": "Active",
            "id": "100000000000040570"
        },
        "supervisors": [
            {
                "email_id": "john.roberts@zylker.com",
                "is_technician": true,
                "sms_mail": null,
                "mobile": null,
                "last_name": "Roberts",
                "user_scope": "internal_user",
                "sms_mail_id": null,
                "cost_per_hour": "0",
                "site": {
                    "id": "100000000000006824"
                },
                "phone": null,
                "employee_id": "1003",
                "name": "John Roberts",
                "id": "100000000000041898",
                "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": "John",
                "job_title": null
            }
        ]
    }
}

获取房间分区

此操作有助于获取单个roompartition

Url

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

属性

id (long)
用于标识房间分区的唯一标识符

id (long)
被认为具有较大值的数字位数。

示例

234759602834500

名称 (string)
用于标识房间分区的名称[max-length: 250]

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

示例

Sample Content

描述 (string)
房间分区描述

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

示例

Sample Content

space_code (string)
用于标识房间分区的唯一名称[max-length: 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

类型 (sp_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)

room_layouts (room_layout_mapping)

包含空间中可用房间布局及其容量的集合

room_layouts (room_layout_mapping)

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

space_campus (space)

指示分区所在的校区

space_campus (space)
指示分区所在的校区

示例

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

space_building (space)

指示分区所在的建筑物

space_building (space)
指示分区所在的建筑物

示例

{
  "space_building": {
    "id": "99999000000043501",
    "name": "Signture Tower",
    "status": {
      "id": "99999000000040433"
    },
    "type": {
      "id": "99999000000036768"
    }
  }
}

space_floor (space)

指示分区所在的楼层

space_floor (space)
指示分区所在的楼层

示例

{
  "space_floor": {
    "id": "99999000000043511",
    "name": "First Floor",
    "status": {
      "id": "99999000000040433"
    },
    "type": {
      "id": "99999000000036772"
    }
  }
}

space_room (space)

指示分区所在的房间

space_room (space)
指示分区所在的房间

示例

{
  "space_room": {
    "id": "99999000000044089",
    "name": "Conference Room",
    "status": {
      "id": "99999000000040433"
    },
    "type": {
      "id": "99999000000036774"
    }
  }
}

$ curl -G <service domain|custom domain>/app/<portal>/api/v3/space_roompartitions/{partition_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/space_roompartitions/{partition_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/space_roompartitions/{partition_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/space_roompartitions/{partition_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_roompartition": {
        "occupied_capacity": "0",
        "common_module": "space_roompartition",
        "amenities": [
            {
                "name": "Indoor Games",
                "description": null,
                "id": "100000000000040461",
                "icon_name": "indoor_games"
            },
            {
                "name": "Laundry",
                "description": null,
                "id": "100000000000040470",
                "icon_name": "laundry"
            }
        ],
        "attachments": [
            {
                "size": "168712",
                "content_type": "image/png",
                "file_id": "56",
                "name": "Screenshot 2025-01-24 at 1.04.50\u202fPM (2).png",
                "content_url": "/space_roompartitions/100000000000043304/_uploads/56",
                "id": "100000000000043310"
            }
        ],
        "space_building": {
            "name": "Signature Tower",
            "id": "100000000000043152",
            "type": {
                "id": "100000000000037122"
            }
        },
        "description": "first partition",
        "space_code": "part-1",
        "criticalities": [
            {
                "name": "Explosive",
                "description": "The Space contains explosive material.",
                "id": "100000000000040545",
                "icon_name": "explosive"
            }
        ],
        "type": {
            "api_plural_name": "space_roompartitions",
            "name": "space_roompartition",
            "display_name_plural": "sdp.module.pluralname.partition",
            "id": "100000000000037130",
            "display_name": "Partition",
            "icon_name": null
        },
        "last_updated_by": null,
        "id": "100000000000043304",
        "department": {
            "site": {
                "id": "100000000000006824"
            },
            "name": "Space",
            "id": "100000000000038648"
        },
        "display_image": "56",
        "total_capacity": "10",
        "space_campus": {
            "name": "Estancia",
            "id": "100000000000043080",
            "type": {
                "id": "100000000000037120"
            }
        },
        "area": {
            "area_unit": {
                "deleted": false,
                "name": "Sq.meter",
                "id": "100000000000040548",
                "is_default": true
            },
            "space_area": "600"
        },
        "created_time": {
            "display_value": "Jan 30, 2025 01:43 PM",
            "value": "1738224830228"
        },
        "is_room_partitionable": null,
        "space_room": {
            "name": "Conference hall",
            "id": "100000000000043254",
            "type": {
                "id": "100000000000037128"
            }
        },
        "is_floating_capacity": 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": 10,
        "room_layouts": [
            {
                "layout": {
                    "name": "Boardroom",
                    "description": "Centrally located table.",
                    "id": "100000000000040521",
                    "icon_name": "boardroom"
                },
                "id": "100000000000043306",
                "capacity": 5
            },
            {
                "layout": {
                    "name": "Classroom",
                    "description": "Groups have separate tables.",
                    "id": "100000000000040527",
                    "icon_name": "classroom"
                },
                "id": "100000000000043308",
                "capacity": 5
            }
        ],
        "space_floor": {
            "name": "Ground floor",
            "id": "100000000000043222",
            "type": {
                "id": "100000000000037126"
            }
        },
        "site": {
            "deleted": false,
            "name": "Base Site",
            "id": "100000000000006824",
            "is_default": true
        },
        "last_updated_time": null,
        "available_partition_capacity": null,
        "name": "partition 1",
        "partition_capacity": null,
        "status": {
            "color": "#00C408",
            "name": "Active",
            "id": "100000000000040570"
        },
        "supervisors": [
            {
                "email_id": "john.roberts@zylker.com",
                "is_technician": true,
                "sms_mail": null,
                "mobile": null,
                "last_name": "Roberts",
                "user_scope": "internal_user",
                "sms_mail_id": null,
                "cost_per_hour": "0",
                "site": {
                    "id": "100000000000006824"
                },
                "phone": null,
                "employee_id": "1003",
                "name": "John Roberts",
                "id": "100000000000041898",
                "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": "John",
                "job_title": null
            }
        ]
    }
}

获取房间分区列表

此操作有助于获取所有roompartitions的列表

Url

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

属性

id (long)
用于标识房间分区的唯一标识符

id (long)
被认为具有较大值的数字位数。

示例

234759602834500

名称 (string)
用于标识房间分区的名称[max-length: 250]

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

示例

Sample Content

描述 (string)
房间分区描述

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

示例

Sample Content

space_code (string)
用于标识房间分区的唯一名称[max-length: 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

类型 (sp_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)

room_layouts (room_layout_mapping)

包含空间中可用房间布局及其容量的集合

room_layouts (room_layout_mapping)

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

space_campus (space)

指示分区所在的校区

space_campus (space)
指示分区所在的校区

示例

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

space_building (space)

指示分区所在的建筑物

space_building (space)
指示分区所在的建筑物

示例

{
  "space_building": {
    "id": "99999000000043501",
    "name": "Signture Tower",
    "status": {
      "id": "99999000000040433"
    },
    "type": {
      "id": "99999000000036768"
    }
  }
}

space_floor (space)

指示分区所在的楼层

space_floor (space)
指示分区所在的楼层

示例

{
  "space_floor": {
    "id": "99999000000043511",
    "name": "First Floor",
    "status": {
      "id": "99999000000040433"
    },
    "type": {
      "id": "99999000000036772"
    }
  }
}

space_room (space)

指示分区所在的房间

space_room (space)
指示分区所在的房间

示例

{
  "space_room": {
    "id": "99999000000044089",
    "name": "Conference Room",
    "status": {
      "id": "99999000000040433"
    },
    "type": {
      "id": "99999000000036774"
    }
  }
}

$ curl -G <service domain|custom domain>/app/<portal>/api/v3/space_roompartitions\
      -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_roompartitions";
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_roompartitions"
$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_roompartitions"
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())
{
  "response_status": [
    {
      "status_code": 2000,
      "status": "success"
    }
  ],
  "list_info": {
    "has_more_rows": false,
    "sort_field": "name",
    "row_count": 2
  },
  "space_roompartitions": [
    {
      "occupied_capacity": "0",
      "common_module": "space_roompartition",
      "space_building": {
        "name": "Signature Tower",
        "id": "100000000000043152",
        "type": {
          "id": "100000000000037122"
        }
      },
      "description": "first partition",
      "space_code": null,
      "type": {
        "api_plural_name": "space_roompartitions",
        "name": "space_roompartition",
        "display_name_plural": "sdp.module.pluralname.partition",
        "id": "100000000000037130",
        "display_name": "Partition",
        "icon_name": null
      },
      "last_updated_by": null,
      "id": "100000000000043324",
      "department": {
        "site": {
          "id": "100000000000006824"
        },
        "name": "Space",
        "id": "100000000000038648"
      },
      "display_image": null,
      "total_capacity": "10",
      "space_campus": {
        "name": "Estancia",
        "id": "100000000000043080",
        "type": {
          "id": "100000000000037120"
        }
      },
      "area": {
        "area_unit": {
          "deleted": false,
          "name": "Sq.meter",
          "id": "100000000000040548",
          "is_default": true
        },
        "space_area": "600"
      },
      "created_time": {
        "display_value": "Jan 30, 2025 01:45 PM",
        "value": "1738224924606"
      },
      "is_room_partitionable": null,
      "space_room": {
        "name": "Conference hall",
        "id": "100000000000043254",
        "type": {
          "id": "100000000000037128"
        }
      },
      "is_floating_capacity": 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": 10,
      "space_floor": {
        "name": "Ground floor",
        "id": "100000000000043222",
        "type": {
          "id": "100000000000037126"
        }
      },
      "site": {
        "deleted": false,
        "name": "Base Site",
        "id": "100000000000006824",
        "is_default": true
      },
      "last_updated_time": null,
      "available_partition_capacity": null,
      "name": "Copy of partition 1-1",
      "partition_capacity": null,
      "status": {
        "color": "#00C408",
        "name": "Active",
        "id": "100000000000040570"
      }
    },
    {
      "occupied_capacity": "0",
      "common_module": "space_roompartition",
      "space_building": {
        "name": "Signature Tower",
        "id": "100000000000043152",
        "type": {
          "id": "100000000000037122"
        }
      },
      "description": "Situated in Guduvancherry",
      "space_code": "part-1",
      "type": {
        "api_plural_name": "space_roompartitions",
        "name": "space_roompartition",
        "display_name_plural": "sdp.module.pluralname.partition",
        "id": "100000000000037130",
        "display_name": "Partition",
        "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": "100000000000043304",
      "department": {
        "site": {
          "id": "100000000000006824"
        },
        "name": "Space",
        "id": "100000000000038648"
      },
      "display_image": "56",
      "total_capacity": "10",
      "space_campus": {
        "name": "Estancia",
        "id": "100000000000043080",
        "type": {
          "id": "100000000000037120"
        }
      },
      "area": {
        "area_unit": {
          "deleted": false,
          "name": "Sq.meter",
          "id": "100000000000040548",
          "is_default": true
        },
        "space_area": "600"
      },
      "created_time": {
        "display_value": "Jan 30, 2025 01:43 PM",
        "value": "1738224830228"
      },
      "is_room_partitionable": null,
      "space_room": {
        "name": "Conference hall",
        "id": "100000000000043254",
        "type": {
          "id": "100000000000037128"
        }
      },
      "is_floating_capacity": 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": 10,
      "space_floor": {
        "name": "Ground floor",
        "id": "100000000000043222",
        "type": {
          "id": "100000000000037126"
        }
      },
      "site": {
        "deleted": false,
        "name": "Base Site",
        "id": "100000000000006824",
        "is_default": true
      },
      "last_updated_time": {
        "display_value": "Jan 30, 2025 01:46 PM",
        "value": "1738224962769"
      },
      "available_partition_capacity": null,
      "name": "partition 1",
      "partition_capacity": null,
      "status": {
        "color": "#00C408",
        "name": "Active",
        "id": "100000000000040570"
      }
    }
  ]
}

删除房间分区

此操作允许删除roompartition

Url

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

$ curl <service domain|custom domain>/app/<portal>/api/v3/space_roompartitions/{partition_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/space_roompartitions/{partition_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/space_roompartitions/{partition_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/space_roompartitions/{partition_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"
  }
}