0
我打電話給/data/v1/projects /:ProjectId:/ storage端點來爲Data Management API創建一個新的存儲條目,但我收到了無效/缺少的參數。上傳新項目需要的標題和正文是什麼?
需要的標題&這個呼叫的正文工作?
我打電話給/data/v1/projects /:ProjectId:/ storage端點來爲Data Management API創建一個新的存儲條目,但我收到了無效/缺少的參數。上傳新項目需要的標題和正文是什麼?
需要的標題&這個呼叫的正文工作?
呼叫終端/數據/ V1 /項目/:專案編號:/存儲與
頁眉:
'Authorization': 'Bearer ' + token,
'Content-Type': 'application/vnd.api+json',
'Accept': 'application/vnd.api+json'
身體:
{
data: {
type: 'object',
attributes: {
name: theFileNameHere
},
relationships: {
target: {
data: {
type: 'folders',
id: folderIdHere
}
}
}
}
}
更多細節here