Comment Object
Last Modified on 09/09/2018 7:59 am MDT
Field Overview
Name |
Type |
Example |
Notes |
project_id |
String |
559f118932131c6576ccb5be |
*Required unique identifier |
status |
String |
active |
*Required. Can be one of the following: "approved", "deleted", "pending". |
article_id |
String |
559f118932131c6576ccb5be |
ID of the article the comment is attached to. |
author_id |
String |
559f118932131c6576ccb5be |
Either the ID of the reader, or the ID of the user that is leaving the comment. |
content |
String |
Hello World |
Comment body text. |
public_name |
String |
John Doe |
Name of person submitting comment. Only to be used when there is no reader or user ID present. |
public_email |
String |
john@doe.com |
Email of person submitting comment. Only to be used when there is no reader or user ID present. |
user_submitted |
Boolean |
false |
Signifies that the author_id field belongs to a KO user or not. |
Example Response
stdClass Object
(
[valid] => 1
[data] => stdClass Object
(
[id] => 54f126ed7cb82991627b23f0
[type] => comment
[project_id] => 54b88f0ffe775aac57000001
[article_id] => 54b88f12bfe5a1601400001c
[author_id] => 52d9a8dbfe775ad80d000001
[content] => I'm a comment!
[public_name] =>
[public_email] =>
[user_submitted] => 1
[date_created] => 02/27/2015 9:24 pm EST
)
)