{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/certifier-io/json-schema/certifier-io-update-credential-schema.json",
  "title": "UpdateCredential",
  "x-generated": "2026-11-03",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/certifier-io-openapi.json#/components/schemas/UpdateCredential",
  "type": "object",
  "properties": {
    "recipient": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "The credential recipient's unique identifier"
        },
        "name": {
          "type": "string",
          "description": "The name of the credential's recipient"
        },
        "email": {
          "type": "string",
          "format": "email",
          "description": "The email of the credential's recipient"
        }
      },
      "required": [
        "id",
        "name"
      ],
      "description": "The recipient of the credential"
    },
    "issueDate": {
      "type": [
        "string",
        "null"
      ],
      "description": "The issuer-claimed issue date (YYYY-MM-DD). Set null only on a draft to clear it; issued credentials cannot clear their issue date."
    },
    "expiryDate": {
      "type": [
        "string",
        "null"
      ],
      "description": "The issuer-claimed expiration date (YYYY-MM-DD). Set null to clear it; on a draft whose credential template has an expiration period, the date is re-derived at issuance, otherwise the credential never expires. When both dates are set, expiryDate must be after issueDate."
    },
    "customAttributes": {
      "type": "object",
      "additionalProperties": {
        "nullable": true
      },
      "description": "The key-value object of your custom attributes, where key is your attribute's tag and value is the text value you want to store"
    }
  }
}