1
我试图通过api创建一个新任务。工作区:不正确的类型
呼叫是:
卷曲-u my_token:https://app.asana.com/api/1.0/tasks -d “名称= demo_task” -d “工作区= 875236917006”
,这是响应:
{ “错误”:[{“message”:“workspace:Not the type type”}]}
我在哪里错了?
我试图通过api创建一个新任务。工作区:不正确的类型
呼叫是:
卷曲-u my_token:https://app.asana.com/api/1.0/tasks -d “名称= demo_task” -d “工作区= 875236917006”
,这是响应:
{ “错误”:[{“message”:“workspace:Not the type type”}]}
我在哪里错了?
(我在体位工作)
您提供了workspace
并不是指工作空间的ID,它指的是别的东西。也许你正在给它传递一个项目ID呢?
尝试运行curl -u my_token: https://app.asana.com/api/1.0/workspaces
它会给你一个你所在工作区的列表。你传入的ID必须是其中的一个。
现在工作,谢谢! 我使用了来自网络应用程序url的工作区ID ... – Vinicius