subscription 资源定义了一个订阅的属性。
JSON 表示形式
{
"id": "string",
"clientState": "optional string",
"expirationDateTime": "datetime",
"notificationUrl": "url",
"resource": "relativePath",
"changeType": "updated"
}
属性
| 属性名称 | 类型 | 说明 |
|---|---|---|
| id | String | subscription 资源的唯一标识符。 只读。 |
| clientState | 字符串 - 可选 | 可选字符串值重新传入此订阅的通知消息。 |
| expirationDateTime | DateTime | 未更新或续订的订阅的到期日期和时间。 |
| notificationUrl | String | 通知应传递到的 URL(如果已指定 notificationType,则为必需属性)。 |
| resource | String | 驱动器内的订阅相对路径。 只读。 |
| changeType | String | 应触发生成此订阅通知的更改的类型。 OneDrive 仅支持 updated。 |