Introduction to Duro's Config System
Evolution of Duro's Configuration
Duro started as an "out of the box" PLM solution that worked well for hardware teams transitioning from spreadsheets. However, as organizations scaled and required deeper customization, we recognized the need for a more flexible approach. Instead of maintaining hard-coded rules, we developed a powerful configuration system that puts control in our users' hands.
The YAML-Based Configuration
Our "YAML all the things" philosophy enables extensive customization while maintaining Duro's core value of simplicity. Using YAML's human-readable format, you can configure:
Category definitions and their attributes
Data validation rules
Custom revision and status workflows
Configurable part numbering schemes
Change order validation and approval flows
Change order stage notifications (
notifyList)
# Example: a complete category registry with one category and one attribute
version: '3.0'
schema_type: categories_scheme
attributes:
- name: Length
type: string
pattern: "^\\d+(\\.\\d+)?\\s*(mm|m)$"
attributeGroups: []
categories:
- name: Cable Assembly
code: '920'
type: ASSEMBLY
defaults:
- $ref: '#/attributes/Length'
categoryGroups: []Why YAML?
We chose YAML for its:
Readability: Clean, intuitive syntax that's easy to understand
Accessibility: Approachable for both technical and non-technical users
Flexibility: Supports complex configurations without overwhelming complexity
Industry adoption: Widely used in tools like GitHub Actions and Kubernetes
Our configuration system draws inspiration from proven approaches like GitHub Actions, Render.com Blueprints, and JSON Schema, combining their best aspects into a cohesive configuration definition system for your product data.
Library Configurations
Each library has three configurations, one of each type:
Change order templates are configured separately — see Change Order Workflows.
Applying a Configuration
You can edit a library's configurations in the Duro web app under Library settings, or through the API. Both API mutations below require the library.categories.manage permission (see RBAC) and apply to the library named in the x-library header. Using the EU or GovCloud region? Use your region's host — see Endpoints.
Upload your own YAML
config.updateLibrary validates a YAML (or JSON) document and saves it as the library's configuration of configType, replacing the current one.
When the document is invalid,
successisfalseanderrorslists every problem. Nothing is saved.Some problems are warnings rather than errors, such as two category names that are singular and plural forms of the same word. They block the save (
success: false, listed inwarnings) until you send the document again withacknowledgeWarnings: true.Set
validateOnly: trueto run every check without saving. Warnings are reported instead of blocking, andconfigSavedisfalse.
The mutation reports problems in the response rather than as GraphQL errors, so always check success.
Apply a preset
config.updateLibraryPresets applies one or more of Duro's shipped configurations:
CATEGORIES_DEFAULT
CATEGORIES
Duro's default category registry.
REVISION_SIMPLE
REVISION
Single-segment revisions.
REVISION_STANDARD
REVISION
A.1 style revisions.
REVISION_COMPLEX
REVISION
A1.0 style revisions with a documentation segment.
ID_SEMI_INTELLIGENT
ID
Category code plus a 5-digit sequence per category (410-00001).
ID_NON_INTELLIGENT
ID
A plain 6-digit sequence (100001).
A CATEGORIES or REVISION preset replaces the library's current configuration of that type. An ID preset only applies to a library that has no CPN scheme yet; otherwise its result has success: false. Each preset reports its own result in results. configPresets(configType: REVISION) lists the presets for a config type.
Read a configuration
configs(filter: { type: REVISION }) returns the library's configurations; its yaml field is the saved document in the form updateLibrary accepts back.
Getting Started
If you're new to YAML, we recommend these resources:
The following sections will guide you through configuring various aspects of your Duro environment, starting with the Category Registry.
Last updated
Was this helpful?