orchestrator
2023.10
false
- 入门指南
- 身份验证
- Swagger 定义
- Orchestrator API
- 平台管理 API
重要 :
新发布内容的本地化可能需要 1-2 周的时间才能完成。

Orchestrator API 指南
上次更新日期 2026年3月24日
日历请求
根据名称检索日历
以下对 /odata/Calendars 端点的 GET 请求根据其 Name检索特定日历。
获取
https://{yourDomain}/odata/Calendars?$filter=Name%20eq%20'BankHoliday'
请求标头
| 密钥 | 值 |
|---|---|
| 授权 | 承载 |
响应代码
200 OK
响应正文
{
"@odata.context": "https://{yourDomain}/odata/$metadata#Calendars",
"value": [
{
"TimeZoneId": null,
"ExcludedDates": [],
"Name": "BankHoliday",
"Id": 18845
}
]
}
{
"@odata.context": "https://{yourDomain}/odata/$metadata#Calendars",
"value": [
{
"TimeZoneId": null,
"ExcludedDates": [],
"Name": "BankHoliday",
"Id": 18845
}
]
}
创建日历
通过以下对 /odata/Calendars 端点的 POST 请求,您可以创建具有排除日期的新日历。
备注:
Id 参数会自动生成。TimeZoneId 参数会填充租户的时区。
发布
https://{yourDomain}/odata/Calendars
请求标头
| 密钥 | 值 |
|---|---|
| 授权 | 承载 |
请求正文
{
"Name": "VacationCal",
"TimeZoneId": "string",
"ExcludedDates": [
"2019-11-12T14:31:44.778Z"
]
}
{
"Name": "VacationCal",
"TimeZoneId": "string",
"ExcludedDates": [
"2019-11-12T14:31:44.778Z"
]
}
响应代码
200 OK
响应正文
{
"@odata.context": "https://{yourDomain}/odata/$metadata#Calendars/$entity",
"TimeZoneId": "GTB Standard Time",
"ExcludedDates": [
"2019-11-12T00:00:00Z"
],
"Name": "VacationCal",
"Id": 32718
}
{
"@odata.context": "https://{yourDomain}/odata/$metadata#Calendars/$entity",
"TimeZoneId": "GTB Standard Time",
"ExcludedDates": [
"2019-11-12T00:00:00Z"
],
"Name": "VacationCal",
"Id": 32718
}
检索日历中排除的日期
GET /odata/Calendars({calendar_id_value}) 端点检索指定日历的排除日期。
使用日历 Id 指定要从中检索排除日期的日历。
要查找租户中现有日历的 Id,请先向 /odata/Calendars 端点发出 GET 请求。
确定所需的日历并复制响应正文中的 Id 值。
获取
https://{yourDomain}/odata/Calendars
请求标头
| 密钥 | 值 |
|---|---|
| 授权 | 承载 |
响应代码
200 OK
响应正文
{
"@odata.context": "https://{yourDomain}/odata/$metadata#Calendars",
"value": [
{
"TimeZoneId": null,
"ExcludedDates": [],
"Name": "November_excluded_dates",
"Id": 1461
}
]
}
{
"@odata.context": "https://{yourDomain}/odata/$metadata#Calendars",
"value": [
{
"TimeZoneId": null,
"ExcludedDates": [],
"Name": "November_excluded_dates",
"Id": 1461
}
]
}
要查看排除的日期,请向 /odata/Calendars({calendar_id_value})发出 GET 请求。
将 {calendar_id_value} 替换为先前复制的 Id 值。
响应正文将返回指定日历中已排除的所有日期。
例如,对于 ID 值为 1461的日历,请求如下所示:
获取
https://{yourDomain}/odata/Calendars(1461)
请求标头
| 密钥 | 值 |
|---|---|
| 授权 | 承载 |
响应代码
200 OK
响应正文
{
"@odata.context": "https://{yourDomain}/odata/$metadata#Calendars/$entity",
"TimeZoneId": "UTC",
"ExcludedDates": [
"2021-11-01T00:00:00Z",
"2021-11-04T00:00:00Z",
"2021-11-08T00:00:00Z",
"2021-11-11T00:00:00Z",
"2021-11-15T00:00:00Z",
"2021-11-18T00:00:00Z",
"2021-11-22T00:00:00Z",
"2021-11-25T00:00:00Z"
],
"Name": "November_excluded_dates",
"Id": 1461
}
{
"@odata.context": "https://{yourDomain}/odata/$metadata#Calendars/$entity",
"TimeZoneId": "UTC",
"ExcludedDates": [
"2021-11-01T00:00:00Z",
"2021-11-04T00:00:00Z",
"2021-11-08T00:00:00Z",
"2021-11-11T00:00:00Z",
"2021-11-15T00:00:00Z",
"2021-11-18T00:00:00Z",
"2021-11-22T00:00:00Z",
"2021-11-25T00:00:00Z"
],
"Name": "November_excluded_dates",
"Id": 1461
}