フォルダを追加する
フォルダの詳細情報を取得する
パラメータ無し
Key | Type | Value |
---|---|---|
id | int | フォルダのID。デフォルト(未所属)の場合は null |
name | String | フォルダの名前 |
sa | Array | 所属しているサービスアダプタの一覧
|
Content-Type: application/json
{ "sa": [ { "code": "tss99990001", "name": "SEIL/B1 001", "description": "MEMO", "distributionId": "0001-0000-0101-0000-0000-0000-1234-5678", "up": true, "configState": "pushready", "group": { "id": 1, "name": "Folder2" }, "template": { "id": 1, "name": "Template1" }, "monitor": { "id": 1, "name": "Monitor1" }, "date": { "lastPushReady": "2012/06/05 16:00:09", "lastHeartbeatReport": "2012/05/11 17:10:02", "lastPulled": "2012/05/11 17:06:22", "firstPulled": "2012/04/11 17:07:00" }, "type": 0, "mode": null } ], "id": 1, "name": "Folder1" }
フォルダの詳細情報を変更する
Content-Type: application/json
Key | Type | Value |
---|---|---|
name | String | フォルダの名前 (1 - 40文字) (オプション) |
sa | Array | 所属させるサービスアダプタの一覧 (オプション) |
updateMode | String | サービスアダプタの割当方法 (オプション)
|
API コール時に特定のパラメータ option を Query String として付加すると、同時に所定の処理が実行されます。 option パラメータは省略可能です。
例
PUT https://*.sacm.jp/public-api/v1/user/tsa99990001/sagroup/1?option=no-content
指定可能なパラメータは以下の通りです。
Key | Type | Value |
---|---|---|
option | String |
|
Key | Type | Value |
---|---|---|
id | int | フォルダのID。デフォルト(未所属)の場合は null |
name | String | フォルダの名前 |
sa | Array | 所属しているサービスアダプタの一覧
|
PUT https://*.sacm.jp/public-api/v1/user/tsa99990001/sagroup/1
Content-Type: application/json
{ "sa":[ { "code": "tss99990001" } ], "name": "Folder2" }
Content-Type: application/json
{ "sa": [ { "code": "tss99990001", "name": "SEIL/B1 001", "description": "MEMO", "distributionId": "0001-0000-0101-0000-0000-0000-1234-5678", "up": true, "configState": "pushready", "group": { "id": 1, "name": "Folder2" }, "template": { "id": 1, "name": "Template1" }, "monitor": { "id": 1, "name": "Monitor1" }, "date": { "lastPushReady": "2012/06/05 16:00:09", "lastHeartbeatReport": "2012/05/11 17:10:02", "lastPulled": "2012/05/11 17:06:22", "firstPulled": "2012/04/11 17:07:00" }, "type": 0, "mode": null } ], "id": 1, "name": "Folder2" }