Browse Source

CLI content: Add json examples

iorveth 4 years ago
parent
commit
ef96470332
2 changed files with 34 additions and 0 deletions
  1. 17 0
      cli/examples/content/CreateChannel.json
  2. 17 0
      cli/examples/content/UpdateChannel.json

+ 17 - 0
cli/examples/content/CreateChannel.json

@@ -0,0 +1,17 @@
+{
+  "assets": [
+    {
+      "Urls": ["https://joystream.org/WorkingGroupOpening.schema.json"]
+    }
+  ],
+  "meta": {
+    "title": "Title",
+    "description": "Description",
+    "isPublic": true,
+    "language": "eng",
+    "coverPhoto": 1,
+    "avatarPhoto": 1,
+    "category": 1
+  }
+}
+

+ 17 - 0
cli/examples/content/UpdateChannel.json

@@ -0,0 +1,17 @@
+{
+  "assets": [
+    {
+      "Urls": ["https://joystream.org/WorkingGroupOpening.schema.json"]
+    }
+  ],
+  "new_meta": {
+    "title": "Channel Title",
+    "description": "Cool Description",
+    "isPublic": true,
+    "language": "eng",
+    "coverPhoto": 1,
+    "avatarPhoto": 1,
+    "category": 1
+  }
+}
+