Zum Inhalt springen

setCourseNamingPatterns

Stores naming rules of a course template (update access required) or of an object type / SysType code (administrators only). Mode Inherit deletes the own rule; fields not sent stay unchanged. Patterns with unknown building blocks are rejected.

Type: [CourseNamingPatternRule!]!

Arguments

  • objectType: String — Object type or SysType code of courses that owns the rules, e.g. “COURSE”.
  • patterns: [CourseNamingPatternInput!]! — Rules to store, at most one per course field.
  • templateID: UID — UID of the course template that owns the rules.
mutation($objectType: String, $patterns: [CourseNamingPatternInput!]!, $templateID: UID) {
setCourseNamingPatterns(objectType: $objectType, patterns: $patterns, templateID: $templateID) {
inheritedFrom
inheritedPattern
mode
pattern
targetField
}
}