gpt4 book ai didi

rest - 从 REST API 创建作业返回请求属性名称错误

转载 作者:行者123 更新时间:2023-12-01 23:55:48 25 4
gpt4 key购买 nike

我已准备好 Assets 和媒体处理器。现在我正在尝试对我的 Assets 进行编码。当我发送教程中指定的请求时 (http://msdn.microsoft.com/en-us/library/jj129574.aspx):

{
"Name":"CurlTestJob",
"InputMediaAssets":[
{
"__metadata":{
"uri":"https://wamsbluclus001rest-hs.cloudapp.net/api/Assets('nb%3Acid%3AUUID%3A429967f5-4709-4377-bab2-4680ae2a0dd87')"
}
}
],
"Tasks":[
{
"Configuration":"H.264 HD 720p VBR",
"MediaProcessorId":"nb%3Ampid%3AUUID%3A2e7aa8f3-4961-4e0c-b4db-0e0439e524f5",
"TaskBody":"<?xml version=\"1.0\" encoding=\"utf-8\"?><taskBody><inputAsset>JobInputAsset(0)</inputAsset><outputAsset>JobOutputAsset(0)</outputAsset></taskBody>"
}
]
}

我收到以下回复

{
"odata.error":
{
code: "";
message:
{
lang: "en-US";
value: "Parsing request content failed due to: Make sure to only use property names that are defined by the type";
};
};
}

我使用的是 api 版本 2.2

有人可以向我解释一下我错在哪里吗?

最佳答案

尝试设置 header “DataServiceVersion:2.0”

我在使用“DataServiceVersion: 3.0”时遇到了同样的问题

关于rest - 从 REST API 创建作业返回请求属性名称错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23941702/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com