Contents

Move diagram

Move a diagram to specified fodler.

Method

GET, POST

URL

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

Format

json, xml

Authentication

required

Error

Status CodeMessageContent
400Message to verify entered textError found in entered text
404FOLDER_NOT_FOUNDCannot move the diagram as the folder does not exist or you have no permission.

Parameters

Parameter NameTypeContentExample
diagramId (Required)StringDiagram Id00e77f4dc9973517
folderId (Required)IntegerDestination folder’s ID123
organizationKey (Required)StringOrganization Key from the Organizations APIabcdefghij

*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

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"
}

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>
</diagram>