{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/certifier-io/json-schema/certifier-io-group-schema.json",
  "title": "Group",
  "x-generated": "2026-11-03",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/certifier-io-openapi.json#/components/schemas/Group",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "The unique identifier of the credential template (group)."
    },
    "name": {
      "type": "string",
      "description": "The name of the credential template (group) that is used as [group.name] attribute later on"
    },
    "learningEventUrl": {
      "type": [
        "string",
        "null"
      ],
      "format": "uri",
      "description": "The learning event's URL that is shown in the digital wallet"
    },
    "designIds": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "The ordered list of design template IDs associated with this credential template."
    },
    "certificateDesignId": {
      "type": [
        "string",
        "null"
      ],
      "description": "Legacy field, to be removed. Returns the first ordered certificate design ID from designIds, or null when no certificate design is associated. Present only when the legacy request shape was used.",
      "deprecated": true
    },
    "badgeDesignId": {
      "type": [
        "string",
        "null"
      ],
      "description": "Legacy field, to be removed. Returns the first ordered badge design ID from designIds, or null when no badge design is associated. Present only when the legacy request shape was used.",
      "deprecated": true
    },
    "createdAt": {
      "type": "string",
      "format": "date-time",
      "description": "The date and time when this credential template (group) was created. Formatted as an ISO 8601 date and time string"
    },
    "updatedAt": {
      "type": "string",
      "format": "date-time",
      "description": "The date and time when this credential template (group) was updated. Formatted as an ISO 8601 date and time string"
    }
  },
  "required": [
    "id",
    "name",
    "learningEventUrl",
    "designIds",
    "certificateDesignId",
    "badgeDesignId",
    "createdAt",
    "updatedAt"
  ]
}