API說明

API位置 /new_ezding/contents/update/{content_id}
需求描述 刪除站台內容
傳輸物件格式 json
方法 DELETE

範例

curl -X DELETE   \
-H " X-Ftcsys-key: {KEY}" \
-H " X-Ftc-Authorization: {token}" \
-H " X-Accept-Language: {language}" \
-H " Content-Type: application/json" \
-d '{
"status": 2
}
https://{endpoint}/new_ezding/contents/update/{content_id}

回傳範例 - 刪除成功

< HTTP/1.1 200 OK
< Content-Type: application/json; charset=UTF-8
{
  "result": "",
  "code": 200,
  "status": "success"
}

回傳錯誤 - 刪除失敗

< HTTP/1.1 400 Bad Request
< Content-Type: application/json; charset=UTF-8
{
  "code": 400,
  "message": "刪除失敗",
  "status": "failure"
}

接收json參數

參數 名稱 範例 必填 備註
content_id 內容ID 512 Y
status 狀態 2 Y 2:無效

results matching ""

    No results matching ""