{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/fused/main/json-schema/fused-post-udf-new-request-schema.json",
  "title": "PostUdfNewRequest",
  "x-generated": "2026-10-13",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/fused-openapi-generated.yml#/components/schemas/PostUdfNewRequest",
  "type": "object",
  "properties": {
    "slug": {
      "type": "string",
      "description": "URL-safe name"
    },
    "udf_body": {
      "type": "string",
      "description": "The UDF source and metadata"
    },
    "udf_type": {
      "type": "string",
      "description": "Use auto"
    },
    "collection_id": {
      "type": "string",
      "description": "Canvas to add the UDF to"
    },
    "create_shared_token": {
      "type": "boolean",
      "description": "Also mint a shared token. Default false."
    },
    "shared_token_access_scope": {
      "type": "string",
      "description": "public or team. Default team."
    }
  },
  "required": [
    "slug",
    "udf_body",
    "udf_type"
  ]
}