Getting started
Core resources
Other

Learning and Development - Batch

Field descriptions

Important: Please ensure the attached document file (if present) is in PDF or OpenCert format.
{
  "credential_id": { "type": "string" }, // (Required) Unique identifier for the batch
  "microcredential_items": [ // { "type": "array" }, (Required)
    {
      "credential_id": { "type": "string" }, // (Required) Unique identifier for this credential
      "fields": { // { "type": "object" }, (Required)
        "full_name": { "type": "string" }, // (Required)
        "issuer_name": { "type": "string" }, // (Required)
        "microcredential_name": { "type": "string" }, // (Required)
        "issue_date": { "type": "string" }, // (Required) Date format: "YYYY-MM-DD"
        "expiry_date": { "type": ["string", "null"] }, // (Optional) Date format: "YYYY-MM-DD"
        "assessment_result": { "type": ["string", "null"] } // (Optional) Text description
      },
      "assets": [ // (Optional) Omit when there is no document
        {
          "asset_id": { "type": "string" }, // (Required)
          "asset_type": { "type": "string" }, // (Required) "pdf" or "open_cert"
          "asset_data": { "type": ["string", "null"] } // URL pointing to a PDF, or OpenCert content
        }
      ]
    }
  ]
}

Sample payload

With PDF document

{
  "credential_id": "dde1a68d-0ae4-488c-b51c-78a33acf603a",
  "microcredential_items": [
    {
      "credential_id": "dde1a68d-0ae4-488c-b51c-78a33acf603a-1",
      "fields": {
        "full_name": "Glenn O'Hara DVM",
        "issuer_name": "Test Issuer",
        "microcredential_name": "Skill Test #1",
        "issue_date": "2024-08-31",
        "expiry_date": "2027-06-11",
        "assessment_result": "Pass"
      },
      "assets": [
        {
          "asset_id": "asset-1",
          "asset_type": "pdf",
          "asset_data": "https://example.com/certificate.pdf"
        }
      ]
    },
    {
      "credential_id": "dde1a68d-0ae4-488c-b51c-78a33acf603a-2",
      "fields": {
        "full_name": "Glenn O'Hara DVM",
        "issuer_name": "Test Issuer",
        "microcredential_name": "Skill Test #2",
        "issue_date": "2024-08-31",
        "expiry_date": "2027-06-11"
      },
      "assets": [
        {
          "asset_id": "asset-2",
          "asset_type": "pdf",
          "asset_data": "https://example.com/certificate.pdf"
        }
      ]
    }
  ]
}

With OpenCert document

{
  "credential_id": "dde1a68d-0ae4-488c-b51c-78a33acf603a",
  "microcredential_items": [
    {
      "credential_id": "dde1a68d-0ae4-488c-b51c-78a33acf603a-1",
      "fields": {
        "full_name": "Glenn O'Hara DVM",
        "issuer_name": "Test Issuer",
        "microcredential_name": "Skill Test #1",
        "issue_date": "2024-08-31",
        "expiry_date": "2027-06-11",
        "assessment_result": "Pass"
      },
      "assets": [
        {
          "asset_id": "asset-1",
          "asset_type": "open_cert",
          "asset_data": "{\"version\":\"https://schema.openattestation.com/2.0/schema.json\",\"schema\":\"https://raw.githubusercontent.com/OpenCerts/open-certificate/master/schema/transcripts/2.0/schema.json\"}"
        }
      ]
    },
    {
      "credential_id": "dde1a68d-0ae4-488c-b51c-78a33acf603a-2",
      "fields": {
        "full_name": "Glenn O'Hara DVM",
        "issuer_name": "Test Issuer",
        "microcredential_name": "Skill Test #2",
        "issue_date": "2024-08-31",
        "expiry_date": "2027-06-11"
      },
      "assets": [
        {
          "asset_id": "asset-2",
          "asset_type": "open_cert",
          "asset_data": "{\"version\":\"https://schema.openattestation.com/2.0/schema.json\",\"schema\":\"https://raw.githubusercontent.com/OpenCerts/open-certificate/master/schema/transcripts/2.0/schema.json\"}"
        }
      ]
    }
  ]
}

With no document

{
  "credential_id": "dde1a68d-0ae4-488c-b51c-78a33acf603a",
  "microcredential_items": [
    {
      "credential_id": "dde1a68d-0ae4-488c-b51c-78a33acf603a-1",
      "fields": {
        "full_name": "Glenn O'Hara DVM",
        "issuer_name": "Test Issuer",
        "microcredential_name": "Skill Test #1",
        "issue_date": "2024-08-31",
        "expiry_date": "2027-06-11"
      }
    },
    {
      "credential_id": "dde1a68d-0ae4-488c-b51c-78a33acf603a-2",
      "fields": {
        "full_name": "Glenn O'Hara DVM",
        "issuer_name": "Test Issuer",
        "microcredential_name": "Skill Test #2",
        "issue_date": "2024-08-31",
        "expiry_date": "2027-06-11"
      }
    }
  ]
}