通过Active Collab API将Comment.created_by设置为其他用户

时间:2016-09-16 15:29:57

标签: api activecollab

使用Active Collab API,是否可以代表其他用户创建评论?通过设置created_by_id可以与其他所有内容一样。

使用:

POST http://AC-SERVER/api/v1/comments/discussion/30 HTTP/1.1
{"body":"TEST","created_by_id":5,"updated_by_id":5}

创建者没有正确设置(使用其他所有数据类型,它运行良好):

{"single":
  {"id":81,
   "class":"Comment",
   "url_path":"\/comments\/81",
   "attachments":[],
   "is_trashed":false,
   "trashed_on":null,
   "trashed_by_id":0,
   "parent_type":"Discussion",
   "parent_id":30,
   "body":"TEST",
   "body_formatted":"TEST",
   "body_plain_text":"TEST",
   "created_on":1474039019,
   "created_by_id":1,
   "updated_on":1474039019,
   "updated_by_id":5
  }
 }

请参阅"created_by_id":1

0 个答案:

没有答案