Contents

Copy diagram

Copy the diagram and get information about the copied diagram.

Method

GET, POST

URL

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

Format

json, xml

Authentication

required

Error

Status CodeMessageContent
400Message to verify entered textError found in entered text
403SHEET_SIZE_LIMIT_EXCEEDEDCannot copy the diagram as it will exceed the number of allowed sheets.
404FOLDER_NOT_FOUNDCannot copy the diagram as the folder does not exist or you have no permission.

Parameters

Parameter NameTypeContentDefaultExample
diagramId (Required)StringDiagram Id00e77f4dc9973517
organizationKey (Required)StringOrganization Key from the Organizations APIabcdefghij
titleStringTitle of DiagramUntitledwireframe
descriptionStringDiagram descriptionCurrent project wireframe
securityStringSecurity status of the diagram
  • private - only viewable with shared users
  • url - visible to anyone who knows the URL.
  • public - anyone who knows the URL will be able to edit this diagram.

url
folderIdIntegerThe folder ID where the copy will be created10001

*If you are using a legacy plan (i.e. the old Free Plan or Plus Plan), you do not need to add organizationKey to the parameters.

Response

FieldTypeDescriptionExample
urlStringPublic URL for Diagramhttps://cacoo.com/diagrams/00e77f4dc9973517
imageUrlStringURL of the first imagehttps://cacoo.com/diagrams/00e77f4dc9973517.png
imageUrlForApiStringString to interact with the image using the APIhttps://cacoo.com/api/v1/diagrams/00e77f4dc9973517.png
diagramIdStringDiagram ID00e77f4dc9973517
titleStringTitle of DiagramWireframe
descriptionStringDiagram descriptionCurrent project wireframe
securityStringSecurity status of the diagram
  • private - only viewable with shared users
  • url - visible to anyone who knows the URL.
  • public - anyone who knows the URL will be able to edit this diagram.

url
typeStringType of the diagram
  • normal - Ordinary diagram
  • stencil - Stencil
  • template - Template

normal
ownerName(Deprecated)StringOwner’s user name1MUJPfNEEeVUox15
ownerNickname(Deprecated)StringOwner’s nick nameYoko
ownerObjectOwner’s-
 + nameStringUser name1MUJPfNEEeVUox15
 + nicknameStringNick nameYoko
 + typeStringAccount Type
  • cacoo - Manage authentication on Cacoo.
  • other - Manage authentication on other than Cacoo.

cacoo
 + imageUrlStringUser Icon URL(32x32 pixels)https://cacoo.com/account/1MUJPfNEEeVUox15/image/32x32
editingBooleanIs the diagram currently being edited?true
ownBooleanIs this a diagram you created?true
sharedBooleanIs this a diagram that has been shared with you?false
folderIdIntegerID of the folder the diagram is in10001
folderNameStringName of the folder the diagram is inDesign
sheetCountIntegerNumber of sheets in the diagram3
createdDateDate Created(RFC2822)Mon, 10 Aug 2009 17:00:00 +0900
updatedDateDate last updated(RFC2822)Mon, 10 Aug 2009 17:00:00 +0900
sheetsArrayArray of information about the sheets-
 + urlStringPublic URL for the sheethttps://cacoo.com/diagrams/00e77f4dc9973517#aaaa
 + imageUrlStringPublic URL for the imagehttps://cacoo.com/diagrams/00e77f4dc9973517-aaaa.png
 + imageUrlForApiStringString to interact with the image using the APIhttps://cacoo.com/api/v1/diagrams/00e77f4dc9973517-aaaa.png
 + uidStringUnique ID for Sheetaaaa
 + nameStringSheet Namesheet1
 + widthIntegerImage Width200
 + heightIntegerImage Height100
commentsArrayComment array-
 + userObjectCommenter-
  + nameStringUser name1MUJPfNEEeVUox15
  + nicknameStringNick nameYoko
  + typeStringAccount Type
  • cacoo - Manage authentication on Cacoo.
  • other - Manage authentication on other than Cacoo.

