{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/affiliaterail-com/json-schema/affiliaterail-com-resource-update-schema.json",
  "title": "ResourceUpdate",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/affiliaterail-com-resources-api-openapi.yml#/components/schemas/ResourceUpdate",
  "type": "object",
  "properties": {
    "title": {
      "type": "string",
      "minLength": 1,
      "maxLength": 120
    },
    "url": {
      "type": "string",
      "format": "uri",
      "description": "Links only; a file's URL is its blob"
    },
    "folder": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 60
    },
    "group_ids": {
      "type": "array",
      "items": {
        "type": "string",
        "pattern": "^(sample_)?grp_",
        "description": "Prefixed id (`grp_…`)"
      }
    },
    "tag_ids": {
      "type": "array",
      "items": {
        "type": "string",
        "pattern": "^(sample_)?tag_",
        "description": "Prefixed id (`tag_…`)"
      }
    },
    "published": {
      "type": "boolean"
    }
  }
}