図の移動
図をフォルダに移動します。
メソッド
GET, POST
URL
https://cacoo.com/api/v1/diagrams/diagramId/move.format
例 : https://cacoo.com/api/v1/diagrams/00e77f4dc9973517/move.json
フォーマット
json, xml
認証
必須
エラー
ステータスコード |
メッセージ |
内容 |
400 |
入力検証メッセージ |
入力検証エラー |
404 |
FOLDER_NOT_FOUND |
フォルダが存在しないか権限がないため移動不可 |
パラメーター
パラメータ名 |
型 |
内容 |
例 |
diagramId(必須) |
文字列 |
図のID |
00e77f4dc9973517 |
folderId(必須) |
数値 |
図を移動するフォルダのID |
123 |
organizationKey(必須) |
文字列 |
Organizations API で取得した組織のキー |
abcdefghij |
*旧プラン(旧フリープラン・プラスプラン)をご利用の場合、パラメーターにorganizationKey
は不要です。
レスポンス
フィールド |
型 |
説明 |
例 |
url |
文字列 |
図の公開URL |
https://cacoo.com/diagrams/00e77f4dc9973517 |
imageUrl |
文字列 |
図の公開画像URL |
https://cacoo.com/diagrams/00e77f4dc9973517.png |
imageUrlForApi |
文字列 |
図のAPIからのみアクセス可能な画像URL |
https://cacoo.com/api/v1/diagrams/00e77f4dc9973517.png |
diagramId |
文字列 |
図のID |
00e77f4dc9973517 |
title |
文字列 |
図のタイトル |
ワイヤーフレーム案 |
description |
文字列 |
図の説明 |
今回のプロジェクトのワイヤーフレームです。 |
JSON形式のレスポンスの例
{
"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": "ワイヤーフレーム案",
"description": "今回のプロジェクトのワイヤーフレームです。"
}
XML形式のレスポンスの例
<?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>ワイヤーフレーム案</title>
<description>今回のプロジェクトのワイヤーフレームです。</description>
</diagram>