CTZN.network Schemas Video Devlog

Update item class method dbmethod

ctzn.network/update-item-class-method

Update an existing item class record.

{
  "id": "ctzn.network/update-item-class-method",
  "title": "Update item class method",
  "description": "Update an existing item class record.",
  "type": "dbmethod",
  "parameters": {
    "$schema": "http://json-schema.org/draft-07/schema#",
    "type": "object",
    "required": [
      "classId"
    ],
    "properties": {
      "classId": {
        "type": "string",
        "minLength": 1,
        "maxLength": 64
      },
      "displayName": {
        "type": "string",
        "minLength": 1,
        "maxLength": 64
      },
      "description": {
        "type": "string",
        "maxLength": 256
      },
      "iconSource": {
        "type": "object",
        "required": [
          "dbUrl",
          "userId",
          "blobName"
        ],
        "properties": {
          "dbUrl": {
            "type": "string",
            "format": "uri"
          },
          "userId": {
            "type": "string",
            "pattern": ".+@.+"
          },
          "blobName": {
            "type": "string"
          }
        }
      },
      "definition": {
        "type": "object"
      }
    }
  },
  "definition": {
    "$schema": "http://json-schema.org/draft-07/schema#",
    "type": "object",
    "required": [
      "key",
      "url"
    ],
    "properties": {
      "key": {
        "type": "string"
      },
      "url": {
        "type": "string",
        "format": "uri"
      }
    }
  }
}

Schemas