cacoo
  + imageUrlStringUser Icon URL(32x32 pixels)https://cacoo.com/account/1MUJPfNEEeVUox15/image/32x32
 + contentStringComment informationcomment 1
 + createdDateDate Created(RFC2822)Mon, 10 Aug 2009 17:00:00 +0900
 + updatedDateDate last updated(RFC2822)Mon, 10 Aug 2009 17:00:00 +0900

JSON Response Example

{
    "url": "https://cacoo.com/diagrams/00e77f4dc9973517",
    "imageUrl": "https://cacoo.com/diagrams/00e77f4dc9973517.png",
    "imageUrlForApi": "https://cacoo.com/api/v1/diagrams/00e77f4dc9973517.png",
    "diagramId": "00e77f4dc9973517",
    "title": "Wireframe",
    "description": "Current project wireframe",
    "security": "url",
    "type": "normal",
    "ownerName": "1MUJPfNEEeVUox15",
    "ownerNickname": "Yoko",
    "owner": {
        "name": "1MUJPfNEEeVUox15",
        "nickname": "Yoko",
        "type": "cacoo",
        "imageUrl": "https://cacoo.com/account/1MUJPfNEEeVUox15/image/32x32"
    },
    "editing": true,
    "own": true,
    "shared": false,
    "folderId": 10001,
    "folderName": "Design",
    "sheetCount": 3,
    "created": "Mon, 10 Aug 2009 17:00:00 +0900",
    "updated": "Mon, 10 Aug 2009 17:00:00 +0900",
    "sheets": [
        {
            "url": "https://cacoo.com/diagrams/00e77f4dc9973517#aaaa",
            "imageUrl": "https://cacoo.com/diagrams/00e77f4dc9973517-aaaa.png",
            "imageUrlForApi": "https://cacoo.com/api/v1/diagrams/00e77f4dc9973517-aaaa.png",
            "uid": "aaaa",
            "name": "sheet1",
            "width": 200,
            "height": 100
        },
        {
            // ...
        }
    ],
    "comments": [
        {
            "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"?>
<diagram>
  <url>https://cacoo.com/diagrams/00e77f4dc9973517</url>
  <imageUrl>https://cacoo.com/diagrams/00e77f4dc9973517.png</imageUrl>
  <imageUrlForApi>https://cacoo.com/api/v1/diagrams/00e77f4dc9973517.png</imageUrlForApi>
  <diagramId>00e77f4dc9973517</diagramId>
  <title>Wireframe</title>
  <description>Current project wireframe</description>
  <security>url</security>
  <type>normal</type>
  <ownerName>1MUJPfNEEeVUox15</ownerName>
  <ownerNickname>Yoko</ownerNickname>
  <owner>
    <name>1MUJPfNEEeVUox15</name>
    <nickname>Yoko</nickname>
    <type>cacoo</type>
    <imageUrl>https://cacoo.com/account/1MUJPfNEEeVUox15/image/32x32</imageUrl>
  </owner>
  <editing>true</editing>
  <own>true</own>
  <shared>false</shared>
  <folderId>10001</folderId>
  <folderName>Design</folderName>
  <sheetCount>3</sheetCount>
  <created>Mon, 10 Aug 2009 17:00:00 +0900</created>
  <updated>Mon, 10 Aug 2009 17:00:00 +0900</updated>
  <sheets>
    <sheet>
      <url>https://cacoo.com/diagrams/00e77f4dc9973517#aaaa</url>
      <imageUrl>https://cacoo.com/diagrams/00e77f4dc9973517-aaaa.png</imageUrl>
      <imageUrlForApi>https://cacoo.com/api/v1/diagrams/00e77f4dc9973517-aaaa.png</imageUrlForApi>
      <uid>aaaa</uid>
      <name>sheet1</name>
      <width>200</width>
      <height>100</height>
    </sheet>
    <sheet>
         ...
    </sheet>
  </sheets>
  <comments>
    <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>
    <comment>
         ...
    </comment>
  </comments>
</diagram>