英文:
How to register schema extension for "Chat" resource type in graph api
问题
我正在尝试使用 schemaExtension 在 MS Graph 中为 Chat 资源类型添加新属性,但是当我尝试为 chat 资源类型注册 schema 扩展时,我收到了以下错误:
HTTP Post - https://graph.microsoft.com/v1.0/schemaExtensions
Body -
{
"id": "<extensionId>",
"description": "<extensionDescription>",
"targetTypes": [
"Chat"
],
"properties": [
{
"name": "<customPropertyName>",
"type": "String"
}
]
}
Error -
{
"error": {
"code": "BadRequest",
"message": "Argument targetType chat is invalid.",
"innerError": {
"date": "2023-06-21T12:39:41",
"request-id": "<request-id>",
"client-request-id": "<client-request-id>"
}
}
}
如需进一步帮助,请提出具体问题。
英文:
I am trying to add a new property to the Chat resource type in MS graph using schemaExtention, however when I try to register schema extension for a chat resource type I get an error
HTTP Post - https://graph.microsoft.com/v1.0/schemaExtensions
Body -
{
"id": "<extensionId>",
"description": "<extensionDescription>",
"targetTypes": [
"Chat"
],
"properties": [
{
"name": "<customPropertyName>",
"type": "String"
}
]
}
Error -
{
"error": {
"code": "BadRequest",
"message": "Argument targetType chat is invalid.",
"innerError": {
"date": "2023-06-21T12:39:41",
"request-id": "<request-id>",
"client-request-id": "<client-request-id>"
}
}
}
答案1
得分: 1
Schema extensions are not supported by chat
resource type.
Supported resource types are user
, group
, administrativeUnit
, application
, contact
, device
, event
, message
, organization
, and post
.
Documentation:
英文:
Schema extensions are not supported by chat
resource type.
Supported resource types are user
, group
, administrativeUnit
, application
, contact
, device
, event
, message
, organization
and post
.
Documentation:
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论