CTZN.network Schemas Video Devlog

Put role method dbmethod

ctzn.network/community-put-role-method

Write a role-record to a community.

{
  "id": "ctzn.network/community-put-role-method",
  "title": "Put role method",
  "description": "Write a role-record to a community.",
  "type": "dbmethod",
  "parameters": {
    "$schema": "http://json-schema.org/draft-07/schema#",
    "type": "object",
    "required": [
      "roleId"
    ],
    "properties": {
      "roleId": {
        "type": "string"
      },
      "permissions": {
        "type": "array",
        "items": {
          "type": "object",
          "required": [
            "permId"
          ],
          "properties": {
            "permId": {
              "type": "string"
            }
          }
        }
      }
    }
  },
  "definition": {
    "$schema": "http://json-schema.org/draft-07/schema#",
    "type": "object",
    "required": [
      "key",
      "url"
    ],
    "properties": {
      "key": {
        "type": "string"
      },
      "url": {
        "type": "string",
        "format": "uri"
      }
    }
  }
}

Schemas