You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

使用Wix REST API创建草稿帖时遇媒体ID不存在错误求助

Wix REST API创建博客草稿帖异常:测试Token可用,Access Token报媒体ID不存在错误

调用Wix REST API创建博客草稿帖时遇到异常:按照官方文档操作,使用测试Token可以成功创建草稿帖,但使用Access Token发起请求时,收到错误提示:

"Invalid argument, the media with the id does not exist"

我录制了操作步骤及错误情况的演示视频,同时附上创建草稿帖的请求JSON代码:

{"draftPost": {"id": "b6ab9f89-762e-410f-ab80-1546777b2c30","title": "Test","featured": false,"categoryIds": [],"coverMedia": {"enabled": true,"image": {"id": "de1844_7923926668b546639a2628d66428e17e~mv2.png","url": "https://static.wixstatic.com/media/de1844_7923926668b546639a2628d66428e17e~mv2.png","height": 594,"width": 593,"filename": "imagen.png"},"displayed": true,"custom": false},"memberId": "xxxxxxxx","hashtags": [],"commentingEnabled": true,"minutesToRead": 3,"tagIds": [],"relatedPostIds": [],"pricingPlanIds": [],"language": "es","changeOrigin": "PUBLISH","contentId": "68487cae14f5ed112189171d","editingSessionId": "950a1062-ff31-4b0c-a49e-e5ca58e8abb0","status": "PUBLISHED","mostRecentContributorId": "89ce5c73-af13-4bb6-a436-59a79f75435d","hasUnpublishedChanges": false,"editedDate": "2025-06-10T18:42:54.093Z","firstPublishedDate": "2025-06-10T18:42:54.118Z","seoData": {"tags": [{"type": "title","children": "Innovación Educativa: Educación Global con Tecnología Emergente en el II Seminario Internacional.","custom": false,"disabled": false},{"type": "meta","props": {"name": "description","content": "Explora cómo la educación global con tecnología emergente está transformando el aprendizaje en el II Seminario Internacional. Descubre innovaciones educativas que preparan a los estudiantes para un mundo interconectado."},"children": "","custom": false,"disabled": false},{"type": "meta","props": {"property": "og:image","content": "https://static.wixstatic.com/media/de1844_fa1da9fd79944ec892096d6e191f0d3a~mv2.png"},"meta": {"width": 593,"height": 592},"children": "","custom": false,"disabled": false}],"settings": {"preventAutoRedirect": false,"keywords": [{"term": "Educación global con tecnología emergente","isMain": true}]}},"slugs": ["educacion-global-con-tecnologia-emergente"],"createdDate": "2025-06-10T18:14:11.354Z","seoSlug": "educacion-global-con-tecnologia-emergente","media": {"wixMedia": {"image": {"id": "de1844_7923926668b546639a2628d66428e17e~mv2.png","url": "https://static.wixstatic.com/media/de1844_7923926668b546639a2628d66428e17e~mv2.png","height": 594,"width": 593,"filename": "imagen.png"}},"displayed": true,"custom": false},"translations": []},"publish": false,"fieldsets": []}

想请教:测试Token和Access Token之间的差异为何会导致这个问题?是否有其他开发者遇到过类似情况?或者我是否遗漏了Access Token的特定使用要求?盼提供见解或解决方案。


内容的提问来源于stack exchange,提问作者The Memebot

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.12 20:35:56