Post comment

Post a comment to the diagram.

Method

GET, POST

URL

https://cacoo.com/api/v1/diagrams/diagramId/comments/post.format
Example : https://cacoo.com/api/v1/diagrams/00e77f4dc9973517/comments/post.json

Format

json, xml

Authentication

required

Error

Status Code Message Content
400 Message to verify entered text Error found in entered text

Parameters

Parameter Name Type Content Example
name(Required) String Comment information comment 1

Response

Field Type Description Example
user Object Commenter -
 + name String User name 1MUJPfNEEeVUox15
 + nickname String Nick name Yoko
 + type String Account Type
  • cacoo - Manage authentication on Cacoo.
  • other - Manage authentication on other than Cacoo.

cacoo
 + imageUrl String User Icon URL(32x32 pixels) https://cacoo.com/account/1MUJPfNEEeVUox15/image/32x32
content String Comment information comment 1
created Date Date Created(RFC2822) Mon, 10 Aug 2009 17:00:00 +0900
updated Date Date last updated(RFC2822) Mon, 10 Aug 2009 17:00:00 +0900

JSON Response Example

{
    "user": {
        "name": "1MUJPfNEEeVUox15",
        "nickname": "Yoko",
        "type": "cacoo",
        "imageUrl": "https://cacoo.com/account/1MUJPfNEEeVUox15/image/32x32"
    },
    "content": "comment 1",
    "created": "Mon, 10 Aug 2009 17:00:00 +0900",
    "updated": "Mon, 10 Aug 2009 17:00:00 +0900"
}

XML Response Example

<?xml version="1.0" encoding="utf-8"?>
<comment>
  <user>
    <name>1MUJPfNEEeVUox15</name>
    <nickname>Yoko</nickname>
    <type>cacoo</type>
    <imageUrl>https://cacoo.com/account/1MUJPfNEEeVUox15/image/32x32</imageUrl>
  </user>
  <content>comment 1</content>
  <created>Mon, 10 Aug 2009 17:00:00 +0900</created>
  <updated>Mon, 10 Aug 2009 17:00:00 +0900</updated>
</comment>