2017-03-05 5 views
0

タスクに関連するタグを更新しようとすると:Updateタスク - 変更タグ

要求:

PUT https://app.asana.com/api/1.0/tasks/286045228787956 

要求ペイロード:

{"data":{"tags":[157484377992312,157484408318898,285998759647376]}} 

は応答:400 本体:

{"errors":[{"message":"tags: Cannot write this property","help":"For more information on API status codes and how to handle them, read the docs on errors: https://asana.com/developers/documentation/getting-started/errors"}]} 

私たちは編集できませんか? tタスクタグ?または間違ったパラメータを渡していますか?

ドキュメントが助けにはならない:https://asana.com/developers/api-reference/tasks#update

答えて

1

タスクにタグを編集するためには、in a different section of the documentation you referencedを説明するように、エンドポイント

POST /tasks/<id>/addTag 
POST /tasks/<id>/removeTag 

を使用する必要があります。

ペイロードが

{"data":{"tag":<your_tag_id>}} 
にする必要があります
関連する問題